Skip to main content
Version: 6.0.0

SysUploadStream

Upload a global file directly.

ServiceOperation
globalFileV3SYS_UPLOAD_STREAM

Method Parameters

ParameterDescription
treeIdThe id of the folder (optional). Default is the root folder.
filenameThe destination file name.
overwriteIfPresentWhether to allow overwrite of an existing file if present (optional). Default is false.
fileDataBase64 encoded file contents.

Usage

http://localhost:3000
// S2S call: to view example, switch to the Cloud Code or Raw tab.
JSON Response
{
"fileDetails": {
"contentMd5": "\"83252e036cd096de9198039e3d19a121\"",
"treeId": "b6fb0efe-2d15-4a25-b43b-72684d7c788f",
"fileName": "cloudfilename.txt",
"fileSize": 36,
"dateUploaded": 1768152547000,
"etag": "\"83252e036cd096de9198039e3d19a121\"",
"version": 1,
"url": "https://api.braincloudservers.com/files/bc/g/23782/f/b6fb0efe-2d15-4a25-b43b-72684d7c788f/559a430c-078e-4107-9e37-2a74ba2c2fa5/V1/cloudfilename.txt",
"fileId": "559a430c-078e-4107-9e37-2a74ba2c2fa5"
}
}