The parameter is the name of the input, not the filename
Aug 3, 2021
6
Level 2
How to Check if request have file
How can I check if request has any file.
$request->hasFile() need one parameter that is file name that we have in form,, but i am checking only if request have file or not.
Please Help
Level 55
@tayyabshahzad1 check allFiles
request()->allFiles()
if array is not empty - you have file(s) in request
7 likes
Please or to participate in this conversation.