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 anapplication/jsonbody with thecontentproperty. - Create Folder (
format=base64): Send anapplication/jsonbody withisFolder: 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
- filePathstringrequired
File or folder path relative to the root. i.e., everything after ...resources/Storage/. Encode forward slashes in path - use
%2Finstead of/.
Query Parameters
- formatstring enumrequired
File encoding format.
- base64
- multipart
- resumable
- isOverwritebooleandefault: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:
falseWhether 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
}