Closed lento closed 11 years ago
getFormData() was a firefox-specific extension to html 5, now it looks like they removed it and changed it to:
formData = new FormData(formElement);
that might work in chrome, too. See last comment here (Glenn Maynard, 17/12/2010): http://hacks.mozilla.org/2010/05/formdata-interface-coming-to-firefox/
(I can't check it now, so please try it and let me know!)
Your solution here MrPetru/spam@f3dab60 is good, but you might want to check two things:
if those two things work, let's go for it!
first solution (using html5) the function: formData = new FormData(formElement); work well in firefox4 but not in Chrome (my chrome version is 7.0)... the answer is: Failed to load resource: the server responded with a status of 404 (Not Found)
second solution (for all other browsers- I means commit MrPetru@f3dab60 ) file upload work in firefox4 but not in chrome (need inspection)
I found this: chrome do not support getAsBinary() this mean there is another problem in upload compatibility with other browsers
fix dialog form handling for browsers that don't have form.getFormData()