我只是在PHP上传器 HERE 中尝试了这些示例。我尝试了下面的上传示例:
包括( '../的src / class.uploader.php');
$uploader = new Uploader();
$data = $uploader->upload('https://www.google.com/images/srpr/logo11w.png', array(
'uploadDir' => 'uploads/', //Upload directory {String}
'title' => array('auto', 10), //New file name {null, String, Array} *please read documentation in README.md
));
if($data['isComplete']){
$files = $data['data'];
print_r($files);
}
if($data['hasErrors']){
$errors = $data['errors'];
print_r($errors);
}
我的服务器上有上面的脚本和依赖项class.uploader.php
,所有这些都在正确的目录中,现在当我运行upload.php
时,图像文件根本没有上传,I.E。当我打开与uploads
相同的文件夹中的upload.php
目录时,我看不到上传的图像文件。为什么???