AWS SDK for .NET Documentation
CopyFromLocal Method (srcFileName)
AmazonAmazon.S3.IOS3FileInfoCopyFromLocal(String) Did this page help you?   Yes   No    Tell us about it...
Copies the file from the local file system to S3. If the file already exists in S3 than an ArgumentException is thrown.
Declaration Syntax
C#
public S3FileInfo CopyFromLocal(
	string srcFileName
)
Parameters
srcFileName (String)
Location of the file on the local file system to copy.
Return Value
S3FileInfo where the file is copied to.
Exceptions
ExceptionCondition
IOExceptionIf the file already exists in S3.
WebException
AmazonS3Exception

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)