sfuploader fails on Windows 10 for file type validation - Works fine on Windows 11
Team,
We have a difficult scenario, application developed on Windows 10/11, deployed in IIS of Azure Datacenter Server 2016, runs fine on Windows 11 or on Azure Datacenter Server 2016 but on Windows 10 Syncfusion Fileuploaded is giving Invalid file format type error even for correct file type.
Here is the snippet
<div class="col-sm-3 col-md-3 mb-3">
<div class="form-group">
<label>@ConstantValues.TXT_User_Profile_Image</label>
<SfUploader AllowMultiple="false" AllowedExtensions=".jpeg, .jpg, .png, .webm, .jfif">
@if (uploadedProfileImage.Count > 0)
{
<UploaderFiles>
@foreach (var item in uploadedProfileImage)
{
<UploaderUploadedFiles Name="@(item.Name)" Type="@(item.Type)" Size="@(item.Size)" />
}
</UploaderFiles>
}
<UploaderEvents ValueChange="@OnChangeImage" OnRemove="@OnRemove"></UploaderEvents>
</SfUploader>
<ValidationMessage For="@(() => userModel.ProfileImage)"></ValidationMessage>
</div>
</div>
Windows 10 not allowing file with a AllowedExtensions=".jpeg, .jpg, .png, .webm, .jfif". This is driving me crazy and my team. I was not able to fine any help.
Hope that you can guide is to solve this. Client hasn't upgraded to Windows 11 and this is the only issue they have and we have build a Kios application which is image uploading funcationlity heavy.
Hlep is appreciated.
I’am facing similar challenges in my own projects
Hi Hitesh Patel,
Thank you so much for reaching out to us, and we sincerely apologize for the delay in getting back to you. We truly understand how frustrating this issue must be for you and your team, especially given the importance of the image upload functionality in your application.
After carefully reviewing the code snippet you provided and testing the scenario by hosting the Blazor app in Azure, we were unfortunately unable to replicate the issue on our end. Specifically, we did not encounter the "Invalid file format type" error when uploading files with the allowed extensions (".jpeg, .jpg, .png, .webm, .jfif"), even while testing on Windows 10. For further reference, please take a look at the gif image demonstrating our testing process.
If you’re still facing this issue, we kindly request that you share additional details about the system configuration where the error occurs. Any specific information, such as the exact Windows 10 version, IIS configuration, or other environment settings, would greatly help us in replicating the issue on our end.
Lastly, could you share the version of the Syncfusion package you are currently using? This information is crucial, as different versions may have variations in functionality or known issues.
Additionally, we have prepared a sample for you to test and see if the issue persists in your environment:
Sample: https://blazorplayground.syncfusion.com/BZBpCZDOTnOBFTXO
We’re more than happy to investigate this further, and we truly appreciate your patience and cooperation. Please do let us know if there’s anything else we can do to assist.
Regards,
Yohapuja S
The issue occurs intermittently, sometimes working correctly and other times not.
I am using the following setup:
- Windows 10 Pro, Version 22H2
- Syncfusion version 22.1.51
I have attached a screenshot for reference.
Additionally, I would like to share a video that demonstrates the problem on Windows 10, but I am unable to attach the video here. Could you please suggest an alternative way to share the video with the Syncfusion support team?
Hi Nikeeta,
We have successfully generated a support ticket in response to your recent inquiry. We kindly request that you check your account for the ticket details and follow up accordingly for any further assistance.
Regards,
Kalpana.
- 4 Replies
- 4 Participants
-
HP Hitesh Patel
- Sep 11, 2024 06:30 PM UTC
- Nov 29, 2024 10:09 AM UTC