Skip to content

kiraitachi/simple-ipfs-file-uploader-via-browser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-ipfs-file-uploader-via-browser

A minimalist IPFS file uploader via browser using Javascript + IpfsHttpClient

Demo: https://anarkrypto.github.io/simple-ipfs-file-uploader-via-browser/

Note: If you load your app from a different domain than the one the daemon is running (most probably), you will need to set up CORS, see https://github.com/ipfs/js-ipfs-http-client#cors to learn how to do that.

A quick (and dirty way to get it done) is:

> ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin "[\"*\"]"
> ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials "[\"true\"]"

About

Simple IPFS file uploader via browser using Javascript + IpfsHttpClient

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 99.9%
  • HTML 0.1%