diff --git a/src/routes/home/Home.js b/src/routes/home/Home.js index 74d3464f..91c1c125 100644 --- a/src/routes/home/Home.js +++ b/src/routes/home/Home.js @@ -788,6 +788,31 @@ class Home extends React.Component { attachmentData: this.state.attachmentData, CreateDate: new Date(this.state.CreateDate).toISOString(), }), + { + onUploadProgress: progressEvent => { + const { + loaded: submitProgressValue, + total: submitProgressMax, + } = progressEvent; + + this.setState({ + submitProgressValue, + submitProgressMax, + }); + }, + + onDownloadProgress: progressEvent => { + const { + loaded: submitProgressValue, + total: submitProgressMax, + } = progressEvent; + + this.setState({ + submitProgressValue, + submitProgressMax, + }); + }, + }, ) .then(({ data }) => { const { submission } = data; @@ -1123,6 +1148,19 @@ class Home extends React.Component { + + {this.state.isSubmitting && ( +