vanillaforums/vanilla — pull request #1900 by DKhalil (2014-05-06 12:35:48+00:00)
Title: Fixed upload path for windows paths

You only replaced the backslashes in $Name and not in PATH_UPLOADS, so it never matched properly.