SAE上使用storage上传与下载文件,saestorage
程序员文章站
2022-05-22 08:46:35
...
SAE上使用storage上传与下载文件,saestorage
0) { echo "Error: " . $_FILES["file"]["error"] . "
"; } else { echo "Upload: " . $_FILES["file"]["name"] . "
"; echo "Type: " . $_FILES["file"]["type"] . "
"; echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb
"; echo "Stored in: " . $_FILES["file"]["tmp_name"]; } $s =new SaeStorage(); $i='PDF/'.$_FILES['file']['name']; //文件名 $domain='store'; //storage名 $s->upload( $domain , $i ,$_FILES['file']['tmp_name'] ); //上传 ?>