This repository has been archived on 2025-09-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
resolver/app/actions/fileActions.jsx
2017-07-06 11:20:18 +04:30

53 lines
790 B
JavaScript

// - Import react components
import moment from 'moment'
// - Import image gallery action types
import * as types from 'actionTypes'
// - Import actions
import * as imageGalleryActions from 'imageGalleryActions'
// - Import firebase
import {storageRef,firebaseRef} from 'app/firebase/'
// - Upload file start
export const uploadFile = (file) => {
return (dispatch,getState) => {
}
}
// - Upload file error
export const uploadError = (error) => {
return{
type: types.UPLOAD_FILE_ERROR,
error
}
}
// - Uplaod file complete
export const uploadComplete = (result) => {
return{
type: types.UPLOAD_FILE_COMPLETE,
result
}
}
// - Download file
export const downloadFile = (fileName) => {
return {
type: types.DOWNLOAD_FILE,
fileName
}
}