Open LUS24 opened 2 years ago
It seems Flask-Uploads got outdated. Here is a fix for the error ImportError: cannot import name 'secure_filename' from 'werkzeug':
ImportError: cannot import name 'secure_filename' from 'werkzeug'
https://stackoverflow.com/questions/61628503/flask-uploads-importerror-cannot-import-name-secure-filename
In flask_uploads.py
flask_uploads.py
Change
from werkzeug import secure_filename, FileStorage
to
from werkzeug.utils import secure_filename from werkzeug.datastructures import FileStorage
Would you like to assign this issue to me
@sidd6p If you want to try your hand at this, that would be really appreciated! A few things to take into consideration:
Let us know if you want to go for it!
It seems Flask-Uploads got outdated. Here is a fix for the error
ImportError: cannot import name 'secure_filename' from 'werkzeug'
:https://stackoverflow.com/questions/61628503/flask-uploads-importerror-cannot-import-name-secure-filename
In
flask_uploads.py
Change
to