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
I have had this issue trying to use this code too, it seems to be due to this code:
// Move the file fields into the hidden form, but first remember their
// original locations in the document by replacing them with disabled
// clones. This should also avoid introducing unwanted changes to the
// page layout during submission.
markers = files.after(function(idx) {
return $(this).clone().prop("disabled", true);
}).next();
files.appendTo(form);
As a result, your code is moved into IFRAME and won't run the second time.
The easiest solution for the author of this product would seem to be putting the clones in the IFRAME instead, or perhaps using something like clone(true) to also clone events.
The easiest workaround for the users of this product I found was to use live type events, i.e. the selector parameter of the 'on' function.
When I try to bind change event to file input:
This works for first upload, but next fail. As I understood, the elements are replaced. Please add replacing events to.
The text was updated successfully, but these errors were encountered: