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:
ben
2026-08-12 17:42:55 +02:00
parent 771ee8db5a
commit e81a27cb8f
8 changed files with 63 additions and 7 deletions
+7 -2
View File
@@ -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.',
];
}
}