We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6fffd09 + fad5424 commit a5cbe94Copy full SHA for a5cbe94
apps/files/js/file-upload.js
@@ -34,12 +34,11 @@
34
OC.FileUpload = function(uploader, data) {
35
this.uploader = uploader;
36
this.data = data;
37
- var path = '';
+ var basePath = '';
38
if (this.uploader.fileList) {
39
- path = OC.joinPaths(this.uploader.fileList.getCurrentDirectory(), this.getFile().name);
40
- } else {
41
- path = this.getFile().name;
+ basePath = this.uploader.fileList.getCurrentDirectory();
42
}
+ var path = OC.joinPaths(basePath, this.getFile().relativePath || '', this.getFile().name);
43
this.id = 'web-file-upload-' + md5(path) + '-' + (new Date()).getTime();
44
};
45
OC.FileUpload.CONFLICT_MODE_DETECT = 0;
0 commit comments