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
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
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: