AWS SDK for .NET Documentation
CopyFromLocal Method (srcFileName, overwrite)
AmazonAmazon.S3.IOS3FileInfoCopyFromLocal(String, Boolean) 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 and overwrite is set to false than an ArgumentException is thrown.
Declaration Syntax
C#
public S3FileInfo CopyFromLocal(
	string srcFileName,
	bool overwrite
)
Parameters
srcFileName (String)
Location of the file on the local file system to copy.
overwrite (Boolean)
Determines whether the file can be overwritten.
Return Value
S3FileInfo where the file is copied to.
Exceptions
ExceptionCondition
IOExceptionIf the file already exists in S3 and overwrite is set to false.
WebException
AmazonS3Exception

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