I'm trying to make the application as stateless as possible. In order to achieve that I need to store all the assets, uploaded through forms and through "media" (=backend) on S3.
I've changed the disk types on config/cms.php to S3 and have set a proper folder and path:
'uploads' => [
'disk' => 's3',
'folder' => '/testfolder',
'path' => 'https://s3-eu-west-1.amazonaws.com/shared-uploads/testfolder'
It all seems to work until I try to upload a file using the "file_uploader" field.
Dropzone basically loads up the file but then gives the following error:
"File not found at path: uploads/public/5a8/d86/b3e/5a8d86b3e45ed498457997.jpg" on line 386 of /var/www/myproject/htdocs/vendor/league/flysystem/src/Filesystem.php
The file has been stored to S3 properly but when it tries to show the preview (= loading it back onto the page?) it fails with the error above.
Any ideas on how to solve this?