فهرست منبع

File upload accept types format (#816)

Elijah Ahianyo 2 سال پیش
والد
کامیت
64d5212f0b
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      pynecone/components/forms/upload.py

+ 1 - 1
pynecone/components/forms/upload.py

@@ -19,7 +19,7 @@ class Upload(Component):
     tag = "ReactDropzone"
 
     # The list of accepted file types.
-    accept: Var[Optional[List[str]]]
+    accept: Var[Optional[Dict[str, List]]]
 
     # Whether the dropzone is disabled.
     disabled: Var[bool]