From e46f97d5b1a7573909c88b87e7cf2298e1c5dfa0 Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Thu, 18 Mar 2021 22:04:04 +0800
Subject: feat: Only support image types.

---
 FrontEnd/src/app/views/timeline-common/MarkdownPostEdit.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'FrontEnd/src/app/views/timeline-common/MarkdownPostEdit.tsx')

diff --git a/FrontEnd/src/app/views/timeline-common/MarkdownPostEdit.tsx b/FrontEnd/src/app/views/timeline-common/MarkdownPostEdit.tsx
index 68dee848..fb38d2f7 100644
--- a/FrontEnd/src/app/views/timeline-common/MarkdownPostEdit.tsx
+++ b/FrontEnd/src/app/views/timeline-common/MarkdownPostEdit.tsx
@@ -158,7 +158,7 @@ const MarkdownPostEdit: React.FC<MarkdownPostEditProps> = ({
                 ))}
                 <Form.File
                   label={t("chooseImage")}
-                  accept="image/*"
+                  accept="image/jpeg,image/jpg,image/png,image/gif,image/webp"
                   onChange={(event: React.ChangeEvent<HTMLInputElement>) => {
                     const { files } = event.currentTarget;
                     if (files != null && files.length !== 0) {
-- 
cgit v1.2.3

