diff --git a/packages/web/components/templates/UploadModal.tsx b/packages/web/components/templates/UploadModal.tsx index 5c3919c17..bc1cc713b 100644 --- a/packages/web/components/templates/UploadModal.tsx +++ b/packages/web/components/templates/UploadModal.tsx @@ -157,13 +157,22 @@ export function UploadModal(props: UploadModalProps): JSX.Element { } } - const result = await uploadImportFileRequestMutation( - UploadImportFileType.URL_LIST, - contentType - ) - return { - uploadSignedUrl: result?.uploadSignedUrl, - message: `Importing ${urlCount} URLs`, + try { + const result = await uploadImportFileRequestMutation( + UploadImportFileType.URL_LIST, + contentType + ) + return { + uploadSignedUrl: result?.uploadSignedUrl, + message: `Importing ${urlCount} URLs`, + } + } catch (error) { + console.log('caught error', error) + if (error == 'UPLOAD_DAILY_LIMIT_EXCEEDED') { + return { + message: 'You have exceeded your maximum daily upload limit.', + } + } } } case 'application/zip': {