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

File URL Support for Sharing #45

Open
ankursingla opened this issue May 23, 2020 · 4 comments
Open

File URL Support for Sharing #45

ankursingla opened this issue May 23, 2020 · 4 comments
Labels
hacktoberfest Hacktoberfest 2022

Comments

@ankursingla
Copy link

Can we use file URIs?

@felipenmoura
Copy link
Contributor

What do you mean by File URIs?
If you have a local file URI like file://something and share it, the person who access it will not have access to that file.
Or you meant something different?

@andreholik
Copy link

And Its possible use URI like base64?
Example: data: application/gzip;base64,H4sICPsdulsCAHJlYWRtZS50eHQAC0/NSc7PTVUoyVdISixONTPRSy8tKlUEAPCdUNYXAAAA

@felipenmoura
Copy link
Contributor

Interesting...

I haven't tried it, but I believe you can specify the url and it might work.
But it depends on the apps you're using to share with.

Something like this:

 var base64url = "data:application/gzip;base64,H4sICP....."
  navigator.share({
    title: 'The title',
    text: 'Some text you want to share,
    url: base64url ,
  })

@andreholik
Copy link

I tried with base64, but it didn't work.
I sent to print, and it was like this:

image

@rsip22 rsip22 added the hacktoberfest Hacktoberfest 2022 label Oct 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest Hacktoberfest 2022
Projects
None yet
Development

No branches or pull requests

4 participants