diff --git a/qt/aqt/mediasrv.py b/qt/aqt/mediasrv.py index 411322a9f..fb13309e1 100644 --- a/qt/aqt/mediasrv.py +++ b/qt/aqt/mediasrv.py @@ -116,9 +116,7 @@ def allroutes(path): if devMode: print("Sending file '%s - %s'" % (directory, path)) - path = os.path.basename(fullpath) - directory = os.path.dirname(fullpath) - return flask.send_from_directory(directory, path) + return flask.send_file(fullpath, conditional=True) except Exception as error: if devMode: