Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
mmount  
#1 Posted : Wednesday, May 25, 2016 6:21:11 AM(UTC)
mmount

Rank: Advanced Member

Groups: Member
Joined: 11/30/2012(UTC)
Posts: 61

Thanks: 6 times
I'm getting a javascript error about property "region" (note the lowercase "r" - don't know if that is relevant) not found using the last couple of versions of the java uploader and s3 extender (including the 8.5.55 version). I had to add a Region="[something]" to the S3 extender to prevent an object is null error a few versions ago. Nothing in my code has changed for years. I have reverted to version 8.5.33 for the time being.

What should I look at?
mmount  
#2 Posted : Wednesday, May 25, 2016 12:36:18 PM(UTC)
mmount

Rank: Advanced Member

Groups: Member
Joined: 11/30/2012(UTC)
Posts: 61

Thanks: 6 times
Don't know if it is relevant but it looks like the error occurs in prerender.
Andrew  
#3 Posted : Sunday, May 29, 2016 8:41:16 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 876

Thanks: 2 times
Was thanked: 27 time(s) in 27 post(s)
Since the version 8.5.49, you should specify one more property called region to get Amazon S3 upload working. It should be a region of your bucket, e.g:

Code:
      var as3 = $au.amazonS3Extender(uploader);
      as3.bucket('yourbucket');
      as3.region('us-east-1');
      as3.accessKeyId('/your public access key/');
      //....


Also, you need to use the new version of PHP (or ASP.NET) library.

The reason is that it uses AWS Signature Version 4 to sign requests to Amazon S3 API instead of the Version 2 (which is outdated and no longer supported with new buckets).

Try to add the region when you initialize S3 extender and post here if you still have problems with it.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.