Tasks
Attach file
Attaches a file to the stub. The file has to be uploaded to Stubber using a file field or other means before it can be attached.
Basic usage
Parameters
fileuuid
required
string
The uuid of the file to be attached to the stub. This parameter is not required if the files
parameter is set.
filename
string
Sets the filename of the attached file.
contentType
string
Sets the mime type of the attached file.
files
required
string
The list of files to be attached to the stub. Each item in the list accepts a fileuuid
, filename
, and contentType
parameter. This parameter is not required if the fileuuid
parameter is set.
Result
Properties
fileuuid
string
The uuid of the attached file.
Examples
Attach pdf
Attaches a pdf to a stub.