File upload on Maui Blazor Hybrid

Hi
I have an existing Blazor wasm web app published.
and it got some pages where images are uploaded using the file uploader component. these images are uploaded to the server using API

 <SfUploader ID="UploadFiles" AllowMultiple="true" AllowedExtensions=".jpeg, .jpg, .png, .gif">
     <UploaderEvents Success="@SuccessHandler"></UploaderEvents>
     <UploaderAsyncSettings SaveUrl="api/FileUpload/Save" RemoveUrl="api/FileUpload/Remove"></UploaderAsyncSettings>
 </SfUploader>

Now I want to replicate same on a Maui blazor hybrid app, 
The issue I'm facing now is, when "Browse" is selected and opens phone(testing on Android at the moment) media, all images or files are greyed out. 

Note that: Storage and Camera permissions are enabled yet all files are greyed out.
how can i fix this ?


2 Replies 1 reply marked as answer

BD Boot Dat January 5, 2024 03:25 PM UTC

Can I get a respond yet ?




KP Kokila Poovendran Syncfusion Team January 31, 2024 02:08 PM UTC

Hi Boot Dat,

We sincerely apologize for the delay in our response and any inconvenience caused by the file upload issue you encountered in your Blazor Maui application.

Upon investigation, we were able to replicate the problem you reported regarding the AllowedExtensions=".jpeg, .jpg" configuration. We understand the importance of resolving this issue promptly.

After thorough validation, we discovered a solution that addresses the problem effectively. We recommend utilizing the AllowedExtensions="image/*" property instead of specifying individual extensions. This adjustment resolves the greyed-out images and allows users to upload images successfully.

For your convenience, we have prepared a video reference demonstrating the resolution. In the provided sample, we have integrated the AllowedExtensions="image/*" property to ensure proper functionality.

We appreciate your patience and understanding as we worked to resolve this issue. Should you have any further questions or require additional assistance, please don't hesitate to reach out to us.


Regards,

Kokila Poovendran


Attachment: 185656_8551bba4.zip

Marked as answer
Loader.
Up arrow icon