nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.42k stars 4.07k forks source link

Use a subdirectory of a S3 bucket in External Storage #49272

Open denppa opened 14 hours ago

denppa commented 14 hours ago

As title. Currently, nextcloud does not allow one to mount a subdirectory of a bucket, using the syntax: bucket-name/a-sub-directory, complaining with the message:

The bucket will not be created because the name is not dns compatible, please correct it: bucket-name/a-sub-directory

At server/lib/private/Files/ObjectStore/S3ConnectionTrait.php Line 127.

Someone at reddit also asked if this is possible.

kesselb commented 5 hours ago

Use case?