We are trying to upload file in aws s3 and after successful upload we wan to get the url of that file in C#.
Loading
We are trying to upload file in aws s3 and after successful upload we wan to get the url of that file in C#.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Brahma Prakash ShuklaPosted Nov 28, 2023, 6:46 AM
To upload multiple files from a folder location to AWS S3 using C#, you can modify the code to loop through the files in the specified folder and upload each file individually. Here's an example:
This code uses
DirectoryInfoto get a list of files in the specified folder (folderPath). It then iterates through each file and uploads it to the specified S3 bucket with a unique key name (in this example, the key name is set to the file name). You can customize the key naming strategy based on your requirements.Make sure to replace placeholders like "your-s3-bucket-name," "your-aws-access-key," "your-aws-secret-key," and "path-to-your-local-folder" with your actual AWS S3 bucket details and local folder path.
raj rajPosted Oct 26, 2023, 9:18 AM
How can we upload multiple files from that folder location
Brahma Prakash ShuklaPosted Oct 23, 2023, 9:20 AM