w3c / web-share

Web API proposal for sharing data from a web page
https://www.w3.org/TR/web-share/
Other
353 stars 65 forks source link

Share not display image #222

Closed DEVfancybear closed 2 years ago

DEVfancybear commented 2 years ago

After sharing, only the link is displayed, not the uploaded image.

marcoscaceres commented 2 years ago

Hi @DEVfancybear, this repository is for the specification, not for a particular browser. However, if you tell us which browser you are having an issue in, we might be able to point you in the right direction.

DEVfancybear commented 2 years ago

@marcoscaceres I'm getting an error sharing images but only showing the link in safari browser, can you help me

marcoscaceres commented 2 years ago

If you put the share() code up somewhere, I can check if it’s a browser bug or not.

DEVfancybear commented 2 years ago

code I have tested this code on adnroid and it works as I want, but when using on ios safari, when I share the image, I only get the link, for example telegram or skype are not displayed.

marcoscaceres commented 2 years ago

Thanks @DEVfancybear. I can't see anything obviously wrong, so it might be a bug or limitation in Safari.

I'll see if I can track down someone from the WebKit team to see if they can reproduce the issue.

DEVfancybear commented 2 years ago

9 If I select only update vs file, not url, text, title, will the new iphone device like iphone 12 promax show such error @marcoscaceres ?

marcoscaceres commented 2 years ago

@DEVfancybear could you please put the actual file you are testing again somewhere on GitHub or on the web? I.e., it may be that the browser supports it, but it's not actually shareable for other reasons.

DEVfancybear commented 2 years ago

But in the picture is the error Unsupported feature: navigator.canShare() @marcoscaceres ?

marcoscaceres commented 2 years ago

@DEVfancybear please understand that it’s not possible for me to replicate the problem without all the same code+data.

saschanaz commented 2 years ago

The demo looks wrong btw. It shouldn't fail with canShare-is-unsupported message.

https://github.com/w3c/web-share/blob/6b868ff580fd4bd300a06067b41ff6bb359de3c6/demos/share-files.html#L133-L136

DEVfancybear commented 2 years ago

@DEVfancybear please understand that it’s not possible for me to replicate the problem without all the same code+data.

I'm using the web demo of this project :(

saschanaz commented 2 years ago

The demo has been updated. What does it say when you retry?

marcoscaceres commented 2 years ago

Closing as this is not really a spec issue and in light of #226. Happy to keep discussion going if need be.