Raise audio upload limit to 2 GB per file.
Update validation, dropzone checks, Docker PHP ini, and docs so multi-hour recordings can be uploaded.
This commit is contained in:
@@ -30,6 +30,11 @@ class StoreRecordingRequest extends FormRequest
|
||||
'aif',
|
||||
];
|
||||
|
||||
/**
|
||||
* Maximum upload size accepted by validation (2 GiB).
|
||||
*/
|
||||
public const MAX_AUDIO_KILOBYTES = 2 * 1024 * 1024;
|
||||
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
@@ -54,7 +59,7 @@ class StoreRecordingRequest extends FormRequest
|
||||
'audio' => ['required', 'array', 'min:1', 'max:50'],
|
||||
'audio.*' => [
|
||||
'required',
|
||||
File::types(self::AUDIO_EXTENSIONS)->max(102400),
|
||||
File::types(self::AUDIO_EXTENSIONS)->max('2gb'),
|
||||
],
|
||||
'title' => ['nullable', 'string', 'max:255'],
|
||||
];
|
||||
@@ -71,7 +76,7 @@ class StoreRecordingRequest extends FormRequest
|
||||
'audio.max' => 'You can upload at most 50 files at once.',
|
||||
'audio.*.required' => 'Please choose an audio file to upload.',
|
||||
'audio.*' => 'Unsupported audio type. Use MP3, WAV, OGG, FLAC, M4A, AAC, WebM, WMA, or AIFF.',
|
||||
'audio.*.max' => 'Each audio file may not be larger than 100 MB.',
|
||||
'audio.*.max' => 'Each audio file may not be larger than 2 GB.',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user