gouthambs / Flask-Blogging

A Markdown Based Python Blog Engine as a Flask Extension.
http://flask-blogging.readthedocs.org/en/latest/
MIT License
688 stars 159 forks source link

Update fileupload folder path config key #127

Closed roipoussiere closed 5 years ago

roipoussiere commented 5 years ago

In examples and documentation, the key FILEUPLOAD_IMG_FOLDER is used to set the folder where to store images.

This doesn't work anymore and the default path is used every time, because this key name has been renamed to FILEUPLOAD_LOCALSTORAGE_IMG_FOLDER in Flask-FileUpload sources, as described in the documentation.

This pull request replaces all FILEUPLOAD_IMG_FOLDER occurrences by FILEUPLOAD_LOCALSTORAGE_IMG_FOLDER.

Also, the folder name is updated to img_upload (instead of fileupload) to avoid confusion with the fileupload route.

gouthambs commented 5 years ago

👍 @roipoussiere