title |
---|
Integrations | Sirius Upload |
If you are using a library like Laminas Diactoros that can provide an array of objects that implement UploadedFileInterface
from the PSR-7 standard you can do the following
/** @var Sirius\Upload\Handler $uploadHandler */
/** @var Laminas\Diactoros\ServerRequest $request */
$result = $uploadHandler->process($request->getUploadedFiles());
If you integrate this into a project that uses Symfony's HTTP Foundation component you can do the following:
/** @var Sirius\Upload\Handler $uploadHandler */
/** @var Symfony\Component\HttpFoundation\Request $request */
$result = $uploadHandler->process($request->files->all());