Stable\Cdn\Client::upload
Uploads a file to target
Signature
public function upload(string
$file,
string
$target,
[callable
$callback = NULL] )
Parameters
$file
— string- - source file path
$target
— string- - target file path
$callback
— callable- - callback for upload progress
Returns
- (stdClass)
- - decoded JSON according to API definition or null in case of system fault