Replies: 2 comments 2 replies
-
I'm interested in getting Minio temporary urls to work locally in a dev environment.
The You'd think changing the .env to specify I'm using the laravel/vapor npm package to handle clientside upload, so the upload itself (through the browser) works because the localhost url is resolved. However, The Docker docs mention using All in all, MinIO temporary urls don't seem to be supported in sail so this part of the docs looks pretty accurate to me. That being said, I agree that the AWS_URL doesn't need to have the bucket name appended, it works fine as-is. I'm working on something that requires temporary urls, so my workaround is to use an actual S3 bucket and try to stick to the free-tier plan. |
Beta Was this translation helpful? Give feedback.
-
This is possible if you're using Orbstack as an alternative to Docker Desktop for Mac by using Orbstack's container domain names. By specifying your container domain name as the value for |
Beta Was this translation helpful? Give feedback.
-
The docs about file storage say
I decided to try it anyway to see what would happen, and it seems to work flawlessly on my MinIO cluster, it generates a URL that does work and does expire after the specified time.
So I'm wondering if it's just "not supported" because it has not been thoroughly tested by the Laravel team but actually works fine, or if there's a specific issue, limitation or bug with it that I'm not aware of.
The documentation also says
but I didn't need to : All I had to do was to specify the endpoint (eg:
https://minio.mydomain.com
), and the whenever I use the url method the bucket name is automatically appended :Storage::disk('mybucket')->file('myfile.jpg')
will returnhttps://minio.mydomain.com/mybucket/myfile.jpg
So I wonder if maybe the documentation is outdated and newer releases of Laravel/Minio actually work better than expected.
Beta Was this translation helpful? Give feedback.
All reactions