extjs-upload-widget
extjs-upload-widget copied to clipboard
Using Rails Backend gives an error in the rack middleware (invalid byte sequence in UTF-8)
We are trying to use this plugin in our application. We are using Rails on the server side and when the upload request hits the server side, the Rack middleware which parses the request (POST request I guess), is throwing an error invalid byte sequence in UTF-8, in the server side. Any chance it may be due to faulty request made?
I'm not familiar with the Rails Backend, but I see one possible problem - the backend probably expects a standard POST request as if sent from a form ("application/x-www-form-urlencoded"). However, the plugin sends directly the raw image data in the POST body.
You may now try the FormDataUploader, which functions as if the file has been uploaded through a form. May be that is what the Rails backend is expecting. See the README for more info.