summaryrefslogtreecommitdiff
path: root/fbin
diff options
context:
space:
mode:
Diffstat (limited to 'fbin')
-rw-r--r--fbin/file_storage/filesystem.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/fbin/file_storage/filesystem.py b/fbin/file_storage/filesystem.py
index 3433baf..3b46e34 100644
--- a/fbin/file_storage/filesystem.py
+++ b/fbin/file_storage/filesystem.py
@@ -26,6 +26,9 @@ class Storage(BaseStorage):
except:
os.unlink(temp.name)
raise
+ finally:
+ if self.app.config.get('DESTINATION_MODE'):
+ os.chmod(new_file.get_path(), self.app.config.get('DESTINATION_MODE'))
def get_file(self, f):
path = f.get_path()