Upload

Upload a file from the Workflows file system to a web service using HTTP or HTTPS.

To use this function card, see Use the Upload function card in a flow.

File functions do not support shareable links such as those from Box, OneDrive, or Google Drive.

Input

Field Definition Type Required
File
File Content ID of the file contents. File FALSE
Destination
URL URL of the request, including the protocol http:// or https://. String FALSE
Method HTTP method to use (PUT or POST). Dropdown FALSE
Headers
Input User-created fields that define headers to use in the file request. String FALSE

Output

Field Definition Type
Body Parsed response body for JSON properties or values. String
Raw Body
body Raw response body passed at runtime. String

Example

Here is an example of accessing the Algorithmia file system. Algorithmia requires that the full file path and filename of the destination file be specified in the URL field. It also requires an authentication token and a specific input in the Content-Type field.

Related topics

Use the Upload function card in a flow

Functions in Workflows

About the elements of Okta Workflows