multiple file upload issues capped at 210mb for now
This commit is contained in:
@@ -11,6 +11,7 @@ export const appealTypeDataActionTypes = {
|
||||
SETDOCUMENTLIST: "SETDOCUMENTLIST",
|
||||
SETFILELIST: "SETFILELIST",
|
||||
SETNEWAPPEALPROGRESS: "SETNEWAPPEALPROGRESS",
|
||||
SETFILECOUNT: "SETFILECOUNT",
|
||||
};
|
||||
|
||||
export const getAppealTypeObj = () => (dispatch) => {
|
||||
@@ -86,3 +87,10 @@ export const setNewAppealProgress = (progress) => (dispatch) => {
|
||||
progress: progress,
|
||||
});
|
||||
};
|
||||
|
||||
export const setFileCount = (fileCount) => (dispatch) => {
|
||||
return dispatch({
|
||||
type: appealTypeDataActionTypes.SETFILECOUNT,
|
||||
fileCount: fileCount,
|
||||
});
|
||||
};
|
||||
|
||||
@@ -10,6 +10,7 @@ const appealTypeDataInitialState = {
|
||||
formComplete: "false",
|
||||
documentList: {},
|
||||
fileList: [],
|
||||
fileCount: 0,
|
||||
progress: [],
|
||||
};
|
||||
|
||||
@@ -60,6 +61,11 @@ export default function reducer(state = appealTypeDataInitialState, action) {
|
||||
...state,
|
||||
fileList: action.fileList,
|
||||
};
|
||||
case appealTypeDataActionTypes.SETFILECOUNT:
|
||||
return {
|
||||
...state,
|
||||
fileCount: action.fileCount,
|
||||
};
|
||||
case appealTypeDataActionTypes.SETNEWAPPEALPROGRESS:
|
||||
return {
|
||||
...state,
|
||||
|
||||
Reference in New Issue
Block a user