address to upload a file in a S# bucket

0

I use the following sintax in my routines in c# to upload a file in a server ( the same that host the web site) by my asp.net web site ( C#) string fileName = Path.Combine(HttpContext.Current.Server.MapPath("~"), String.Format(@"Folder{0}.bin", Register Id))

The Path.Combine(HttpContext.Current.Server.MapPath("~") give the way to access the correct folder (ex c:) In the amazon should be s3://bucket? what is the correct sintax? best regards

Paulo Cavalcanti

asked a year ago229 views
1 Answer
0
Accepted Answer

Hi Paulo.

You should be able to access your bucket objects with the following syntax:

S3://bucket-name/[prefix]/key-name

[prefix] is optional and only if you are using prefixes. key-name is the name of your object.

I hope this helps.

profile pictureAWS
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions