silverstripe / silverstripe-asset-admin

Silverstripe assets gallery for asset management
BSD 3-Clause "New" or "Revised" License
20 stars 79 forks source link

No way to tell File Type #987

Open sunnysideup opened 5 years ago

sunnysideup commented 5 years ago

We found that all non-image files (e.g. PDF/DOCX/CSV/XLS) look like the below image, and there isn't any way to distinguish them yet.

image

This obviously makes it hard to work with files.

sachajudd commented 5 years ago

cc @silverstripeux

clarkepaul commented 5 years ago

We did have the main doc types created as separate icons but corners were cut and a single image was used for all. I think it would be good to replace them all anyhow with SVG, then perhaps we can use actual text in the corner for the actual doctype. This would allow for developers to add custom doctypes which the system doesn't support by default.

sunnysideup commented 5 years ago

what about at least adding the file type as a css class?

clarkepaul commented 5 years ago

Could do, but if you're going to add a CSS class I'd think to add the doc type in visible text as well would be easy enough to do at the same time (avoiding having different icons for each file type).