Hi Fernando Perez, request.raw_post use this in controller you will be getting the post data complete file content .
Then you can write the content in to the file and save in the filesystem. Thanks Fernando Perez wrote: > Hi, > > I've started implementing an html5 drag n' drop upload feature. It's to > the point where the file is being uploaded and on the server-side I can > fetch the filename with request.env['HTTP_X_FILE_NAME'], but how to save > the file content? > > In which parameter is it located? I tried request.body, but it doesn't > reproduce the initial file. I tried Base64 decoding also, but not luck? > > Has anyone done work on that? > > Thanks -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.