Code: Select all
public function __construct(\
\<vendor>\m_resolution_Img_Upload\upload_php_master\src\upload $upload ,
) {
$this->upload = $upload;
print_r($this->upload->upload($filename));
Code: Select all
$handle = new \<vendor>\m_resolution_Img_Upload\upload_php_master\src\upload($filename);
$handle = $this->upload;
print_r($handle->upload($filename)); exit;
ลองวิธีที่ 3
Code: Select all
include_once(__DIR__ . "../../upload_php_master/src/upload.php");
$handle = new \upload($filename);