You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
Same code as examples/browser-add but adding a file instead of text. It works with text but when adding a file I get index.js:1281 Uncaught TypeError: target._set is not a function
Maybe I am incorrectly forming the buffer? But even the files add code from ipfs-webui throws the same error.
index.html
<!doctype html><htmllang="en"><head><metacharset="UTF-8"/><title>JS IPFS API - Example - Browser - Add</title><scriptsrc="buffer.js"></script><!-- feross buffer --><scriptsrc="ipfs.js"></script><!-- js-ipfs-api/dist/index.js --><scriptsrc="index.js"></script><!-- see below --></head><body><h1>JS IPFS API - Add file from the browser</h1><inputtype="file" id="source"><buttonid="store">create in ipfs</button><div><div>found in ipfs:</div><divid="hash">[ipfs hash]</div><divid="content">[ipfs content]</div></div></body></html>