mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix single file upload in firefox
This commit is contained in:
parent
e8be2ac554
commit
0edacf372c
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
};
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue