reuben.m-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2009-Sep-11 16:00 UTC
ModPorter - problems accessing the hash
I''m trying to set up an upload interface to use mod_porter, however I can''t seem to read the hash that it hands off to the rails method. It seems like I should be able to access the hash content using params [:file][:data][:filename] and params[:file][:data][:path] etc.. But it throws an error saying: undefined method `[]'' for #<ModPorter::UploadedFile: .... > What am I doing wrong?
reuben.m-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2009-Sep-12 19:51 UTC
Re: ModPorter - problems accessing the hash
Nobody? Ok maybe I''m asking the wrong question: Has Rack come up with a way to handle uploads in a way that scales well without emptying the rails thread pool so that nobody is even using mod_porter? On Sep 11, 11:00 am, "reube...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <reube...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m trying to set up an upload interface to use mod_porter, however I > can''t seem to read the hash that it hands off to the rails method. > > It seems like I should be able to access the hash content using params > [:file][:data][:filename] and params[:file][:data][:path] etc.. > > But it throws an error saying: > > undefined method `[]'' for #<ModPorter::UploadedFile: .... > > > What am I doing wrong?