I used setAcceptFilter("application/pdf") on MultiFileUpload.
But since this does only set a default filter for the file chooser, the user can still chose to show all files and upload a non pdf. In this case the component will show a notification with "File is wrong type!".
This notification text seems to be hard coded and not customizable.
It would be nice if it was.
I used setAcceptFilter("application/pdf") on MultiFileUpload.
But since this does only set a default filter for the file chooser, the user can still chose to show all files and upload a non pdf. In this case the component will show a notification with "File is wrong type!".
This notification text seems to be hard coded and not customizable.
It would be nice if it was.