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:
Francesco Siddi 2015-10-28 15:35:08 +01:00
parent 6e62d9c2a6
commit 2bf451c094

View File

@ -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