From 7346368a2bc11cea6304f0c383131bb4773d73db Mon Sep 17 00:00:00 2001 From: smolgrrr Date: Mon, 12 Aug 2024 16:28:19 +1000 Subject: [PATCH] rm media --- client/src/components/Forms/PostFormCard.tsx | 32 -------------------- client/src/utils/relays.ts | 6 +--- 2 files changed, 1 insertion(+), 37 deletions(-) diff --git a/client/src/components/Forms/PostFormCard.tsx b/client/src/components/Forms/PostFormCard.tsx index 8023ab2..129fbb0 100644 --- a/client/src/components/Forms/PostFormCard.tsx +++ b/client/src/components/Forms/PostFormCard.tsx @@ -180,38 +180,6 @@ const NewNoteCard = ({ )} -
- document.getElementById("file_input")?.click()} - /> - { - const file_input = e.target.files?.[0]; - if (file_input) { - // Check if file size is greater than 2.5MB - if (file_input.size > 2.5 * 1024 * 1024) { - setFileSizeError(true); - return; - } - setUploadingFile(true); - const attachedFile = await attachFile(file_input); - setFile(attachedFile); - setUploadingFile(false); - setFileSizeError(false); - } - }} - /> - {uploadingFile ? ( -
- -
- ) : null} -