#Can payload save an image in multiple formats ?
4 messages · Page 1 of 1 (latest)
Seems like something you can do in beforeChangeHook. You can look at similar example cloud storage plugin - https://github.com/payloadcms/plugin-cloud-storage/blob/master/src/hooks/beforeChange.ts#L16
So I should be able to save the file to others formats, but can the file still be linked to payload and get all the different types in the API response. I guess I would have to do some customisation in the afterRead hook ?
I guess overriding the API response also means the generated typescript schema would be wrong