Skip to main content
Version: 5.7.0

SysMoveToLegacyGlobalFile

Copies the specified User File to the legacy Global File system.

ServiceOperation
globalFileSYS_MOVE_TO_LEGACY_GLOBAL_FILE

Method Parameters

ParameterDescription
userProfileIdProfileId of the user to copy the file from
userCloudPathDirectory of the file in User Files
userCloudFilenameFilename of the user file
shortNameThe shortname to use for the file
globalCloudFilenameFilename to use in global files
overwriteIfPresentOverwrite the file if it already exists?

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"status": 200,
"data": {
"fileDetails": {
"gameId": "21774",
"fileId": "65dae51c-2a6a-4186-9be3-9f3b84261976",
"shortName": "testfile3",
"subType": "cust",
"category": null,
"relativeUrl": "/cust/testFile3.txt",
"absoluteUrl": "https://api.braincloudservers.com/files/portal/g/21774/cust/testfile/V1/testfile.txt",
"md5HashHex": "da69907799c0394869a6d7a3d467f9c0",
"md5Hash": "2mmQd5nAOUhpptej1Gf5wA==",
"fileName": "testFile3.txt",
"fileSize": 20,
"dateUploaded": 1588094138000,
"objectKey": "portal/g/21774/cust/testfile/V1/testFile3.txt",
"version": 1,
"pathVersion": "V2"
}
}
}