diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-04 02:54:44 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-04 02:54:44 +0200 |
| commit | 2f22fd5e4a558ed9b2379565be88b9d1e1b9b7c5 (patch) | |
| tree | 4a66cae0cc816bf01949b3076fbb082a460d47cb /app/client/api | |
| parent | 9871cd35c31e77fac9ed484f80783e3267573016 (diff) | |
instructing server to curl files into the database/s3
Diffstat (limited to 'app/client/api')
| -rw-r--r-- | app/client/api/crud.upload.js | 2 |
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')}) |
