diff options
author | redmatrix <git@macgirvin.com> | 2016-07-24 22:58:26 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-07-24 22:58:26 -0700 |
commit | 01338a76103a18d053413f1a8ad45870b2babf02 (patch) | |
tree | 1945583abc00aba641f7348bdcdcf485daacacca /view | |
parent | 063b4286e7feae472d52e9717ba1bafede48d1b4 (diff) | |
download | volse-hubzilla-01338a76103a18d053413f1a8ad45870b2babf02.tar.gz volse-hubzilla-01338a76103a18d053413f1a8ad45870b2babf02.tar.bz2 volse-hubzilla-01338a76103a18d053413f1a8ad45870b2babf02.zip |
make drag/drop work with acl, which bypassed the form
Diffstat (limited to 'view')
-rw-r--r-- | view/js/mod_cloud.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/view/js/mod_cloud.js b/view/js/mod_cloud.js index 71e916446..8f08c7fe9 100644 --- a/view/js/mod_cloud.js +++ b/view/js/mod_cloud.js @@ -90,9 +90,9 @@ function DragDropUploadFile(file, idx) { } }); // POST to the entire cloud path - xhr.open('post', window.location.pathname, true); + xhr.open('post', 'file_upload', true); var data = new FormData(document.getElementById("ajax-upload-files")); - data.append('file', file); + data.append('userfile', file); xhr.send(data); } |