File Picker: Ready for Production use? #2724
-
I am using the paste library for a twilio internal migration project. I am interested in this component for production usage. I want to know:
The alternative is I have to reinvent the wheel, consuming more time and effort. I need to finish this within October, so please help me get better insight on the usability of this component. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi @bsandeepan
|
Beta Was this translation helpful? Give feedback.
-
Thanks @nkrantz . I tried out the example in react environment for the last few days, and it is working well with a few points:
|
Beta Was this translation helpful? Give feedback.
Hi @bsandeepan
accept
prop (read more about it here), but it's still recommended that you use server-side validation as well, because it's possible to circumvent theaccept
prop. There's no prop for size restrictions, but you can implement your own validation using the size info that you get back from the HTML element's.file
property (read more about what info you can read on uploaded files here). Feel free to take a look at this CodeSandbox that demonstrates an option for how to grab that file size.