Skip to content

FileRequest ​

File: src/Http/Requests/FileRequest.phpNamespace: Unusualify\Modularous\Http\RequestsExtends: Request

Validates the payload posted to the file-library upload endpoint. The required fields depend on which backend is configured via modularous.file_library.endpoint_type.

Endpoint-specific rules ​

rules() reads modularousConfig('file_library.endpoint_type') and returns one of three rule sets:

endpoint_typeRequired fields
localqqfilename, qqfile, qqtotalfilesize
azureblob, name
s3 (default)key, name

The s3 branch is used as the fallback for any unknown value.

Notes ​

  • Despite extending the model-aware Request base, FileRequest overrides rules() completely — no translation expansion or unique_table hydration runs for this endpoint.
  • The per-backend field names mirror the client libraries they integrate with: FineUploader (qq* fields) for local, the Azure Blob SDK for azure, and S3 presigned uploads for s3.