diff options
-rw-r--r-- | Zotlabs/Module/File_upload.php | 2 | ||||
-rw-r--r-- | view/js/mod_cloud.js | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Zotlabs/Module/File_upload.php b/Zotlabs/Module/File_upload.php index 45f820b7c..999b241f1 100644 --- a/Zotlabs/Module/File_upload.php +++ b/Zotlabs/Module/File_upload.php @@ -9,6 +9,8 @@ require_once('include/photos.php'); class File_upload extends \Zotlabs\Web\Controller { function post() { + + // logger('file upload: ' . print_r($_REQUEST,true)); $channel = (($_REQUEST['channick']) ? get_channel_by_nick($_REQUEST['channick']) : null); 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); } |