hhuijser/liferay-portal — pull request #1958 by jonathanmccann (2014-06-20 15:08:34+00:00)
Title: LPS-43773

Hey Hugo,

This should be it. The sourceFileName and the extension are used to confirm that the filename/extension pass the validation checks. The extension comes from the sourceFileName so we only need to strip out the random suffix once. I left the title alone because we need that to contain the random suffix or else uploading multiple files with the same name will be broken again. Let me know if you have any questions.

Thanks.