This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

zs60815
zs60815

Hello,

I need a bit of help. I don't know what am I missing here. I changed both the config/cms.php and the config/filesystems.php, but doesn't work as expected.

cms.php:

'storage' => [

    'uploads' => [
        'disk'            => 'local',
        'folder'          => 'uploads',
        'path'            => '/uploads',
        'temporaryUrlTTL' => 3600,
    ],

    'media' => [
        'disk'   => 'local',
        'folder' => 'uploads',
        'path'   => '/uploads',
    ],

],

filesystems.php:

'disks' => [

    'local' => [
        'driver' => 'local',
        'root'   => '/uploads',
        'url'    => '/uploads',
    ],

Issues:

  1. Files in the /uploads directory doesn't show in backend/backend/media
  2. When I upload someting at /backend/media there is no error, but the file isn't accessible anywhere, and doesn't exist in the /uploads folder.

I'm migrating an old site that has thousands of files in /uploads folder and I would like to have those sites visible under backend/backend/media, the above seemed the easiest solution, but it's not working. What am I missing or what would be the proper workaround for this situation?

Eoler
Eoler

zs60815 said: I'm migrating an old site that has thousands of files in /uploads folder and I would like to have those sites visible under backend/backend/media, the above seemed the easiest solution, but it's not working. What am I missing or what would be the proper workaround for this situation?

You're probably missing folder allowlist in .htaccess, example: https://github.com/octobercms/october/blob/develop/.htaccess#L34

Last updated

zs60815
zs60815

Eoler said:

zs60815 said: I'm migrating an old site that has thousands of files in /uploads folder and I would like to have those sites visible under backend/backend/media, the above seemed the easiest solution, but it's not working. What am I missing or what would be the proper workaround for this situation?

You're probably missing folder allowlist in .htaccess, example: https://github.com/octobercms/october/blob/develop/.htaccess#L34

Thank you. I had that folder whitelisted, but I'll give it an try.

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.