PHPackages                             coding-socks/multipart-of-madness - 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. coding-socks/multipart-of-madness

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

coding-socks/multipart-of-madness
=================================

This package helps to integrate your library with @uppy/aws-s3-multipart

v0.1.3(1mo ago)0326MITPHPPHP ^8.0CI failing

Since Apr 1Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/coding-socks/multipart-of-madness)[ Packagist](https://packagist.org/packages/coding-socks/multipart-of-madness)[ RSS](/packages/coding-socks-multipart-of-madness/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (5)Used By (0)

Multipart of Madness
====================

[](#multipart-of-madness)

This package helps to integrate your library with `@uppy/aws-s3-multipart`.

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

[](#installation)

You can easily install this package using Composer.

```
composer require coding-socks/multipart-of-madness

```

You have to install `@uppy/aws-s3-multipart` to be able to use it as an uploader.

```
npm i -D @uppy/aws-s3-multipart

```

Usage
-----

[](#usage)

Configure Uppy with `AwsS3Multipart` uploader.

```
uppy.use(AwsS3Multipart, {
    companionUrl: '/uppy',
    shouldUseMultipart(file) {
        return file.size > 10 * 1024 * 1024;
    }
})
uppy.addPreProcessor(() => {
    return new Promise((resolve) => {
        const cookieName = window.axios.defaults.xsrfCookieName
        const headerName = window.axios.defaults.xsrfHeaderName
        /** @type {AwsS3Multipart} */
        const plugin = uppy.getPlugin('AwsS3Multipart')
        plugin?.setOptions({
            // You have to implement `cookies.read`
            companionHeaders: {[headerName]: cookies.read(cookieName)},
        })
        resolve()
    })
})
```

Configure the CORS of your S3 or S3-compatible solution. It needs to allow GET and PUT requests from your domain and expose some unsafe HTTP headers to Uppy. Example:

```
[
	{
		"AllowedOrigins": ["https://my-app.com"],
		"AllowedMethods": ["GET", "PUT"],
		"MaxAgeSeconds": 3000,
		"AllowedHeaders": [
			"Authorization",
			"x-amz-date",
			"x-amz-content-sha256",
			"content-type"
		],
		"ExposeHeaders": ["ETag", "Location"]
	}
]
```

Defaults
--------

[](#defaults)

The expiration times for the signe links is `15 minutes`.

The target filesystem disk is `s3`.

The endpoint routes registered under `web` route with `/uppy` prefix.

Implementation
--------------

[](#implementation)

This implementation uses PutObject command instead of PostObject on non-multipart upload request. This is only for compatibility with [Backblaze B2](https://www.backblaze.com/cloud-storage) and [Cloudflare R2](https://www.cloudflare.com/developer-platform/r2/). `@uppy/companion` uses PostObject.

All other routes were implemented based on `@uppy/companion`.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance90

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~241 days

Total

4

Last Release

48d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d3bd9e4491f20dd26347fd114f60fb7e5dd8578fb8e4099c8ed7617f6ecb7094?d=identicon)[nergal](/maintainers/nergal)

---

Top Contributors

[![nerg4l](https://avatars.githubusercontent.com/u/4079392?v=4)](https://github.com/nerg4l "nerg4l (16 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/coding-socks-multipart-of-madness/health.svg)

```
[![Health](https://phpackages.com/badges/coding-socks-multipart-of-madness/health.svg)](https://phpackages.com/packages/coding-socks-multipart-of-madness)
```

###  Alternatives

[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.3M74](/packages/unisharp-laravel-filemanager)[spatie/laravel-google-cloud-storage

Google Cloud Storage filesystem driver for Laravel

2408.9M13](/packages/spatie-laravel-google-cloud-storage)[laravel/vapor-cli

The Laravel Vapor CLI

31310.7M8](/packages/laravel-vapor-cli)[azure-oss/storage-blob-laravel

Azure Storage Blob filesystem driver for Laravel

63582.2k1](/packages/azure-oss-storage-blob-laravel)[zing/laravel-flysystem-obs

Flysystem Adapter for OBS

1211.2k](/packages/zing-laravel-flysystem-obs)[innoge/laravel-rclone

A sleek PHP wrapper around rclone with Laravel-style fluent API syntax

174.1k](/packages/innoge-laravel-rclone)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
