pallets / flask

The Python micro framework for building web applications.
https://flask.palletsprojects.com
BSD 3-Clause "New" or "Revised" License
67.89k stars 16.21k forks source link

File Upload with Angular towards a Flask (Python) Webservice #3577

Closed babaralishah closed 4 years ago

babaralishah commented 4 years ago

I have to upload a File(csv) from frontend(Angular) to the backend(Python) using Middleware(Flask), I am new to these technologies. The csv file which would be uploaded by the user will be utilized by the python for processing, so i want it to directly pass the file from frontend to python without using any database and it should also not save into my local drive, i do not want to store it anywhere i just want it to pass to python, and file should be remain in its original form(i.e; csv), it should not be in Json format. Please guys help me with this!!! Thanks in Advance, it would be a great pleasure to me...

ThiefMaster commented 4 years ago

This is not flask-specific (it's just about uploading a file with angular); and the flask docs already explain how to handle file uploads (request.files).

Also, this issue tracker is not the right place to ask support questions - there are other places such as Stack Overflow or our IRC/Discord channels for this.