]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/static/js/upload.js
upload: change REST path from /ctdl/a/upload/ to /ctdl/p/
[citadel.git] / webcit-ng / static / js / upload.js
index c62d1c4f212b2edb9db7365e719d3d4add82167a..39b9d018728861c56630ee84c234aff37003eab8 100644 (file)
@@ -66,7 +66,7 @@ function handle_upload_files(files) {
 
 
 function upload_file(file) {
-       var url = '/ctdl/a/upload';
+       var url = '/ctdl/p/';
        var xhr = new XMLHttpRequest();
        var formData = new FormData();
        xhr.open('POST', url, true);
@@ -145,4 +145,4 @@ function flush_uploads() {
         document.getElementById('ctdl-upload').style.display='none';
         // FIXME tell the server to delete the files
         uploads=[];
-}
\ No newline at end of file
+}