Hello everyone i will send from my view a csv file to the flask backend and open it to do some preprocessing, can anyone show me how to do it please ,
i do some code but it doesn't work
filename = request.files['csv']
with open(filename, "rt") as csv_file:
content = csv.reader(csv_file,delimiter=';')
view
<form method=post action="{{ url_for('tables') }}" enctype=multipart/form-data
<input type=file name=csv id="tables" required/>
<button >
Lancer lβIA de vision machine
</button>
</form>