illuminatech/multipart-middleware
Laravel middleware that parses multipart/form-data requests for PUT, PATCH, and other non-POST methods, populating the request with regular input and uploaded files so you can handle file uploads on any HTTP verb.
multipart/form-data on PUT/PATCH requests, supporting RESTful update semantics rather than forcing all uploads through POST.PUT/PATCH.Consider it when:
multipart/form-data uploads on PUT or PATCH routes in Laravel.NOASSERTION license before production use.Do not adopt it as-is when:
POST uploads, JSON/base64 uploads, or direct-to-object-storage presigned URLs are acceptable alternatives.Executive summary: This is a small Laravel middleware that lets our API accept file uploads on PUT/PATCH endpoints, which Laravel does not handle natively. It supports cleaner API contracts and can reduce client workarounds, but it has low community adoption and an unclear license. Recommendation: treat it as a timeboxed technical spike, not a default dependency. If the API contract truly requires PUT/PATCH multipart uploads, have engineering review the code, legal clarify the license, and plan to vendor/fork it if adopted.
For engineering: Evaluate integration effort, test coverage for file validation/error handling, and whether the middleware behaves correctly with Laravel’s request lifecycle. Compare against simply using POST uploads or presigned object-storage uploads.
How can I help you explore Laravel packages today?