summaryrefslogtreecommitdiff
path: root/app/client/api/crud.upload.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-29 02:01:04 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-29 02:01:04 +0200
commita77de3f5ee9826e8391735ee18809fc716c35bbd (patch)
treefa2092c7e3fff41f82c5864995fa84ece5dbdee7 /app/client/api/crud.upload.js
parent0296adc3ace0e36b92a56ec3a01a933b9bbd2e99 (diff)
dispatch all the events lol
Diffstat (limited to 'app/client/api/crud.upload.js')
-rw-r--r--app/client/api/crud.upload.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/client/api/crud.upload.js b/app/client/api/crud.upload.js
index 42aae2b..26917ff 100644
--- a/app/client/api/crud.upload.js
+++ b/app/client/api/crud.upload.js
@@ -1,6 +1,6 @@
import { as_type } from './crud.types'
-export function upload(type, id, fd, dispatch) => {
+export function crud_upload(type, id, fd, dispatch) => {
return new Promise( (resolve, reject) => {
const xhr = new XMLHttpRequest()
xhr.upload.addEventListener("progress", uploadProgress, false)
@@ -66,5 +66,5 @@ export function upload(type, id, fd, dispatch) => {
}
export function uploadAction(type, id, fd) {
- return dispatch => upload(type, id, fd, dispatch)
+ return dispatch => crud_upload(type, id, fd, dispatch)
} \ No newline at end of file