B10
B10

Reputation: 173

AWS Elastic Beanstalk Asp.Net : Cannot view image under my domain after uploading

I have installed AWS SDK for .NET, and by using the toolkit for VS2013 I managed to deploy my application with no problem. The ElasticBeanstalk creates the bucket automatically and names it like elasticbeanstalk-eu-west-1-416461029999

The application has a file uploader which saves the user selected file under the bucket above. My problem is I can view the image by the AWS Explorer, but I would like to view the file by a browser under the domain like www.mydomain.com/Images/filename.jpg

The documentation for static sites says the bucket has to have the same name as the domain name, but the Elastic Beanstalk names the bucket automatically and it is not possible to change it after...

I would really appreciate any help, thanks...

Upvotes: 0

Views: 285

Answers (1)

Dinesh Mandaviya
Dinesh Mandaviya

Reputation: 192

1) First of you have to set ACL permission (Public Read,Write) for particular file
2) you could not use to see image directly Bucket URL. AWS provide "Distribution URL" for file display or view. so you can view file using Distribution URL

Upvotes: 1

Related Questions