aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/mod_cloud.js
diff options
context:
space:
mode:
Diffstat (limited to 'view/js/mod_cloud.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 8f08c7fe9..71e916446 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', 'file_upload', true);
+ xhr.open('post', window.location.pathname, true);
var data = new FormData(document.getElementById("ajax-upload-files"));
- data.append('userfile', file);
+ data.append('file', file);
xhr.send(data);
}