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.
Works fine in Chrome and Firefox. Code to reproduce below. I can upload the whole repo if that helps. Please forgive the react boiler plate!
importReact,{Component}from'react';import'./App.css';importIpfsAPIfrom'ipfs-api';constipfs=IpfsAPI();classAppextendsComponent{render(){return(<divclassName="App"><pclassName="App-intro">
Choose a file to add.
</p><inputclassName="picker"id='file'type="file"></input><buttonid="store"onClick={this.add}>Add to ipfs</button><p></p></div>);}add(){constfile=document.getElementById('file').files[0]constreader=newFileReader()reader.onload=function(){vartoStore=newBuffer(reader.result);ipfs.add(toStore,function(err,res){if(err||!res){returnconsole.error('ipfs add error',err,res)}res.forEach(function(file){console.log('successfully stored',file)})})}reader.readAsArrayBuffer(file)}}exportdefaultApp;
The text was updated successfully, but these errors were encountered:
First of all, awesome work on and thank you for ipfs/js-ipfs#429!! π
I noticed an issue in Safari. When I try to add a file, I get an error:
getFilesStream β get-files-stream.js:100 ReferenceError: Can't find variable: Multipart
Works fine in Chrome and Firefox. Code to reproduce below. I can upload the whole repo if that helps. Please forgive the react boiler plate!
The text was updated successfully, but these errors were encountered: