summaryrefslogtreecommitdiff
path: root/app/client/api/crud.upload.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/client/api/crud.upload.js')
-rw-r--r--app/client/api/crud.upload.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/client/api/crud.upload.js b/app/client/api/crud.upload.js
index 01c3e18..29216df 100644
--- a/app/client/api/crud.upload.js
+++ b/app/client/api/crud.upload.js
@@ -15,7 +15,7 @@ export function crud_upload(type, fd, data, dispatch) {
xhr.addEventListener("load", uploadComplete, false)
xhr.addEventListener("error", uploadFailed, false)
xhr.addEventListener("abort", uploadCancelled, false)
- xhr.open("POST", '/' + type + '/' + id + '/upload/')
+ xhr.open("POST", '/api/' + type + '/' + id + '/upload/')
xhr.send(fd)
dispatch && dispatch({ type: as_type(type, 'upload_loading')})