Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flask-Uploads not working #7

Open
LUS24 opened this issue Sep 8, 2022 · 2 comments
Open

Flask-Uploads not working #7

LUS24 opened this issue Sep 8, 2022 · 2 comments

Comments

@LUS24
Copy link
Contributor

LUS24 commented Sep 8, 2022

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

from werkzeug import secure_filename, FileStorage

to

from werkzeug.utils import secure_filename
from werkzeug.datastructures import  FileStorage
@sidd6p
Copy link

sidd6p commented Dec 25, 2022

Would you like to assign this issue to me

@jslvtr
Copy link
Contributor

jslvtr commented Jan 13, 2023

@sidd6p If you want to try your hand at this, that would be really appreciated! A few things to take into consideration:

  • The changes must be applied to all the files and lectures where it is relevant
  • We should test the changes to make sure that it all works at various points in the course

Let us know if you want to go for it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants