Skip to content
Advertisement

jquery ajax POST with jquery GET as formdata input

I am trying to invoke a jquery ajax POST request which has formdata as multiple files located on file server. This is my ajax request;

JavaScript

where formData has files located somewhere on the file server which I tried to fetch using jquery get and tried to add in formData on document ready like below;

JavaScript

Is it possible to pass or create formData having files located on the file server in ajax POST request?

Advertisement

Answer

You would need to convert it to a blob

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement