PHPackages                             xiaocaigua/upload - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. xiaocaigua/upload

ActiveLibrary[File &amp; Storage](/categories/file-storage)

xiaocaigua/upload
=================

Handle file uploads with extensible validation and storage strategies

2.0.0(6y ago)07MITPHPPHP &gt;=7.1

Since Sep 10Pushed 6y agoCompare

[ Source](https://github.com/xiaocaigua/Upload)[ Packagist](https://packagist.org/packages/xiaocaigua/upload)[ Docs](http://github.com/codeguy/Upload)[ RSS](/packages/xiaocaigua-upload/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (4)Versions (10)Used By (0)

Upload
======

[](#upload)

[![Build Status](https://camo.githubusercontent.com/7340330031acde887e69b068ea8a49986d487d9905e05ceedaf513fc4760aebf/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6272616e646f6e7361766167652f55706c6f61642e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/brandonsavage/Upload)[![Latest Version](https://camo.githubusercontent.com/1165bd47fbfdfcb95a61656002f969d3e2d70491e5ec7ea3474aa18b0fa1b878/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6272616e646f6e7361766167652f55706c6f61642e7376673f7374796c653d666c61742d737175617265)](https://github.com/brandonsavage/Upload/releases)[![Total Downloads](https://camo.githubusercontent.com/b8f63c50d1c893eb9ddb4e5e550cff653cf7849f3504b3a6c882b9ac322cfba3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f64656775792f75706c6f61642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codeguy/upload)

This component simplifies file validation and uploading.

Usage
-----

[](#usage)

Assume a file is uploaded with this HTML form:

```

```

When the HTML form is submitted, the server-side PHP code can validate and upload the file like this:

```
