
+1
Completed
Custom thumbnail icon for custom file type
Hi,
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.
Thanks a lot for your feedback
Regards
Florian
Customer support service by UserEcho
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 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.