Quellcode durchsuchen

Update upload docstring (#848)

Elijah Ahianyo vor 2 Jahren
Ursprung
Commit
945ac53dd0
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 3 1
      pynecone/components/forms/upload.py

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

@@ -18,7 +18,9 @@ class Upload(Component):
 
     tag = "ReactDropzone"
 
-    # The list of accepted file types.
+    # The list of accepted file types. This should be a dictionary of MIME types as keys and array of file formats as
+    # values.
+    # supported MIME types: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
     accept: Var[Optional[Dict[str, List]]]
 
     # Whether the dropzone is disabled.