Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling file case #152

Open
monster860 opened this issue Jan 30, 2020 · 3 comments
Open

Handling file case #152

monster860 opened this issue Jan 30, 2020 · 3 comments
Labels
clarification Standard could better describe desired behavior question

Comments

@monster860
Copy link

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?

@mkruisselbrink
Copy link
Contributor

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?

@mkruisselbrink mkruisselbrink added this to the V1 milestone Apr 29, 2020
@ftreesmilo
Copy link

Can this be closed? was it implemented?

@mkruisselbrink mkruisselbrink added the clarification Standard could better describe desired behavior label Jul 20, 2021
@mkruisselbrink mkruisselbrink removed this from the V1 milestone Jul 20, 2021
@mkruisselbrink
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clarification Standard could better describe desired behavior question
Projects
None yet
Development

No branches or pull requests

3 participants