src/Uploadcare/Api.php
public function createLocalCopy($source, $store = true)
    {
        $data = $this->__preparedRequest('file_copy', 'POST', array(), array('source' => $source, 'store' => $store));
        if (array_key_exists('result', (array)$data) == true) {
            if ($data->type == 'file') {
                return new File((string)$data->result->uuid, $this);
            } else {
                return (string)$data->result;
            }
        } else {
            return (string)$data->detail;
        }
    }
public function createLocalCopy($source, $store = true)
    {
        $data = $this->__preparedRequest('file_copy', 'POST', array(), array('source' => $source, 'store' => $store));
        if (array_key_exists('result', (array)$data) == true) {
            if ($data->type == 'file') {
                return new File((string)$data->result->uuid, $this);
            } else {
                return (string)$data->result;
            }
        } else {
            return (string)$data->detail;
        }
    }
Copy file to the Uploadcare storage

@param string $source CDN URL or file's uuid you need to copy.
@param boolean $store MUST be either true or false. true to store files while copying. If stored, files won’t be automatically deleted within 24 hours after copying. false * to not store files, default.
@return File|string
@throws \Exception