You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vaadin upload component has a property "accept", where you can specify what files to accept, e.g. '*.pdf'.
This has two effects:
(1) a filter *.pdf is added to the file-select dialog which the browser opens. This helps users to select the correct file type.
(2) a check is enabled in the component's javascript code that accepts only correct file types. This functionality was added only with some recent version (23 or 24).
While this is good in general, we would like to have an option to disable (2) - or more flexible to be able to supply the checking code.
Reason is: at least on Windows, both in Firefox and Chrome, even when one specifies *.pdf, the browser always adds the option*.*which user can select. It is ok for our application that user can pass any file, still we want this 'accept' feature as initial filter for user.
Describe the solution you'd like
we would like to have an option to disable the file name check in vaadin code (around vaadin-upload-mixin __acceptRegexp) - or (more flexible) to be able to supply the checking code.
Describe alternatives you've considered
of course we could leave empty the property "accept", but then the user will have no hint on what might be the "preferred" content they can upload here.
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe your motivation
vaadin upload component has a property "accept", where you can specify what files to accept, e.g. '*.pdf'.
This has two effects:
(1) a filter *.pdf is added to the file-select dialog which the browser opens. This helps users to select the correct file type.
(2) a check is enabled in the component's javascript code that accepts only correct file types. This functionality was added only with some recent version (23 or 24).
While this is good in general, we would like to have an option to disable (2) - or more flexible to be able to supply the checking code.
Reason is: at least on Windows, both in Firefox and Chrome, even when one specifies *.pdf, the browser always adds the option
*.*
which user can select. It is ok for our application that user can pass any file, still we want this 'accept' feature as initial filter for user.Describe the solution you'd like
we would like to have an option to disable the file name check in vaadin code (around vaadin-upload-mixin __acceptRegexp) - or (more flexible) to be able to supply the checking code.
Describe alternatives you've considered
of course we could leave empty the property "accept", but then the user will have no hint on what might be the "preferred" content they can upload here.
Additional context
No response
The text was updated successfully, but these errors were encountered: