Linked Questions
12 questions linked to/from How to upload a file using an ajax call in flask
129 votes
7 answers
316k views
jQuery has deprecated synchronous XMLHTTPRequest
Like many others, my website is using jQuery. When I open the developer tools, I see a warning that says that XMLHTTPRequest is deprecated because of its detrimental effects to the end user's ...
22 votes
1 answer
46k views
jQuery AJAX 'multipart/form-data' Not Sending Data?
I'm at a loss for why I can't get jQuery to pass upload data seeing as the AJAX object appears to be configured correctly, and the correct Content-Type/MIME-Type headers are being sent. I've tried ...
0 votes
1 answer
5k views
Python flask upload file using ajax request.files empty
I am trying to upload an image about 1.62MB to an end point written using flask. the request.files object is always empty. I've checked the following questions but no luck: Flask request.files is ...
2 votes
1 answer
3k views
Getting an empty ImmutableMultiDict object from jQuery request data
Trying to upload a file to server but the ImmutableMultiDict object is returning empty. upload.html <html> <head> <title>Upload File Ajax</title> <script type="text/...
2 votes
1 answer
3k views
upload file in ajax with wtforms
I use wtforms to handle forms. so i create form like this: class ProfileForm(Form): firstName = TextField(_('firstName'), [validators.Required(), validators.Length(min=3, max=45)]) lastName = ...
2 votes
2 answers
1k views
JQuery form.serialize() returns empty string even when name attribute is defined for form elements
It seems like a simple issue but its been hour now breaking my head on this. i have a form which accepts file from user submit to the server using ajax. Problem i am facing is in $(this).serialize() ...
1 vote
1 answer
2k views
Javascript - Sending Signature-Pad results to Flask
I'm using the signature-pad JavaScript library to have people digitally sign documents (this is just for testing, nothing legally binding, etc.) but I'm having a hard time passing the signature result ...
0 votes
1 answer
991 views
How to upload files and other data in the same request asynchronously using AJAX to a Flask server?
The solution given here helps in uploading files asynchronously. When I change it to include both the files and some string data I'm unable to access both the string and the files. This is what I ...
1 vote
0 answers
2k views
Flask: how to handle and save the image send by AJAX post method
In my project I use Flask framework and JS on the front end, now I want to use AJAX post method to send a image to server side and save the image. So far, based on some searching, I use FileReader() ...
0 votes
1 answer
2k views
Flask uploading files to flask without form
I want to be able to upload my file from javascript without using the typical HTML form so that the page doesn't have to refresh when uploading the file to python. I have not had any success getting ...
0 votes
1 answer
2k views
How to upload a (csv) file with an AJAX call and Flask
I'm updating on updating an older project that uses AJAX and have decided to use Flask to do so. For the particular page I'm currently working on, I need to be able to upload a CSV and read the data ...
0 votes
1 answer
161 views
Ajax error on Flask web app
I am making a small Flask app. For now, one of the functions I want to implement is that: upload an Excel file do some data cleaning by using pandas show the result dataframe on webpage by using AJAX ...