diff options
Diffstat (limited to 'frontend/views/upload/upload.actions.js')
| -rw-r--r-- | frontend/views/upload/upload.actions.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/frontend/views/upload/upload.actions.js b/frontend/views/upload/upload.actions.js deleted file mode 100644 index ba2b14b..0000000 --- a/frontend/views/upload/upload.actions.js +++ /dev/null @@ -1,17 +0,0 @@ -import * as types from '../../types' -import { store, history } from '../../store' -import { api, post, pad, preloadImage } from '../../util' -import actions from '../../actions' -import { session } from '../../session' - -export const upload = file => dispatch => { - const formData = { - 'image': file, - 'username': session('username'), - } - // console.log(formData) - return actions.upload.upload(formData).then(data => { - // console.log(data.res) - return data.res - }) -} |
