summaryrefslogtreecommitdiffstats
path: root/apps/files/js/file-upload.js
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-04-10 18:07:36 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-04-10 18:07:36 +0200
commit0edacf372c5b2e1f1b64210ceff5e757494c959b (patch)
treee0bda435d929b320c233bdd6c9521cdeb9705c72 /apps/files/js/file-upload.js
parente8be2ac55492a7e4f141d3bb7e6698783bef454c (diff)
downloadnextcloud-server-0edacf372c5b2e1f1b64210ceff5e757494c959b.tar.gz
nextcloud-server-0edacf372c5b2e1f1b64210ceff5e757494c959b.zip
fix single file upload in firefox
Diffstat (limited to 'apps/files/js/file-upload.js')
-rw-r--r--apps/files/js/file-upload.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js
index 070314a1188..516812563ac 100644
--- a/apps/files/js/file-upload.js
+++ b/apps/files/js/file-upload.js
@@ -333,11 +333,15 @@ OC.Upload = {
submit: function(e, data) {
OC.Upload.rememberUpload(data);
if ( ! data.formData ) {
+ var fileDirectory = '';
+ if(typeof data.files[0].relativePath !== 'undefined') {
+ fileDirectory = data.files[0].relativePath;
+ }
// noone set update parameters, we set the minimum
data.formData = {
requesttoken: oc_requesttoken,
dir: $('#dir').val(),
- file_directory: data.files[0]['relativePath']
+ file_directory: fileDirectory
};
}
},