Ionic v4 pwa with fileopen dialog an open email with file

Hello,
I want to make my first steps on a pwa with ionic v4.
I want to open a file dialog, get the file or filepath , open any mail software with a new mail where the file is attached.

How should I do that. Any ideas, code, tutorial is very welcome.

Best regards, anna-liebt

I don’t believe there’s any standardized way of doing exactly what you describe.

If your PWA has a backend that can do dropbox-y sorts of things, you could have the Ionic application upload the file to the backend and get back a URL for accessing the file over HTTP. You could then include that URL in the body of a message using the mailto protocol.

Hello,
maybe I oversee something. If I put an ordinary <input type=‘file’… on my html I can get a Fileobject and containing file with his name property. But it seems this has no path.
I have looked for libs that opens email client with attached files, but it seems I need for that the path.

Best regards, anna-liebt