Interface PutObjectOptions

Options for putting an object.

interface PutObjectOptions {
    acl?: string;
    body: any;
    bucket: string;
    contentType?: string;
    filename?: string;
    key: string;
    metadata?: any;
}

Properties

acl?: string

Access-control list (e.g. public-read).

body: any

The content of the file.

bucket: string

The bucket in which to copy the file.

contentType?: string

Content type (e.g. image/png).

filename?: string

The suggested name for the file once it's downloaded/saved. Note: the string is cleaned to ensure maximum compatibility with every OS.

key: string

The complete filepath of the bucket in which to copy the file.

metadata?: any

A set of metadata as attributes