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:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user