When you install Flask-Uploads
from PyPI by e.g. pip install Flask-Uploads
you get an outdated version.
In February 2020 there was a breaking change in Werkzeug
- thus your error message.
Unfortunately, the author of Flask-Uploads
decided against releasing a new version for PyPI.
As an alternative, you can use Flask-Reuploaded
. This package works as a drop-in-replacement, so you do even do not have to change a single line of code.
https://pypi.org/project/Flask-Reuploaded/
https://github.com/jugmac00/flask-reuploaded
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…