Python: Cannot read from a FileStorage object Python: Cannot read from a FileStorage object flask flask

Python: Cannot read from a FileStorage object


It could be that it's not encoded in utf-8. Try decoding it into latin-1 instead:

file_data = file.read().decode("latin-1")