filestack / filestack-react

Official React component for Filestack - API and content management system that makes it easy to add powerful file uploading and transformation capabilities to any web or mobile application.
https://www.filestack.com
MIT License
164 stars 40 forks source link

Add a dropdown for user to select from list of file types #62

Closed getnorthern closed 5 years ago

getnorthern commented 5 years ago

Would it be possible to add a dropdown of file types against each file they want to upload for the user to select from, for example:

This could then append the selected file type to the file name, or create a new directory on Filestack based on the file type selected.

Or is there a way to do this already, which I haven't come across?

Thanks.

AndrzejSala commented 5 years ago

Hi @getnorthern We don't have option like that and we are not going to add it in the near future. But you can add dropdown with type of document somewhere above picker and check it value inside function passed to onFileSelected option. You can also update file name there as you needed.

Check out this jsfiddle: https://jsfiddle.net/a6skhqy1/6/