From 3dd4095c7950a127e2820a4b736926580ccb0b79 Mon Sep 17 00:00:00 2001 From: Ammarin Date: Sun, 9 Jun 2024 21:32:18 +0700 Subject: [PATCH] minSize = 10KB --- components/Dropzone.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Dropzone.tsx b/components/Dropzone.tsx index a75134a..e758ede 100644 --- a/components/Dropzone.tsx +++ b/components/Dropzone.tsx @@ -5,7 +5,7 @@ import { UploadIcon } from "@radix-ui/react-icons"; import { Dispatch, SetStateAction, useCallback } from "react"; import { DropEvent, FileRejection, useDropzone } from "react-dropzone"; -const minSize = 100 * 1024; // 100kb +const minSize = 10 * 1024; // 10KB const mimetypes = { "image/jpeg": [".jpeg", ".jpg"], "image/png": [".png"],