php file request

Solutions on MaxInterview for php file request by the best coders in the world

showing results for - "php file request"
Cristina
29 Jul 2019
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.