Retrieving Uploaded Files: File Paths & Extensions

$path = $request->photo->path();

$extension = $request->photo->extension();

The UploadedFile class also contains methods for accessing the file's fully-qualified path and its extension.

Retrieving Uploaded Files: File Paths & Extensions — Structure map

Clickable & Draggable!

Retrieving Uploaded Files: File Paths & Extensions — Related pages: