Skip to content

Asset Upload Handler

Allows to get a pre-signed url to upload one or more assets to a bucket.

typescript
type handlers = {
  UploadAsset: { 
    handle(context: Context): Promise<Response> 
  }
}

Endpoint

Method: POST Path: /your-endpoint/api/asset/upload/sign

Payload:

typescript
type Payload = {
  /**
   * The specific path to store the assets to `/` separated
   */
  paths: string[]
}