You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if Laravel File Size would allow you to specify file size and the metric (eg. megabyte|mb, gigabyte|gb etc).
So instead of just:
// Validate that an uploaded file is exactly 512 kilobytes...
'image' => 'file|size:512';
Could do:
// Validate that an uploaded file is less then 2 mb... 'image' => 'file|size:2,mb';
// Validate that an uploaded file is less then 2 gb... 'image' => 'file|size:2,gb';
It would be great if Laravel File Size would allow you to specify file size and the metric (eg. megabyte|mb, gigabyte|gb etc).
So instead of just:
Could do:
// Validate that an uploaded file is less then 2 mb...
'image' => 'file|size:2,mb';// Validate that an uploaded file is less then 2 gb...
'image' => 'file|size:2,gb';https://laravel.com/docs/8.x/validation#rule-size
https://laravelexamples.com/example/agorakit/helpers