Skip to main content
POST
/
serverless
/
files
/
file
/
local
/
{target_path}
Upload local file (multipart/form-data)
curl --request POST \
  --url https://api.fal.ai/v1/serverless/files/file/local/{target_path} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'file_upload=<unknown>'
true

Authorizations

Authorization
string
header
required

API key must be prefixed with "Key ", e.g. Authorization: Key YOUR_API_KEY

Path Parameters

target_path
string
required

Target path (including filename)

Example:

"datasets/images/cat.jpg"

Query Parameters

unzip
boolean | null
default:false

If true and the uploaded file is a ZIP, it will be extracted

Example:

false

Body

multipart/form-data
file_upload
any

Binary file content

Response

Upload completed

Indicates whether the operation was successful