1/**
2 * Common File Request Method
3 */
4$file = $request->file('file');
5$file->getClientOriginalName(); // Returns the original file name
6$file->getClientOriginalExtension(); // Returns the original file extension
7$file->getClientMimeType(); // Returns the file mime type
8$file->getMaxFileSize(); // Returns the given size from an ini value in bytes.
9$file->getErrorMessage(); // Returns an informative upload error message.