diff --git a/app/src/lib/components/ChatBoxAttachment.svelte b/app/src/lib/components/ChatBoxAttachment.svelte index 4679683..1c9a9f7 100644 --- a/app/src/lib/components/ChatBoxAttachment.svelte +++ b/app/src/lib/components/ChatBoxAttachment.svelte @@ -23,8 +23,7 @@ const files = Array.from(fileList); if (selectedFiles.length + files.length > MAX_FILES) { - alert(`You can only upload up to ${MAX_FILES} files`); - return; + return toast.info(`You can only upload up to ${MAX_FILES} files`); } selectedFiles = [...selectedFiles, ...files]; @@ -47,7 +46,7 @@ -
{file.name}
- {formatFileSize(file.size)} • {file.type || 'text/plain'} + {formatFileSize(file.size)} • {parseFileType(file)}