1

Upload file to Bucket

syn: aws s3 cp [FilePath\FileName] s3://[BucketName]

am excecuted above command by cmd for upload file to S3 Bucket. now i need how to upload file to s3 bucket using c# code. is it possible.?

thanks in advance.

  • Does this answer your question? [Run Command Prompt Commands](https://stackoverflow.com/questions/1469764/run-command-prompt-commands) – Technowise Mar 25 '22 at 07:51

1 Answers1

1

AWS offers SDK for C#, which you must ideally use for such things. Even though you could do what you're asking for using CLI within C#, your work becomes un-necessary complex. You can check this answer for how to run commands within C#.

Technowise
  • 1,182
  • 6
  • 11