processwire / processwire-requests

ProcessWire feature requests.
39 stars 0 forks source link

Please add $pagefile->isImage property or method #517

Open BernhardBaumrock opened 5 months ago

BernhardBaumrock commented 5 months ago

Short description of the enhancement

I'm listing files uploaded by the client to a files field. For images I want to schow a preview image. Now I need to check for all possible file extensions, which should better be done once in the core instead of in every project of me and everybody else :)

If that's already possible I'm sorry :)

BernhardBaumrock commented 5 months ago

I've added it to RockMigrations via hook in the meantime: https://github.com/baumrock/RockMigrations/commit/43a06de5863cb49a6ed4429dd174fa1d6ae16792