This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
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:
- Files in the
/uploads
directory doesn't show inbackend/backend/media
- 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?
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 underbackend/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
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 underbackend/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