hhuijser/liferay-portal — pull request #1952 by jonathanmccann (2014-06-18 18:54:17+00:00)
Title: LPS-43773

Hey Hugo,

The issue is that previously, the temporary file would be named something like:

test.txt--TempRandomString--asdf

So the extension would be "txt--TempRandomString--asdf" instead of just "txt". Instead of stripping out the temporary random string when the file is added, I decided to modify the back end logic a bit so that the extension is still visible. I think that this is cleaner and avoids unnecessary checks when we're not doing a multi-upload. Let me know if you have any questions.

Thanks.