Create File or Folder / Start Resumable Upload

Create File or Folder / Start Resumable Upload

Creates a file or folder in the Storage.

Upload Methods:

  • Base64 Upload (format=base64): Best for small files (less than 5 MB). Send an application/json body with the content property.
  • Create Folder (format=base64): Send an application/json body with isFolder: true.
  • Multipart Upload (format=multipart): Best for standard uploads (up to 10 MB). The maximum file size that you can upload is 10 MB.
  • Resumable Upload Step 1 (format=resumable): Initializes a chunked upload for large files. Request and Response bodies are empty for this method.
Path Parameters
  • filePath
    string
    required

    File or folder path relative to the root. i.e., everything after ...resources/Storage/. Encode forward slashes in path - use %2F instead of /.

Query Parameters
  • format
    string enum
    required

    File encoding format.

    • base64
    • multipart
    • resumable
  • isOverwrite
    boolean
    default:
    false

    Whether to overwrite an existing file. false by default.

Body
application/json

The request body is required for base64 and multipart formats, but must be empty for resumable.

content
string

Base64-encoded file content. Only applicable when format=base64.

isFolder
boolean
default:
false

Whether to create a folder. If true, content is ignored. false by default.

Responses
POST/storage/{filePath}

{
  "content": null,
  "fileFullName": "Storage\\info.png",
  "fileName": "info.png",
  "isFolder": false,
  "modifiedBy": "admin",
  "modifiedOn": "2025-10-29T13:21:28",
  "size": 123
}