fix: secure_filename not working, progress bar typo
This commit is contained in:
parent
257fff3e92
commit
1a7691cd1c
@ -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)
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user