fix: secure_filename not working, progress bar typo

This commit is contained in:
Terry Geng 2020-05-16 16:02:44 +08:00
parent 257fff3e92
commit 1a7691cd1c
No known key found for this signature in database
GPG Key ID: F982F8EA1DF720E7
2 changed files with 1 additions and 3 deletions

View File

@ -585,8 +585,6 @@ def upload():
elif '../' in targetdir:
abort(403)
filename = secure_filename(file.filename).strip()
log.info('web: Uploading file from %s:' % request.remote_addr)
log.info('web: - filename: ' + filename)
log.info('web: - targetdir: ' + targetdir)

View File

@ -901,7 +901,7 @@ function uploadNextFile(){
}
});
req.addEventListener("progress", function(e){
req.upload.addEventListener("progress", function(e){
if (e.lengthComputable) {
setProgressBar(file_progress_item.progress, e.loaded / e.total);
}