upload_file()
Upload a file
upload()
Upload a file to the cloud using a simple file object.
Parameters
Name
Type
Description
$file
File object
Object containing the file details. Same as file object in $_FILES
.
$upload_folder_id
string
ID of the upload folder.
$description
string
Description for the file.
$overwrite
bool
Overwrite an existing file with the same name? If false, the file will be renamed.
Return
Name
Type
Description
$node
CachedNode
The object for the uploaded file.
Usage
Last updated