Amazon S3

Frends.AmazonS3.UploadObject / 3.4.0

Summary

Copies files from the agent's file system into a bucket, selecting them by pattern, and can mirror or flatten the local folder structure. Large files can go up in parts, and the source can be cleaned up once the transfer lands.

Typical use — publishing a batch of files a Process produced, where deleting the source on success gives you an at-most-once handover

Details

Frends version
5.7 and newer
Agent
Crossplatform
Target framework
net8.0

Input parameters.

Name Type Default Example Description
SourceDirectory String c:\temp, \\network\folder

Source directory.

FileMask String * *.* , ?_file.*, foo_*.txt

Windows-style filemask. Empty field = all objects (*). Only one object will be uploaded when using pre-signed URL. Consider using .zip (for example) when uploading multiple objects at the same time.

TargetDirectory String directory/

AWS S3 root directory. If the directory does not exist, it will be created.

BucketName String Bucket

AWS S3 bucket's name.

UploadFromCurrentDirectoryOnly Boolean false

Set to true to upload object(s) from the current directory only.

PreserveFolderStructure Boolean false

Set to true to create subdirectories to S3 bucket.

DeleteSource Boolean false

Delete local source object(s) after upload.

An unhandled error has occurred. Reload 🗙