Use STORAGE_DIR instead of SHARED_DIR
When creating thumbnails, use the data moved to the pillar-only storage path.
This commit is contained in:
@@ -59,7 +59,7 @@ def build_thumbnails(file_path=None, file_id=None):
|
|||||||
|
|
||||||
user = file_['user']
|
user = file_['user']
|
||||||
|
|
||||||
file_full_path = os.path.join(app.config['SHARED_DIR'], file_path)
|
file_full_path = os.path.join(app.config['STORAGE_DIR'], file_path)
|
||||||
# Does the original file exist?
|
# Does the original file exist?
|
||||||
if not os.path.isfile(file_full_path):
|
if not os.path.isfile(file_full_path):
|
||||||
return "", 404
|
return "", 404
|
||||||
|
Reference in New Issue
Block a user