PHPackages                             bfitech/zapchupload - 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. bfitech/zapchupload

ActiveLibrary

bfitech/zapchupload
===================

Server-side chunk upload.

2.3.0(5y ago)1148MITPHPPHP &gt;=7.0 &lt;7.5CI failing

Since Mar 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/bfitech/zapchupload)[ Packagist](https://packagist.org/packages/bfitech/zapchupload)[ RSS](/packages/bfitech-zapchupload/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (3)Versions (13)Used By (0)

zapchupload
===========

[](#zapchupload)

Server-side chunk uploader.

[![Latest Stable Version](https://camo.githubusercontent.com/0f5b3860a4b629e72fe99bf002465b2fca036c162449d3c70f8a3e6403d2816d/68747470733a2f2f706f7365722e707567782e6f72672f626669746563682f7a6170636875706c6f61642f762f737461626c65)](https://packagist.org/packages/bfitech/zapchupload)[![Latest Unstable Version](https://camo.githubusercontent.com/f65ea64377732dbf2edfb60e1c8f1710a9cd1199e69a35c0b33240d6f5e7bca7/68747470733a2f2f706f7365722e707567782e6f72672f626669746563682f7a6170636875706c6f61642f762f756e737461626c65)](https://packagist.org/packages/bfitech/zapchupload)[![Build Status](https://camo.githubusercontent.com/0601e8aeb1f54461eaa5fdc3a8dda78a4ef52a9684e58d262f5d493a110d3bef/68747470733a2f2f7472617669732d63692e6f72672f626669746563682f7a6170636875706c6f61642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bfitech/zapchupload)[![Codecov](https://camo.githubusercontent.com/89e5e77811d2329860ea89be41826e7dc70ac7918086b042be0d60cca88bd5bf/68747470733a2f2f636f6465636f762e696f2f67682f626669746563682f7a6170636875706c6f61642f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/bfitech/zapchupload)[![GitHub license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://raw.githubusercontent.com/bfitech/zapchupload/master/LICENSE)

---

This package provides PHP the ability to upload possibly ultra-big file in smaller chunks.

But why? What's wrong with standard HTTP form?

Some primary considerations:

pros:

- No worry about RAM and other server intrinsic limitations.
- If configured properly, no worry about `upload_max_filesize` and consequently `max_execution_time` directives. Filesize limit may still come from disk space or filesystem limitation.
- Each chunk can be processed for, e.g. fingerprinting, so there's a way to fail early when file is corrupt in transit.
- Easily configurable to work with your other web app routers.
- Works on plain PHP. No web server tweaks necessary.

cons:

- Network overhead explodes because multiple requests must be made to upload even a single file.
- A special client must be crafted. Standard HTTP upload form will not work.

Installation
------------

[](#installation)

```
$ composer require bfitech/zapchupload
$ vim index.php
```

Tutorial
--------

[](#tutorial)

### server-side

[](#server-side)

Quick `index.php` setup:

```
