Hopefully fix for drag'n'drop import in oc-813.
This commit is contained in:
parent
5fb9b3e965
commit
b11b6afbb9
1 changed files with 1 additions and 1 deletions
|
@ -1427,7 +1427,7 @@ Contacts={
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
xhr.open('POST', OC.filePath('contacts', 'ajax', 'uploadimport.php') + '?file='+encodeURIComponent(file.name), true);
|
xhr.open('POST', OC.filePath('contacts', 'ajax', 'uploadimport.php') + '?file='+encodeURIComponent(file.name)+'&requesttoken='+requesttoken, true);
|
||||||
xhr.setRequestHeader('Cache-Control', 'no-cache');
|
xhr.setRequestHeader('Cache-Control', 'no-cache');
|
||||||
xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
|
xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
|
||||||
xhr.setRequestHeader('X_FILE_NAME', encodeURIComponent(file.name));
|
xhr.setRequestHeader('X_FILE_NAME', encodeURIComponent(file.name));
|
||||||
|
|
Loading…
Reference in a new issue