jugmac00 / flask-reuploaded

File uploads for Flask.
https://github.com/jugmac00/flask-reuploaded
MIT License
63 stars 12 forks source link

deactivate `autoserve` by default #86

Closed jugmac00 closed 3 years ago

jugmac00 commented 3 years ago

The automatic serving of uploaded images/files was very surpsing, as it was badly documented.

It could even lead to data leak, as it was also activated by default.

Now, it is an opt-in, so if you want the behavior of Flask-Uploads, you need to set UPLOADS_AUTOSERVE=True

This is the first major backwards incompatibility with Flask-Uploads.