getFile
File search
FileUploading.getFile(id, type, entity, filename)
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: 123
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 return:
{
"file": "string"
}