bring back acl for cloud file uploads

This commit is contained in:
Mario Vavti
2016-08-06 12:46:10 +02:00
parent b6db0f72f5
commit 4f0b138692
4 changed files with 31 additions and 19 deletions

View File

@@ -202,7 +202,7 @@ function UploadFile(file, idx) {
});
// POST to the entire cloud path
xhr.open('post', window.location.pathname, true);
xhr.open('post', 'file_upload', true);
var formfields = $("#ajax-upload-files").serializeArray();
@@ -210,7 +210,7 @@ function UploadFile(file, idx) {
$.each(formfields, function(i, field) {
data.append(field.name, field.value);
});
data.append('file', file);
data.append('userfile', file);
xhr.send(data);
}