Преглед изворни кода

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]