Skip to content
This repository has been archived by the owner on Sep 14, 2024. It is now read-only.

Commit

Permalink
Correct download path bug in http server
Browse files Browse the repository at this point in the history
  • Loading branch information
sevagas committed Sep 3, 2018
1 parent 523200a commit 0423a83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/listen_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def upload():
@secure_http_response
def download(filename):

uploads = os.path.dirname(getRunningApp())
uploads = webapp.config['UPLOAD_FOLDER']
logging.info(" [-] Sending file: %s" % (os.path.join(uploads,filename)))
return send_from_directory(directory=uploads, filename=filename)

Expand Down

0 comments on commit 0423a83

Please sign in to comment.