Custom thumbnail icon for custom file type

Florian V 4 years ago updated by Vlad R 3 years ago 1


i've created a custom plugin and file extension to open a special CAD file type and show it via web API.

I'm wondering if it's possible to assign also a custom thumbnail.png to this extension in order to make it more recognizable in the file listings.

Image 449

Thanks a lot for your feedback




Sorry for missing your message.

Yes, you can add file types with custom icons to FileRun. The file that needs editing is "system/data/filetypes.php".

A typical line looks like this:

'7z' =>     ['7z', '', 'application/x-7z-compressed', 'archive.png', 'Compressed Archive'],

7z is obviously the file extension.

application/x-7z-compressed is the file mime type (useful for allowing other apps, like the web browser, properly identify the type of file).

archive.png is the image used for the file's icon in the FileRun user interface. FileRun looks for this image file inside "images/fico/$color" (the $color depends on the currently selected FileRun theme; looks like "blank" in your case).

The PNG image file should have the size 250 x 253 and ideally have a transparent background.

Compressed Archive - is the file type description.