aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-08-06 12:46:10 +0200
committerMario Vavti <mario@mariovavti.com>2016-08-06 12:46:10 +0200
commit4f0b1386924b52da59d0a4eedaae689173fe21da (patch)
treeab3453e054f88cb792cac4479df2b870822c9a3d /view/js
parentb6db0f72f5ec6501b52110763cb917369d0980ca (diff)
downloadvolse-hubzilla-4f0b1386924b52da59d0a4eedaae689173fe21da.tar.gz
volse-hubzilla-4f0b1386924b52da59d0a4eedaae689173fe21da.tar.bz2
volse-hubzilla-4f0b1386924b52da59d0a4eedaae689173fe21da.zip
bring back acl for cloud file uploads
Diffstat (limited to 'view/js')
-rw-r--r--view/js/mod_cloud.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/view/js/mod_cloud.js b/view/js/mod_cloud.js
index 5b3c78bed..8b8a3ba3f 100644
--- a/view/js/mod_cloud.js
+++ b/view/js/mod_cloud.js
@@ -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);
}