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

질문됨 일 년 전236회 조회
1개 답변
0
수락된 답변

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
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠