404 error on /s3/files/styles

Created on 9 January 2024, about 1 year ago
Updated 15 March 2024, 12 months ago

Problem/Motivation

The uploaded files styles return a 404, i've added this snippet to my nginx server, but it doesn't make difference.

location ~ ^/s3/files/styles/ {
      try_files $uri @rewrite;
   }

I'm running Drupal in my localhost using Lando https://docs.lando.dev/drupal/ with the recepite Drupal 10, on production website I don't run into this problems.

There are specific requirements to use this plugin?

Steps to reproduce

Install lando
https://docs.lando.dev/getting-started/installation.html

Create a D10 website with the recepite
https://docs.lando.dev/drupal/getting-started.html

Install the s3fs module
lando composer require 'drupal/s3fs:^3.4'
lando drush en s3fs

Configure s3fs module

Than create a file inside a content type that use S3 File System.
Activate in the file system (admin/config/media/file-system) the option Amazon Simple Storage Service.
Try to upload a file, you should see that the preview image in broken.

Thanks for this module, and thank for help.

πŸ’¬ Support request
Status

Fixed

Version

3.4

Component

Documentation

Created by

πŸ‡¨πŸ‡­Switzerland roberto.muzzano

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024