Another update:
Having patched the endpoint to get the correct bucket url format, I now get the following error if I follow the generated link:
“The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.”
My bucket is in the EU-West-2 region.
I have tried going into the AWS console and making the uploaded file public to test the link URL. The URL is correct, as the file will download if I strip off the access credentials. But adding them back in causes the error above.
DC