How can I use JavaScript to load a JSON file from my desktop? Alternatively, for a more direct approach:

16 Replies, 779 Views

Hey, OP here! Wow, thanks for all the replies—didn’t expect so many solutions!

I tried the FileReader approach and it worked perfectly. Didn’t realize browsers had those security limits for local files.

Quick follow-up: If I *do* use a local server (like Live Server), can I then use fetch() with relative paths, or do I still need full paths?

Thanks again, y’all are legends! 😊

Messages In This Thread



Users browsing this thread: 1 Guest(s)