feat(share): add option to share files to PWA#4227
feat(share): add option to share files to PWA#4227basert wants to merge 1 commit intoTandoorRecipes:developfrom
Conversation
|
thank you for your solution and effort. This is more complex than I had hoped it to be but looks like it works (i guess you probably tested it). Do you have any ideas on how this could be done "easier" (like just populating the file upload with the proper path, not sure if that works). I will leave this open for a few days, maybe someone has an idea or maybe I have one, if not I will get it merged, I do like the feature. |
* adjusts the `manifest.json` file to configure `files` option * add service-worker handling to intercept the POST request, write the file to shared cache and redirect to the vue app * adds handling in vue app to read the file from cache and preload the AI import view
|
Yeah, unfortunately it's not as simple as opening a webpage with the file pre-bootstrapped. And I can see why, the file might be owned by the app itself and possibly doesn't even exist on the phones filesystem. So the app shares the file with the browser by I indeed tested it, but it's quite a fight to get the local copy running on my phone :D I had to expose it via a public hostname with valid HTTPS certificate. To just test the internal handling (e.g. service-worker, upload page, ...), you can use this test html: |
manifest.jsonfile to configurefilesoptionThis implements #4220