From e5deab6fa2433d10958f88feb27e6b4b12f6479a Mon Sep 17 00:00:00 2001 From: raiot Date: Thu, 24 Aug 2023 23:15:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=97=B6=E9=99=90=E5=88=B6=E6=89=A9=E5=B1=95=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- retriever/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retriever/forms.py b/retriever/forms.py index 94fcef6..44e4a45 100644 --- a/retriever/forms.py +++ b/retriever/forms.py @@ -12,4 +12,4 @@ class SpaceSeparatedField(forms.CharField): class UploadForm(forms.Form): attachments = MultiFileField(min_num=1, max_num=10, max_file_size=1024 * 1024 * 64, - attrs={'class': 'file-input is-primary'}) + attrs={'class': 'file-input is-primary', 'accept': '.docx, .doc, .dot, .pptx, .ppt, .pdf, .xls'})