Home > php教程 > php手册 > php实现SAE上使用storage上传与下载文件的方法

php实现SAE上使用storage上传与下载文件的方法

WBOY
Release: 2016-06-06 20:02:50
Original
1174 people have browsed it

这篇文章主要介绍了php实现SAE上使用storage上传与下载文件的方法,实例分析了基于SaeStorage类实现文件传输的技巧,需要的朋友可以参考下

本文实例讲述了php实现SAE上使用storage上传与下载文件的方法。分享给大家供大家参考。具体如下:

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'] ); //上传 ?>


希望本文所述对大家的php程序设计有所帮助。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template