Skip to content

Commit 75a7c01

Browse files
committedMar 30, 2016
Add client extension method.
1 parent afa7c8a commit 75a7c01

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎src/Illuminate/Http/UploadedFile.php

+10
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@ public function extension()
2929
return $this->guessExtension();
3030
}
3131

32+
/**
33+
* Get the file's extension supplied by the client.
34+
*
35+
* @return string
36+
*/
37+
public function clientExtension()
38+
{
39+
return $this->guessClientExtension();
40+
}
41+
3242
/**
3343
* Get a filename for the file that is the MD5 hash of the contents.
3444
*

0 commit comments

Comments
 (0)
Please sign in to comment.