diff --git a/client/src/components/DataFiles/DataFilesModals/DataFilesUploadModalListing/DataFilesUploadModalListingTable.jsx b/client/src/components/DataFiles/DataFilesModals/DataFilesUploadModalListing/DataFilesUploadModalListingTable.jsx index 4506e2bfd..01126b3e7 100644 --- a/client/src/components/DataFiles/DataFilesModals/DataFilesUploadModalListing/DataFilesUploadModalListingTable.jsx +++ b/client/src/components/DataFiles/DataFilesModals/DataFilesUploadModalListing/DataFilesUploadModalListingTable.jsx @@ -5,11 +5,13 @@ import { LoadingSpinner, InlineMessage, Button } from '_common'; import { FileLengthCell } from '../../DataFilesListing/DataFilesListingCells'; import { useUpload } from 'hooks/datafiles/mutations'; import styles from './DataFilesUploadModalListingTable.module.scss'; +import { useSelector } from 'react-redux'; const DataFilesUploadStatus = ({ i, removeCallback, rejectedFiles }) => { if (rejectedFiles.filter((f) => f.id === i).length > 0) { return Exceeds File Size Limit; } + const errorMessage = useSelector((state) => state.files.error.message); const status = useUpload().status[i]; switch (status) { case 'UPLOADING': @@ -17,7 +19,11 @@ const DataFilesUploadStatus = ({ i, removeCallback, rejectedFiles }) => { case 'SUCCESS': return SUCCESS; case 'ERROR': - return Upload Failed; + return ( + + Upload Failed: {errorMessage} + + ); default: return (