Skip to content
Discussion options

You must be logged in to vote

Hi @gsal,

You can use our Dropzone component to upload files, here is a small example of how this might be set up:

from dara.components import UploadDropzone

def resolve_file_uploaded(file:bytes, file_name: str):
    print(file_name)

UploadDropzone(
    accept="image/png, image/jpeg",
    resolver=resolve_file_uploaded
)

Please check our Dropzone docs to learn more about the props it accepts, and do let us know if you have any questions about how to use it.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by patricia-causalens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants