Is there a possibility to force authentication of files served by Flask-Uploads or at least disable this route?
@uploads_mod.route('/<setname>/<path:filename>')
def uploaded_file(setname, filename):
config = current_app.upload_set_config.get(setname)
if config is None:
abort(404)
return send_from_directory(config.destination, filename)
It seems that any file that is uploaded can be downloaded by any (even not logged in) user.
Or only possibility is to use custom implementation as described in Flask Uploading Files?