getFile
Search file in oneentry cloud storage.
FileUploading?.getFile( id?, type?, entity?, filename? );
Minimal example
const value = await FileUploading.getFile(123, 'page', 'editor', 'file.png')
Schema
id: number
Object identifier, from which the file is uploaded, determines the folder name in the storage
example: 3787
type: string
Type, determines the folder name in the storage
example: "page"
entity: string
Entity name, from which the file is uploaded, determines the folder name in the storage
example: "editor"
filename: string
Filename
example: "file.png"
template: string
Preview template identifier
example: 1
This method return file object by parameters.
Example response
{
"status": 200,
"url": "https://stage.oneentry.cloud/api/content/files?id=3787&type=page&entity=editor&filename=errors-1751677276135.md"
}