Skip to content

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 3 years ago394 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.

AWS
EXPERT
answered 3 years ago
EXPERT
reviewed 2 years 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.