developerforce / Force.com-JavaScript-REST-Toolkit

ForceTK - a minimal Force.com REST API for JavaScript apps
BSD 3-Clause "New" or "Revised" License
315 stars 175 forks source link

"Parameter is Incorrect" when uploading document from IE #86

Closed kennesk closed 8 years ago

kennesk commented 8 years ago

Uploading documents with Chrome or Microsoft Edge works fine. But we get the following error when uploading from IE 11. Not sure if this is the issue, but debug shows the blob type as "multipart/form-data; boundary=\"boundary_84b4d2e704f267cc0a21cb089a4df950\"" in IE. It shows it as "multipart/form-data; boundary="boundary_809c7d21418680febd458c08f6489116"" in Chrome.

image

kennesk commented 8 years ago

Could this be related to HTTP2 and IE 11?

kennesk commented 8 years ago

The problem was the "rerender" attributes on the VF page. i removed those and added 'onchange="upload()"' on the input file tag (we had had it as onclick on a commandbutton). This is detailed in: https://msdn.microsoft.com/library/dn265017(v=vs.85).aspx