Skip to content

Commit

Permalink
allow dl zip
Browse files Browse the repository at this point in the history
  • Loading branch information
birm authored Nov 20, 2024
1 parent c06890d commit 33008a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SlideServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@
download_folder = os.getenv('DOWNLOAD_FOLDER', app.config['UPLOAD_FOLDER'])
app.config['DOWNLOAD_FOLDER'] = download_folder

if os.getenv("ALLOW_DOWNLOAD_ZIP") == "True":
ALLOWED_EXTENSIONS.add("zip")

#creating a uploading folder if it doesn't exist
if not os.path.exists(app.config['TEMP_FOLDER']):
os.mkdir(app.config['TEMP_FOLDER'])
Expand Down

0 comments on commit 33008a5

Please sign in to comment.