s3uploadfile_mapper

February 4, 2026 · View on GitHub

Mapper to upload local files to S3 and update paths to S3 URLs.

This operator uploads files from local paths to S3 storage. It supports:

  • Uploading multiple files concurrently
  • Updating file paths in the dataset to S3 URLs
  • Optional deletion of local files after successful upload
  • Custom S3 endpoints (for S3-compatible services like MinIO)
  • Skipping already uploaded files (based on S3 key)

The operator processes nested lists of paths, maintaining the original structure in the output.

用于将本地文件上传至 S3 并将路径更新为 S3 URL 的 Mapper。

该算子将本地路径的文件上传至 S3 存储,支持以下功能:

  • 并发上传多个文件
  • 更新数据集中的文件路径为 S3 URL
  • 可选在成功上传后删除本地文件
  • 支持自定义 S3 端点(适用于 MinIO 等 S3 兼容服务)
  • 跳过已上传的文件(基于 S3 key 判断)

该算子可处理嵌套的路径列表,并在输出中保持原始结构。

Type 算子类型: mapper

Tags 标签: cpu

🔧 Parameter Configuration 参数配置

name 参数名type 类型default 默认值desc 说明
upload_field<class 'str'>NoneThe field name containing file paths to upload.
s3_bucket<class 'str'>NoneS3 bucket name to upload files to.
s3_prefix<class 'str'>''Prefix (folder path) in S3 bucket. E.g., 'videos/' or 'data/videos/'.
aws_access_key_id<class 'str'>NoneAWS access key ID for S3.
aws_secret_access_key<class 'str'>NoneAWS secret access key for S3.
aws_session_token<class 'str'>NoneAWS session token for S3 (optional).
aws_region<class 'str'>NoneAWS region for S3.
endpoint_url<class 'str'>NoneCustom S3 endpoint URL (for S3-compatible services).
remove_local<class 'bool'>FalseWhether to delete local files after successful upload.
skip_existing<class 'bool'>TrueWhether to skip uploading if file already exists in S3.
max_concurrent<class 'int'>10Maximum concurrent uploads.
args''extra args
kwargs''extra args