Closed dunnjm814 closed 3 years ago
AttributeError: '_io.BufferedRandom' object has no attribute 'endswith'
hey its a file <FileStorage: 'guitar.mp4' ('video/mp4')> 127.0.0.1 - - [20/Apr/2021 22:36:20] "POST /api/convert HTTP/1.1" 500 - Traceback (most recent call last): File "/home/jasondunn/projects/audioconverter/.venv/lib/python3.8/site-packages/werkzeug/datastructures.py", line 3089, in getattr return getattr(self.stream, name) AttributeError: 'SpooledTemporaryFile' object has no attribute 'endswith'
During handling of the above exception, another exception occurred:
Possible solution: https://stackoverflow.com/questions/55014082/spooledtemporaryfile-object-has-no-attribute-replace
calling .filename worked as per the solution suggested
AttributeError: '_io.BufferedRandom' object has no attribute 'endswith'
hey its a file <FileStorage: 'guitar.mp4' ('video/mp4')> 127.0.0.1 - - [20/Apr/2021 22:36:20] "POST /api/convert HTTP/1.1" 500 - Traceback (most recent call last): File "/home/jasondunn/projects/audioconverter/.venv/lib/python3.8/site-packages/werkzeug/datastructures.py", line 3089, in getattr return getattr(self.stream, name) AttributeError: 'SpooledTemporaryFile' object has no attribute 'endswith'
During handling of the above exception, another exception occurred:
Possible solution: https://stackoverflow.com/questions/55014082/spooledtemporaryfile-object-has-no-attribute-replace