You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: AjaxForm posting file in Chrome83 is not anymore working
Expected Behavior:Upload a file
Actual behavior:No uploading because of this: The problem is that the library is creating an <iframe>, with an src attribute, and listens for the load event of that iframe right after it did.
Since this iframe has an src attribute, Chrome will start its loading, and since its src is a fake url, this operation actually is resolved synchronously, meaning that the load event is already set to fire at the next event-loop iteration.
So the one load event this library is receiving is that initial load event, of an empty document, and not the one of the real request.
To fix that maybe, all you need is to remove this src="javascript:false;" from the plugin
Please review Instructions for Reporting a Bug.
Description: AjaxForm posting file in Chrome83 is not anymore working
Expected Behavior:Upload a file
Actual behavior:No uploading because of this: The problem is that the library is creating an <iframe>, with an src attribute, and listens for the load event of that iframe right after it did.
Since this iframe has an src attribute, Chrome will start its loading, and since its src is a fake url, this operation actually is resolved synchronously, meaning that the load event is already set to fire at the next event-loop iteration.
So the one load event this library is receiving is that initial load event, of an empty document, and not the one of the real request.
To fix that maybe, all you need is to remove this src="javascript:false;" from the plugin
Versions:
LoadJSON:
jQuery:
Browsers:
Demonstration
Link to demonstration of issue in JSFiddle or CodePen:
https://stackoverflow.com/questions/62006020/chrome-83-cannot-upload-file
Steps to reproduce:
The text was updated successfully, but these errors were encountered: