From 2bf451c094fa5976e27e646e27a819c66cbe2505 Mon Sep 17 00:00:00 2001 From: Francesco Siddi Date: Wed, 28 Oct 2015 15:35:08 +0100 Subject: [PATCH] Use STORAGE_DIR instead of SHARED_DIR When creating thumbnails, use the data moved to the pillar-only storage path. --- pillar/application/modules/file_storage/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pillar/application/modules/file_storage/__init__.py b/pillar/application/modules/file_storage/__init__.py index 2e37d878..39f9ea82 100644 --- a/pillar/application/modules/file_storage/__init__.py +++ b/pillar/application/modules/file_storage/__init__.py @@ -59,7 +59,7 @@ def build_thumbnails(file_path=None, file_id=None): 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? if not os.path.isfile(file_full_path): return "", 404