Here is a file upload check that provides no security at all. if ( in_array ( $file -> getClientMimeType (), [ 'image/jpeg' , 'image/png' ])) { $file -> store ( 'avatars' ); } getClientMimeType() returns the Content-Type header that came with the upload. The browser sends that header, and whoev...
Source: [Dev.to](https://dev.to/catidegla/the-laravel-upload-check-that-checks-nothing-one-word-away-from-the-two-that-work-1ek)