Files

Upload a global file

Changed on

Uploads a file to global storage via multipart/form-data with a file field that accepts either binary data or a URL string to download from, and an optional path field for the file storage path.

post/v1/files

Request

  • Base URL
    https://api.steel.dev
  • URL
    https://api.steel.dev/v1/files
  • Auth
    • API key in header steel-api-key
    • or none

Request body multipart/form-data

filestring binary required

The file to upload (binary) or URL string to download from

pathstring

Path to the file in the storage system

Response

Default Response

lastModifiedstring date-time required

Timestamp when the file was created

pathstring required

Path to the file in the storage system

sizenumber required

Size of the file in bytes

Changes