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
Describe the bug
If you decide to specify both the MaxWidth and MaxHeight, and try to select a non-image, like an mp3- or text-file, it will not work, but will not give you an error either. But if either MaxHeight or MaxWidth is omitted, it works as expected/normal for non-image-files.
Add both a MaxWidth-, a MaxHeight-, and an Accept-attribute to the RadzenFileInput-component. The Accept-attribute is needed to allow you to set something else than images. Example: ´MaxHeight="500" MaxWidth="500" Accept="text/,audio/,image/*"´
Click Run
Select an image-file, and see that the Change-event logs to the Console-log
Select a non-image file.
See that things don't work. The Change-event will for instance not be triggered.
if you edit away MaxHeigth or MaxWidth, and run it again, and try a non-image, everything works as expected.
Expected behavior
I Expect that even if I decide to add both a MaxWidth and a MaxHeight, It will still work as expected for all the different files.
Screenshots
It is better to experience it.
Desktop (please complete the following information):
OS: Experienced on both Windows and Mac
Browser Tried both Safari, Edge and Chrome, etc.
Version ....
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
If you decide to specify both the MaxWidth and MaxHeight, and try to select a non-image, like an mp3- or text-file, it will not work, but will not give you an error either. But if either MaxHeight or MaxWidth is omitted, it works as expected/normal for non-image-files.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I Expect that even if I decide to add both a MaxWidth and a MaxHeight, It will still work as expected for all the different files.
Screenshots
It is better to experience it.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: