소스 검색

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"
     tag = "ReactDropzone"
 
 
     # The list of accepted file types.
     # The list of accepted file types.
-    accept: Var[Optional[List[str]]]
+    accept: Var[Optional[Dict[str, List]]]
 
 
     # Whether the dropzone is disabled.
     # Whether the dropzone is disabled.
     disabled: Var[bool]
     disabled: Var[bool]