I have a controller for displaying images and I am using
Response::withFile() function. Hower, I got this message instead
The image [URL] cannot be displayed because it contains errors.
Few notes to add:
- The image exists, valid and is very small 360x152
- Tested with png and jpg
- CakePHP version: 4.2.4
- If I set the option to
TRUE, the file is served as downloadable however the file can not be view nor detected as image.
Has anyone encountered the same issue as mine, any help would be appreciated.