Storage

Upload a file to project storage

Upload a file to the project's cloud storage bucket. The server generates a UUID-based filename to prevent path traversal attacks — client-supplied names are never used directly. An optional path body field provides a folder hint for organizing uploads (e.g. images/avatars).

Security: Dangerous file types (executables, scripts, HTML, etc.) are blocked. Projects may require a Bearer JWT token when the storage security policy has require_auth enabled. A signed-in uploader is recorded on the file, which is what lets that same user delete it later with remove.

post/api/storage/{project_id}/upload

Request

  • Base URL
    https://core.blink.new
  • URL
    https://core.blink.new/api/storage/{project_id}/upload
  • Auth
    HTTP bearer

Path parameters

project_idstring required
Example:my-project-123

Unique identifier for the project

Request body multipart/form-data

filestring binary required

The file to upload

pathstring

Optional folder hint for organizing the file (sanitized server-side)

Example request

{
  "path": "images/avatars"
}

Response

File uploaded successfully

Changes

No recorded changes to this operation across all 1 revision of this API.