Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have uploaded an image to Amazon S3 storage. But how can I access this image by url? I have made the folder and file public but still get AccessDenied error if try to access it by url https://s3.amazonaws.com/bucket/path/image.png

share|improve this question

1 Answer 1

up vote 1 down vote accepted

S3 usually 'just works' - upload the file, set the permissions, and visit the URL. If it doesn't (and their service is functioning) the problem is usually either the wrong URL or the browser cache.

  1. Clear your browser cache and reload your pages using ctrl+F5 or ctrl+shift+R
  2. Verify the permissions (e.g. use a program (CloudBerry Explorer, Cloudbuddy, etc) or using the AWS Console)
  3. Try the alternate form of the path: https://<bucket>.s3.amazonaws.com/path/to/file.ext
  4. Try clicking the link directly from the AWS console; using 'open' the link includes your access keys, and will bypass the ACL settings - don't use that link for anything public, but ensure it works.

I would really suggest using a program (such as those above) and copying and pasting the URL for your tests - it greatly reduces the chance of the URL being incorrect. If the above don't help, you might need to provide a bit more information so that the problem can be diagnosed.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.