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
On amplify.js it just did'n work. No matter what the options were. After some debbuging I found that the FormData object passed was turned to a regular javascript object after the ajax preprocess message was executed and then passed to jQuery. The library already added an exception in case the object passed were a string so I just add another exception so the object were ignored if was a native FormData object.
In a recent work I had to write an application that send files using ajax. In jQuery the syntax was
On amplify.js it just did'n work. No matter what the options were. After some debbuging I found that the FormData object passed was turned to a regular javascript object after the ajax preprocess message was executed and then passed to jQuery. The library already added an exception in case the object passed were a string so I just add another exception so the object were ignored if was a native FormData object.
Maybe you can check for constructor or perform some other work so I share the solution as well so you can improve it.
The text was updated successfully, but these errors were encountered: