You are running 32-bit PHP. exit; require_once 'vendor/autoload.php'; $path = __DIR__; $tempPath = $path . '\_temp\barcodes\\'; // var_dump( $_FILES['driversLicence']['tmp_name'] ); // exit; $uniqid = uniqid(); $file = $uniqid . '.jpg'; $fileName = $tempPath . $file; //$result = move_uploaded_file($_FILES['driversLicence']['tmp_name'], $fileName); $Ci = new COM("ClearImage.ClearImage"); echo "
"; echo "
"; // $image_info = printClearImageInfo();