processwire-requests icon indicating copy to clipboard operation
processwire-requests copied to clipboard

Please add $pagefile->isImage property or method

Open BernhardBaumrock opened this issue 1 year ago • 1 comments

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 avatar Jan 29 '24 10:01 BernhardBaumrock

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

BernhardBaumrock avatar Jan 29 '24 10:01 BernhardBaumrock