-
Notifications
You must be signed in to change notification settings - Fork 65
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
Persistent file and folder handles #308
Comments
Absolutely agree! it will be great to have such functionality available. |
@ulf75 That is so cool, I am so happy to see companies like yours take a bite out of the bleeding edge of PWA tech and really drive it like a native app would... Hopefully Google will oblige and start giving us some apis that perform better, even if it is only in an "installed" pwa setting. |
@ulf75 depending on your desired use case... there is another filesystem api you could try out that's in origin trials. It requires no user consent but does not let them pick a folder (chrome handles that, stored in the user's profile dir). You could provide the user with the ability to "download" their built files and save them elsewhere... I've heard talk of a merge of apis, but I'm not sure where they are with that. Check out the explainer for the other api here: https://github.com/WICG/storage-foundation-api-explainer |
(See the article for more details: https://web.dev/storage-foundation/.) |
@ftreesmilo & @tomayac : thanks for your input and links - I'll check them now... |
Is this a duplicate of #297 ? |
This does seem similar to #297, yes. Our current plan is to not have any changes at the spec/API level, but on the implementation side change how long a permission remains valid. Installed PWAs in that model will have permissions last much longer than today, and even for regular websites we want to avoid reprompting for the same permissions if a permissions was granted/used not too long ago (on the order or hours), to deal with browser restarts, tabs closing/reopening, etc. |
@mkruisselbrink : Thanks for the feedback! Do you already have an idea when this change will go live? |
This will be a game changer for web apps. The below is my use case and considering dropping my desktop app to be replaced by a PWA if it was possible; Download and delete large files; PDF's, videos and zips in a specific folder - users does not necessarily need to access it outside the app. It is all managed by the user within the app. I need persistent storage and with permanent permission. The downloads are managed by the user too. They only need to download if they want to available for offline use. The only exception are the images of articles which I manually store for offline use. |
Nearly a year later, any update on this plan? It's really needed, at least for installed PWAs, IMHO. |
Please star https://bugs.chromium.org/p/chromium/issues/detail?id=1011533 to be updated on progress. Thanks! |
Context
We have a dental CAD/CAM PWA, and we are importing cases from other intraoral scanner vendors. They provide the upper/lower jaw as 3D triangulations in the STL, OBJ or PLY format, and those files are in one folder. We have three methods of importing:
After importing we create a restoration (e.g. crown) which fits into the situation. During this process we have to export multiple files into the same folder. But we also want to export the final restoration files into another “Default Export” folder.
If you want, you can watch those videos for further clarification:
The first video shows a complete walkthrough a difficult case. The second video shows multiple cases fast-forward but right in the beginning you see the pop-up messages (import method 1 drag & drop).
Problem
As you can imagine, we heavily deal with multiple folders and files. But for every case after restarting the browser or tab or app (which occurs ALL the time), the user gets those messages again. And even more problematic is the import method 2 by clicking on the “Choose Folder” button. We bring up the standard folder import dialog, the user chooses a folder and then he gets two (2) messages: first for read rights and then for write rights (because we need to write files inside this folder). When we now want to export to a “Default Export” folder, a third (3) message pops up!
This is absolutely user unfriendly and raises a lot of support requests at our hotline because the users are unsure about this messages. For me this is a BIG problem.
In addition, at every start of the app we check whether there are new cases available and if yes present them to the user - we need persistent folder handles here too.
Furthermore, we want to be called by a third party program on the same computer with some additional query parameters like https://chairside.clinux.pro?folder=path/to/the/folder while the path is inside our “Default Import” folder, and automatically import this case - we need persistent folder handles here too.
Solution
In order to close the PWA gap, in my opinion having persistent file/folder handles is a crucial part.
I see here three possible solutions:
Further requirements
I originally come from C++ fat client development (where this is build-in 😉), so I hope I explained everything correctly. If not, maybe someone with more browser experience can help me out.
The text was updated successfully, but these errors were encountered: