1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 13:24:52 +00:00

[fileupload] fix for Firefox 50

This commit is contained in:
llj
2016-11-25 16:59:21 +08:00
parent ad67cc22f4
commit 3534b5836e
3 changed files with 31 additions and 22 deletions

View File

@@ -108,13 +108,16 @@ define([
data.files.shift();
return;
}
if (file.webkitRelativePath) {
file.relative_path = file.webkitRelativePath;
}
// add folder by drag & drop
if (file.relativePath) {
file.relative_path = file.relativePath + file.name;
// set 'file.relative_path' when upload a folder
if (data.fileInput) { // clicking
if (file.webkitRelativePath) {
file.relative_path = file.webkitRelativePath;
}
} else { // drag & drop
if (file.relativePath) {
file.relative_path = file.relativePath + file.name;
}
}
})
.bind('fileuploadstart', function() {