带有验证和存储策略的文件上传
This component simplifies file validation and uploading.
Assume a file is uploaded with this HTML form:
<form method="POST" enctype="multipart/form-data">
<input type="file" name="foo" value=""/>
<input type="submit" value="Upload File"/>
</form>When the HTML form is submitted, the server-side PHP code can validate and upload the file like this:
…Install composer in your project:
curl -s https://getcomposer.org/installer | phpRequire the package with composer:
php composer.phar require codeguy/uploadMIT Public License
暂无开放 Issues,或尚未同步最近议题。