mirror of
https://github.com/koel/koel
synced 2025-01-11 20:28:49 +00:00
22 lines
437 B
PHP
22 lines
437 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\API;
|
|
|
|
use App\Http\Requests\Request;
|
|
use Illuminate\Http\UploadedFile;
|
|
|
|
/** @property UploadedFile $file */
|
|
class UploadRequest extends Request
|
|
{
|
|
/** @return array<mixed> */
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'file' => [
|
|
'required',
|
|
'file',
|
|
'mimes:mp3,mpga,aac,flac,ogg,oga,opus',
|
|
],
|
|
];
|
|
}
|
|
}
|