3
我已經嘗試了下面的MIME類型驗證PDF文件,但他們都沒有通過驗證。Laravel驗證pdf mime
$rules = [
....
"file" => "required|mimes:application/pdf, application/x-pdf,application/acrobat, applications/vnd.pdf, text/pdf, text/x-pdf|max:10000"
....
]
請問您的形式接受文件?就像你用什麼東西:''files'=> true'打開表單時? –