Update $explodedName with reversed array
From Joomla! Documentation
Line 441 to 444 of libraries/joomla/filter/JInputFilter.php extracts possible extensions in the file name to check against a list of invalid extensions.
This pertains only to Joomla! version(s): 3.4.0 to 3.4.3
What is the cause
array_reverse returns the reversed array, it does not change the original array.
How to fix
Apply the patch https://github.com/joomla/joomla-cms/pull/7814#issuecomment-138881425
use the raw parameter to suppress the safe file check.
This was fixed in Joomla 3.4.4