1. Tasks
  2. Upload File

Tasks

Upload File

The Upload File task uploads an external file and attaches it to the stub.

Basic usage

Upload and attach an image of the Stubber logo to the stub.

loading...

Parameters

upload_type
required
string

The type of upload. Options: external


filename
string

The name of the file to use on the stub once it has uploaded.

Default: uuidv4()


upload_params.url
required
string

The url of the external file to be uploaded.


upload_params.contentType
string

The MIME type of the file to be uploaded.

Default: application/octet-stream

Properties

fileuuid
string

The uuid of the uploaded file.