How do I read an external text file? I have tried wix-fetch but all examples reference to local files.
Can someone share a quick example reading .txt file stored in a public HTML location?
Thanks!!
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
Hi,
Tried it and it worked perfectly. Maybe your URL starts with http and not https?
import {fetch} from "wix-fetch"; fetch("https://www.w3.org/TR/PNG/iso_8859-1.txt") .then(r => r.text()) .then(text => console.log(text));