0

Chrome/FF seems to be replacing "/" character in the file name with ":".

Steps to reproduce:

  1. Hit this page

  2. Select a file name with "/" character in it

  3. Check the file name being shown on the webpage. It will have the "/" replaced with ":"

I have scoured the web for an explanation on this behaviour but cant seem to find anything article on specifically this behaviour.

I understand the fakepath behaviour is required as a security measure, and that this may be a logical extension of the same. But where is this specific behaviour defined?

shashanka n
  • 2,568
  • 1
  • 14
  • 21
  • Its on firefox too. I sit corrected! – shashanka n Aug 25 '16 at 07:04
  • 1
    emm - [this post](http://stackoverflow.com/questions/13298434/colon-appears-as-forward-slash-when-creating-file-name)? You should check out the comments. – Mike B Aug 25 '16 at 07:07
  • Thank you! Apparently I was searching for "fileupload '/' replaced with ':' " and was hitting all sorts of fakepath problems, should've just tried the english equivalents of those symbols instead in my searches.. – shashanka n Aug 25 '16 at 07:19
  • Nice. Little trick to know for future. :D – Mike B Aug 25 '16 at 07:48

0 Answers0