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

extension code-point limit to 16 chars is too low for modern apps (showSaveFilePicker) #405

Open
tiptronic opened this issue Mar 18, 2023 · 1 comment

Comments

@tiptronic
Copy link

For our (native) custom applications we register a couple of file-extensions with the OS.
Unfortunately some of these are longer than 16 characters (including the '.').

There seems to be no way to use the showSaveFilePicker method to save any of these files:

  • if we provide the suggestedName including the suffix but without types, the suffix is removed (which basically destroys the file on a user's machine)
  • if we provide the suggestedName including the suffix with types, an exception is thrown if the type i (e.g. accept: {'application/zip': ['.ourRegisteredExtension']}.
  • if we try a wildcard accept: {'application/zip': ['*']} an error is thrown.
  • ...

The conclusion here is, that for nowadays modern applications, the extension-length limit to 16 character seems too restrictive.

Is there any chance, this restriction is lifted or made a bit more flexible - e.g. let me just enter a suggestedName including extension and have the showSaveFilePicker to not touch the suggestedName?
Or allow for longer extensions?
Or allow for wildcard extensions?

@a-sully
Copy link
Collaborator

a-sully commented Oct 25, 2023

FYI some discussion about this is happening over on https://crbug.com/1464953

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants