diff --git a/pynecone/components/forms/upload.py b/pynecone/components/forms/upload.py index 9afbe8bec..1d4f65f74 100644 --- a/pynecone/components/forms/upload.py +++ b/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.