Hi Peter

A couple of suggestions are to first check you called AWSSetCredentials with 
the region your bucket is in. If that is correct then try specifying the full 
endpoint url as https://s3 <https://s3/>.your-bucket-region.amazonaws.com 
<https://s3-%3Cregion%3E.amazonaws.com> via the endpoint parameter as AWS 
appear to have standardised away from the original 
https://s3-your-bucket-region.amazonaws.com 
<https://s3-your-bucket-region.amazonaws.com/> which is what the library builds 
from your region unless it’s us-east-1 in which case it does 
https://s3.amazonaws.com <https://s3.amazonaws.com/> . It’s possible if you are 
using a newer region that AWS isn’t supporting the older endpoint style on it.

Let me know how you go with that.

Cheers

Monte
> On 14 Feb 2024, at 3:50 pm, Peter Bogdanoff via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Hi all,
> 
> I’m for the first time trying to use the Amazon AWS S3 commands to upload a 
> file to my AWS storage, but am having difficulty with the PutObject command.
> 
> I successfully entered my credentials with the AWSSetCredentials command.
> 
> However, using the AWSS3PutObject command I’m getting an error about the 
> bucket name. Either it “can’t find” it or says to use a different end point.
> 
> The AWS documentation is unclear to me exactly how to specify the bucket 
> name. Is it a just the name of the bucket (which doesn’t work), or does it 
> include some kind of path? And the region?
> 
> Has anyone had success with this?
> 
> Peter Bogdanoff
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to