nukulb / s3-angular-file-upload

Example of S3 file upload using ng-file-upload, angular, nodejs
MIT License
135 stars 34 forks source link

cannot load ! #6

Closed elmor34 closed 10 years ago

elmor34 commented 10 years ago

Hi, Whatever I do, I get POST https://mybucket.s3.amazonaws.com/ 403 (Forbidden)

everyone upload / delete is ok. aws credentials are ok. cors config is ok.

Then why ist not working ? Any idea ? regards Gokhan

nukulb commented 10 years ago

Use a different bucket name

Sent from my iPhone

On Jul 3, 2014, at 1:58 PM, Gokhan notifications@github.com wrote:

Hi, Whatever I do, I get POST https://mybucket.s3.amazonaws.com/ 403 (Forbidden)

everyone upload / delete is ok. aws credentials are ok. cors config is ok.

Then why ist not working ? Any idea ? regards Gokhan

— Reply to this email directly or view it on GitHub.

elmor34 commented 10 years ago

This is what I get as retrun message : AccessDeniedInvalid according to Policy: Policy Condition failed: ["starts-with", "$key", "s3UploadExample/"]6D422AD90F33B9E4LG9bI/8cLuxjPNbVNLZb3Nr/fhariDL+DnnjP/5/hr4JploDghSEfRCGn1ukbrLZ

nukulb commented 10 years ago

The file you are uploading Make sure the key starts with s3UploadExample/

The key starts with condition is failing

Sent from my iPhone

On Jul 3, 2014, at 3:43 PM, Gokhan notifications@github.com wrote:

s3UploadExample/

elmor34 commented 10 years ago

another bucket, but still the same : AccessDeniedInvalid according to Policy: Policy Condition failed: ["starts-with", "$key", "s3UploadExample/"]7CFEE4F44B762D20x40ozstvhs9gRPHS5bF3/JHrbNNnI4Y+TkrU8ni+WtXkbd7mQK3AB7IWdxtDn3Ww

elmor34 commented 10 years ago

Thanks for prompt response.....

elmor34 commented 10 years ago

key comes from nodejs, how can ı add it(s3UploadExample/)?

nukulb commented 10 years ago

lets take it from the top

Did you follow the instructions exactly from the README? What all did you modify in the project?

elmor34 commented 10 years ago

only changed below, rest is from your project.

Did not add bucket policy... -------------- 1 ------------------ cors config is ok. - from your sample <?xml version="1.0" encoding="UTF-8"?>

_ GET POST 3000 _

----------- 2 --------- everyone upload / delete is ok. as below : screen shot 2014-07-04 at 01 06 31 ----------- 3 ------------

aws.json : { "accessKeyId": "AKIEIJHRN4VL4AIFFGYQ", "secretAccessKey": "I+W3rC5fSX3NUywdQcydKC4qU6zVoCK4ML3yHvMU", "region": "eu-west-1", "bucket": "ekobipictures" } regards...

elmor34 commented 10 years ago

I was using ng-upload with express 3.*, but it stoppend working on the nodejs saying that file size is null (although it is not) on s3bucket.putObject.

So I try your way. Something is getting strange today.

nukulb commented 10 years ago

Are you still having trouble ?

elmor34 commented 10 years ago

no hope... any idea?

On Mon, Jul 7, 2014 at 12:55 PM, Nukul Bhasin notifications@github.com wrote:

Are you still having trouble ?

— Reply to this email directly or view it on GitHub https://github.com/hubba/s3-angular-file-upload/issues/6#issuecomment-48159971 .

Gokhan AYKAN

nukulb commented 10 years ago

with your creds I managed to reproduce it, I am looking into it now.

nukulb commented 10 years ago

alright found the issue.

Basically I changed the angular-file-upload version and now it works fine. Be sure to remove your app/bower_components folder and run bower install again.

The fix is in master now so you can pull it down.

elmor34 commented 10 years ago

Thanks, I 'll try tonight and let you know. Too many meetings today. In my local system, bower is latest, but i done in remote server white is old. Thanks again. Regards form istanbul. Gokhan 8 Tem 2014 14:01 tarihinde "Nukul Bhasin" notifications@github.com yazdı:

with your creds I managed to reproduce it, I am looking into it now.

— Reply to this email directly or view it on GitHub https://github.com/hubba/s3-angular-file-upload/issues/6#issuecomment-48322633 .