summaryrefslogtreecommitdiff
path: root/fbin
diff options
context:
space:
mode:
Diffstat (limited to 'fbin')
-rw-r--r--fbin/file_storage/filesystem.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/fbin/file_storage/filesystem.py b/fbin/file_storage/filesystem.py
index 87d908e..b132264 100644
--- a/fbin/file_storage/filesystem.py
+++ b/fbin/file_storage/filesystem.py
@@ -36,6 +36,7 @@ class Storage(BaseStorage):
else:
temp = tempfile.NamedTemporaryFile(prefix='upload_', dir=self.app.config['FILE_DIRECTORY'], delete=False)
uploaded_file.save(temp.file)
+ temp.close()
temp_path = temp.name
size = os.path.getsize(temp_path)
new_path = self._get_path(file_hash)