Handling an html5 drag n' drop upload


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?


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


Fernando Perez wrote: