Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AjaxForm posting file in Chrome83 is not anymore working #581

Closed
enrybisco opened this issue Jul 8, 2020 · 1 comment
Closed

AjaxForm posting file in Chrome83 is not anymore working #581

enrybisco opened this issue Jul 8, 2020 · 1 comment

Comments

@enrybisco
Copy link

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:

@enrybisco
Copy link
Author

No issue w this.
I have found a duplicated id='myForm'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant