Forum Discussion
ClickONru
2 years agoHonored Guest
HTMLAnchorElement.download doest'n work in Oculus Browser
Hi, guy's.
Perhaps someone has encountered this problem:
I'm trying to create a download link programmatically but have no success.
How can this be fixed?
const json = JSON.stringify(someJson);
const blob = new Blob([json], {type: 'application/json'});
const url = URL.createObjectURL(blob);
const a = linkElement; // HTMLAnchorElement
a.href = url;
a.text = url.toString();
a.download = 'some-file-name';
When i click on link nothing happened.
Without "download" property this link open like a document.
Thank you for help
1 Reply
- ClickONruHonored Guest
i found "solution" - any files is downloading silently (without any warns for user).
I prefer for browser somehow warn me about any downloading. But in general its work.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 26 days ago