Back to Плагинs

Parallel Upload

upload uploader speed

Revision 1.0.0

5 days ago
42
Compatible with the latest version of Piwigo
Пн 2 Ноябрь 2026 5 days ago

Parallel Upload for Piwigo 16
Adds a Parallel Upload tab to Photos → Add that cuts every file into chunks small enough to pass a Cloudflare Tunnel (100 MB request-body cap), sends several chunks at once across all queued files, and shows a live dashboard: overall time remaining, speed, per-file split and progress, and every chunk's state.

Tested against Piwigo 16.4.0 (PHP 8.3, nginx + php-fpm, MariaDB) with a 100,000,000-byte request cap in front, including 95 MB chunks, a corrupted chunk, an injected 502, pause/resume, and a finish request cut off mid-flight. Stored files were byte-identical (MD5) to the originals.

How stock Piwigo uploads (16.4)
The Web Form uses plupload posting to pwg.images.upload, chunked at $conf['upload_form_chunk_size'] (default 500 KB).
The server appends each chunk to upload/buffer/.part (fopen(..., 'ab')), and treats the request with chunk == chunks-1 as the end. Chunks therefore must arrive in order, one at a time — parallelism is impossible with that endpoint, and every 500 KB chunk pays a full round-trip through the tunnel.
Raising the chunk size to cut round-trips runs into the 100 MB tunnel limit (HTTP 413) and PHP's upload_max_filesize.
pwg.images.uploadAsync does accept random-order chunks, but needs the whole file's MD5 up front (slow for large videos in a browser), loads each chunk into memory to merge, and does the merge plus registration inside the final request — which can outlive Cloudflare's 100-second response timeout (HTTP 524).

Read more ... Read less

Revisions 1

Ревизия 1.0.0

Released on Пн 2 Ноябрь 2026

42

Compatible with Piwigo 16

5 days longblonde

Adds a Parallel Upload tab to Photos → Add that cuts every file into chunks small enough to pass a Cloudflare Tunnel (100 MB request-body cap), sends several chunks at once across all queued files, and shows a live dashboard: overall time remaining, speed, per-file split and progress, and every chunk's state.