Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.17 KB

README.md

File metadata and controls

34 lines (22 loc) · 1.17 KB

baba-oss-uploader-bin

OSS file uploader for mass uploading over Alibaba Cloud CDN

Usage

prompt>java -jar [options] baba-oss-uploader-all-1.0.jar
or
prompt>java -cp [options] baba-oss-uploader-all-1.0.jar com.eg.baba.oss.uploader.Main

Options can be stored in .clientprofile at current path or your home path. Commandline options override option values stored in .clientprofile

Options

  • key.id : your key id from OSS console
  • key.secret : your key secret from OSS console
  • endpoint : endpoint of where your bucket's on or your CDN domain
  • bucket : your bucket name
  • prefix : prefix to be added to the keys
  • upload.file : file or directory to be uploaded

Regions and endpoints for OSS https://www.alibabacloud.com/help/doc-detail/31837.htm

Uploads files in both of single-part and multi-part uploading but if it's bigger than 5MB, it works with multi-part uploading.

For uploading over CDN, the domain name has to be cleared with any ICP issues when it's bound to buckets in mainland China.

  • Bucket config - no specific configs required. It works for both of private and public mode.
  • CDN config - as default, no specific configs required.

Enjoy it !