mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 11:36:16 +00:00
Fix lazyLoading script
This commit is contained in:
parent
a83930e377
commit
bf8142623e
5 changed files with 6 additions and 8 deletions
|
@ -38,7 +38,7 @@ def file(file_name):
|
|||
file_name = secure_filename(file_name) # Sanitize file name
|
||||
|
||||
# if no args are passed, return the raw file
|
||||
if not request.args:
|
||||
if not res and not ext:
|
||||
if not os.path.exists(os.path.join(current_app.config['UPLOAD_FOLDER'], file_name)):
|
||||
abort(404)
|
||||
return send_from_directory(current_app.config['UPLOAD_FOLDER'], file_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue