TypiCMS/Base

Images don't show from Amazon S3

nunofmmarques opened this issue · 2 comments

I'm using Amazon S3 and I can upload files perfectly.

But on the backoffice and the website all the images are still presented with the APP_URL.
I guess the presenter class keeps using the path field instead of url.

The image detail page is the only place where the image is show correctly.
image

Is there any config that needs to be changed?

Thank you!

Hello Nuno,
I think you have to configure the Croppa package like explained in this thread : #117
Please let me know if it works.

Thank your for your response!
Yes I needed to change the config 'crops_dir' => storage_path('app/public') and now all the S3 works perfectly on the back-office.

But then on the front-end I need to change all the $obj->present()->image to $obj->image->url in order to show the s3 image and not the storage one.