Permintaan File PHP

/**
 * Common File Request Method
 */
$file = $request->file('file');
$file->getClientOriginalName(); // Returns the original file name
$file->getClientOriginalExtension(); // Returns the original file extension
$file->getClientMimeType(); // Returns the file mime type
$file->getMaxFileSize(); // Returns the given size from an ini value in bytes.
$file->getErrorMessage(); // Returns an informative upload error message.
Innocent Ibis