files-ui / files-ui-react

UI components for file uploads with React js. Files UI is a complete library for handling files in the UI. You can validate and upload them. Multilanguage. Server side support.
https://www.files-ui.com
MIT License
46 stars 9 forks source link

Async file validation #35

Open cahaseler opened 7 months ago

cahaseler commented 7 months ago

Is your feature request related to a problem? Please describe. The validator function requires a synchronous function, which means I can't actually read the file in order to do the validation, given that all the browser-friendly ways to do so are async. Not being able to actually look at the contents of the file makes it incredibly hard to do any kind of validation.

Describe the solution you'd like Accept async javascript.