diff options
Diffstat (limited to 'view/js')
-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 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); } |