Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
allow user to retry/re-upload after document upload fails
Bilal Ahmad Bhat9516c44b9f70
diff --git a/components/documents/add-document-modal.tsx b/components/documents/add-document-modal.tsxindex a56af90c..ec3b2fe7 100644--- a/components/documents/add-document-modal.tsx+++ b/components/documents/add-document-modal.tsx@@ -107,7 +107,11 @@ export function AddDocumentModal({}}} catch (error) {+ setUploading(false);+ toast.error("An error occurred while uploading the file.");console.error("An error occurred while uploading the file: ", error);+ } finally {+ setUploading(false);}};@@ -226,10 +230,14 @@ export function AddDocumentModal({}}} catch (error) {+ setUploading(false);+ toast.error("An error occurred while processing the Notion link.");console.error("An error occurred while processing the Notion link: ",error,);+ } finally {+ setUploading(false);}};