dcloud s3 bucket-objects upload-url

A presigned PUT for one key, valid 15 minutes

IAM s3:PutObjectChanges stateAsks before it deletes (-y skips)

Send the file as the body of a PUT to url with the returned headers (Content-Type). The console origin may read the answer from the browser; other origins need the bucket's CORS rules.

Synopsis

dcloud s3 bucket-objects upload-url name --key key [flags]

Arguments

  • <name>Required

    string

    Also accepted as --name. Constraints: 3-63 chars, /^[a-z0-9][a-z0-9-]*[a-z0-9]$/

Flags

  • --keyRequired

    string

    Key the file is stored under, e.g. photos/2026/cat.jpg

    Constraints: min 1 chars

  • --content-typeOptional

    string

    Content-Type the object is stored with; application/octet-stream when omitted

    Constraints: max 255 chars

Example

dcloud s3 bucket-objects upload-url name --key example

Generated from the API description, the same one the API checks requests against and the CLI is built from.