symfony/symfony — pull request #5600 by daum (2012-09-25 20:26:28+00:00)
Title: [HttpFoundation] UploadedFile: Added ability to the original extension of the file uploaded,

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes
License of the code: MIT
Fixes the following tickets: #5599
Todo: -

`$file->getExtension() ` on uploaded files always will return blank as the temp file names do not have an extension. This adds `$file->getClientOriginalExtension()` which returns the extension based off the original file name.