silarhi/rest-upload-bundle
A Symfony bundle for adding RESTful file-upload endpoints to your application. It streamlines receiving, storing, and managing uploaded files through a simple API, reducing boilerplate for upload workflows.
Content-Type — is a product decision about what mobile clients, browser apps, and partner integrations can send. Each format we support is a permanent documentation and support obligation; this package frames that trade-off concretely.Consider it (as a design reference, or a fork in a Symfony context) when:
Look elsewhere when:
Recommended path for Laravel: extract a one-page behavior spec (supported modes, size/chunk limits, filename sanitization, error responses) and reimplement natively behind an UploadHandler interface — Flysystem for storage, Laravel validation and FormRequests for checks, middleware for normalization, hard limits at the edge, and malware scanning before persistence. Estimated at 1–3 engineer-days, versus 3–5 to fork-and-port plus ongoing ownership.
To executives: This is a small open-source Symfony bundle that lets a REST API accept uploads in several formats through one endpoint. It has essentially no adoption — 0 stars, 0 dependents — and is not built for our Laravel stack, so we should not take it on as a dependency: that would put unmaintained third-party code directly in the path that handles untrusted customer files. Its real value is as a free design reference, confirming that a single upload endpoint supporting multipart, base64-JSON, and raw binary is a tractable pattern. Cost to reproduce natively in Laravel with proper storage, validation, and scanning is small — days, not weeks. Recommendation: skip the dependency, keep the pattern.
To engineering: Read the request listener and uploaded-file factory — the content-type-to-handler dispatch is the whole idea. Then reimplement behind a single UploadController plus a strategy-per-format interface, backed by Flysystem disks and Laravel's validator. Do not add the bundle to composer.json. If a Symfony service ever genuinely needs it, fork and pin, assign an owner in the service catalog, and budget for maintenance — otherwise the framework friction (a small feature with disproportionate Symfony-convention ramp-up) outweighs any code we'd save.
How can I help you explore Laravel packages today?