You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the spec has no mention of uppercase/lowercase distinctions for files at all. Currently, if you use getFile() on the latest Chrome, it returns a file handle with the specific case that is provided - for example if you enter FILE.TXT, it will return a handle with the name of FILE.TXT even if the file is actually called file.txt. This means the only way to actually verify the actual case of the filename, you must iterate over the parent directory to find the case. Another thing I'd like to know is how this would be handled on systems where filenames are case sensitive, such as linux. Does it reject on files with the wrong case?
The text was updated successfully, but these errors were encountered:
It definitely would (and imho should) reject on case sensitive file systems if you use the wrong case.
I'm less sure what the behavior should be on case insensitive (but case preserving) file systems. Could you elaborate more on the use cases where you need to know what the casing is of the existing file?
We should clarify the current behavior in the spec, as it's currently largely silent on file case. There is also overlap with w3c/FileAPI#161, as that ultimately is about how OS level file names map to the name attribute of returned File objects.
Currently the spec has no mention of uppercase/lowercase distinctions for files at all. Currently, if you use
getFile()
on the latest Chrome, it returns a file handle with the specific case that is provided - for example if you enterFILE.TXT
, it will return a handle with the name ofFILE.TXT
even if the file is actually calledfile.txt
. This means the only way to actually verify the actual case of the filename, you must iterate over the parent directory to find the case. Another thing I'd like to know is how this would be handled on systems where filenames are case sensitive, such as linux. Does it reject on files with the wrong case?The text was updated successfully, but these errors were encountered: