Created the file validation as (for test purpose it is 5kb)
'file': "max:5|mimes:jpg,png,jpeg,pdf,txt,doc,docx,mp4"
There is a weird issue, as it is displaying a valid error on uploading png
...may not be greater than 5 kilobytes.
but on uploading mp4 it is throwing following error
RuntimeException: The file {path-here}\public cannot be opened. in file
{path-here}\vendor\nyholm\psr7\src\Factory\Psr17Factory.php on line 46