Kcko
9/14/2018 - 11:02 AM

Nette - fileupload from URL

<?php

$fileUpload = new \Nette\Http\FileUpload([
    'name' => basename($filePath),
    'size' => filesize($filePath),
    'tmp_name' => $filePath,
    'error' => UPLOAD_ERR_OK,
]);