reflex icon indicating copy to clipboard operation
reflex copied to clipboard

Add File Upload Component (pc.upload)

Open Alek99 opened this issue 3 years ago β€’ 1 comments

Another good first issue but this would be a harder than the date picker but if someone is up for the challenge this would be a huge help. This component with allow the user to upload a file to the server.

We can investigate if chakra input has this functionality using type="file". Otherwise we can make it from scratch or use another react lib to wrap.

Some requirements would be:

  • Can upload multiple types of files: images, json, txt, video...
  • User can specify path where the file is stored on the backend

See here for an intro into wrapping a react component in pynecone.

Alek99 avatar Jan 10 '23 07:01 Alek99

A good library may be react-drag-drop-files.

Alek99 avatar Jan 10 '23 20:01 Alek99

Would love to help, but have no experience with react. Came up to this framework after checking huggingface spaces. File upload would be one of the most useful features for AI applications. This lib seems interesting because gradio is good for demos, but this could be for products

flozi00 avatar Feb 12 '23 11:02 flozi00