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_type | Required fields |
|---|---|
local | qqfilename, qqfile, qqtotalfilesize |
azure | blob, name |
s3 (default) | key, name |
The s3 branch is used as the fallback for any unknown value.
Notes ​
- Despite extending the model-aware
Requestbase,FileRequestoverridesrules()completely — no translation expansion orunique_tablehydration runs for this endpoint. - The per-backend field names mirror the client libraries they integrate with: FineUploader (
qq*fields) forlocal, the Azure Blob SDK forazure, and S3 presigned uploads fors3.
Related ​
FileLibraryController— consumes this requestFilepondController— related uploader endpoint- Services · FileLibrary