Change icon for specific file type

Hallo,

how can I change  the icon for a specific file type (extension) in Blazor File Manager?


7 Replies 1 reply marked as answer

PM Prasanth Madhaiyan Syncfusion Team February 12, 2025 01:35 PM UTC

Hi Gian,

Greetings from Syncfusion support.
 
Based on the shared details, we understand that you would like to set icons based on file types in the large icon view of the Blazor FileManager. You can disable thumbnails by setting the ShowThumbnail property to false and use CSS to define custom icons for different file types and folders. We have documented this case in our demo section. Refer to the link below for customization information:
 

In the showcased sample of the FileManager component, the custom thumbnail feature allows you to view personalized thumbnails for both folders and file types using the ShowThumbnail property.
 
Note: Custom thumbnail styles (the `background-image` for the classes within the `.e-filemanager .e-large-icons` class) were applied to the folder and file types using the corresponding class names, resulting in a visually distinctive representation of the thumbnails tailored to specific needs.
 
Check out the shared details and let us know if you need any further assistance.

Regards,

Prasanth Madhaiyan.



GI Gian February 12, 2025 04:35 PM UTC

Thank you, I was able to do it by  following the example .



SS Shereen Shajahan Syncfusion Team February 13, 2025 04:37 AM UTC

Hi Gian,

Glad to know that the provided solution helped. Please get back to us for assistance in the future.

Regards,

Shereen



GI Gian February 14, 2025 04:07 PM UTC

The graphic designers in our company wish to have the same icon style for all icons: is there a list of the file types that have a dedicated icon in FileManager, so that I can replace them?



PM Prasanth Madhaiyan Syncfusion Team February 17, 2025 10:19 AM UTC

Hi Gian,


Based on the shared details, we would like to provide you with a list of file types for which you can set custom thumbnail styles in the FileManager component under the .e-filemanager .e-large-icons element:

  • .e-fe-image
  • .e-fe-music
  • .e-fe-xlsx
  • .e-fe-video
  • .e-fe-pptx
  • .e-fe-rar
  • .e-fe-zip
  • .e-fe-txt
  • .e-fe-js
  • .e-fe-css
  • .e-fe-html
  • .e-fe-unknown
  • .e-fe-exe
  • .e-fe-msi
  • .e-fe-php
  • .e-fe-doc
  • .e-fe-docx
  • .e-fe-xml
  • .e-fe-folder

Please review the shared details, and if we have misunderstood your exact requirements, kindly provide more information. This will help us offer a prompt and accurate solution. We look forward to your response.

Regards,

Prasanth Madhaiyan.


Marked as answer

GI Gian February 18, 2025 04:06 PM UTC

That's perfect, thank you!



PM Prasanth Madhaiyan Syncfusion Team February 19, 2025 05:19 AM UTC

Hi Gian,


Glad to know that the provided solution helped. Please get back to us for assistance in the future.

Regards,

Prasanth Madhaiyan.


Loader.
Up arrow icon