-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileUpload: Needed Event: onBeforeSelect #3134
Comments
Thank you very much |
No problem! |
how do i get the list of files using onBeforeSelect prop. I cannot get it from the event object that is passed to the handler method. I am trying to validate the file size and file type uploaded using toast messages and not show invalid files in the pending file list of the FileUpload control. I am using primereact version 9.2.3 which has the onBeforeSelect prop available. please assist. |
I was able to get the list of files from event.originalEvent.target.files after much trial and error. |
yeah you can always |
Describe the feature you would like to see added
When using custom template and adding multiple files I want to make some controls before file listed as an item.
Is your feature request related to a problem?
No response
Describe the solution you'd like
If my controls fail then I want to return false so I don't want to see the file in the file list
Describe alternatives you have considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: