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

Idea - Allow the web-developer to categorize and style the file viewer/picker #259

Closed
Chrisyayger opened this issue Dec 24, 2020 · 3 comments

Comments

@Chrisyayger
Copy link

Chrisyayger commented Dec 24, 2020

It would be very beneficial to the developer to be able to style the look of specific files.

Providing specific icons if the file does not have any thumbnail. Also providing a JS way to sort the files, then a CSS or bootstrap way to put the files in a user-defined grid.

the browser will pass a version of the user's file system that doesn't contain any security compromising information. then the browser holds that filesystem till it is requested, then the browser will allow the developer to categorize the files according to their types (folder, audio, video, document, image, application, and compressed files/folders, or by default [everything included] ) of course with restricted files and folders taken out of the list.

The browser will still provide the same restrictions as before (i.e permissions and user gestures are required), but this feature will enable the website to have a native feel to it. Thus can be implemented in Web-Apps.

Note: The developer will not have any programmatical way of accessing this styled picker to write into or read any of the categories' contents. The developer can preview the styled picker during development (localhost) only and not when the webpage has been loaded client-side.

@a-sully
Copy link
Collaborator

a-sully commented Jan 9, 2023

This API intentionally uses the native system's file picker to piggy-back on the user's mental model of selecting a file to open/save. I don't see us supporting custom file pickers

@a-sully a-sully closed this as completed Jan 9, 2023
@jimmywarting
Copy link

I don't see us supporting custom file pickers

With a cloud fs it would.

@a-sully
Copy link
Collaborator

a-sully commented Jan 10, 2023

Ah yes, sorry, I should be more specific. Chromium could ship a custom file picker to integrate with cloud services, etc. But I don't see us allowing web sites to style the file picker, which is what's requested here

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

3 participants