-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Duplicate Bucket Name in Endpoint #16
Comments
@mattcdavis1 I'm running into the same issue. I'll admit that I don't know a ton about plugin dev and whatnot...but are you dropping all of that at the end of Volume.php? Or is the first line somewhere else in another file? Just wanting to understand. Thanks |
@mattcdavis1 Gotcha. Thanks. I see that clearly now that you pointed it. Appreciate it. |
Hi, The endpoint is suppose to be without the bucket name, ie |
@aelvan - the non-bucket naming approach breaks as well. |
Oh really? I just tested, and it worked. What's the error you're seeing? Do uploads fail? |
No - with the non-bucket approach my recollection is that the links were failing in the asset listing view. I'll verify and post back. |
Hmm, ok, can you test again, and make sure that the enpoint is without the bucketname ( |
@aelvan - that does work - thanks! I think what threw me off was that I thought both base urls needed to be consistent (either both with or both without ecabling in the subdomain). It'd probably be helpful to update the naming of field settings to be more inline with DO to help with this (i think there's a pull request for this). Thanks again! |
Glad you got it sorted out! I can see how those two settings can be a bit confusing, since the values would normally be very similar. But they could also be completely different (if for instance you put a pull CDN in front of the Spaces bucket). The URL is a Craft setting that every volume has, whereas the other ones are custom. I think the docs just need to be a bit clearer with example values, I'll have a look at it. |
When using the default endpoint value provided by Digital Ocean (i.e. 'https://ecabling.nyc3.digitaloceanspaces.com') the S3 plugin duplicates the bucket name in the URL and operations fail (i.e. 'https://ecabling.ecabling.nyc3.digitaloceanspaces.com'). Using an alternate URL (i.e. https://nyc3.digitaloceanspaces.com/ecabling') resolves the upload issue but causes issues elsewhere (url generation).
As far as I can tell, 1 line1 of code fixes this (i just implemented this so not sure if any other side effects). In Volume.php I added the below lines to the createAdapter method:
The text was updated successfully, but these errors were encountered: