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

feita há um ano236 visualizações
1 Resposta
0
Resposta aceita

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
ESPECIALISTA
respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas