0x255de8e9182e053331143de8a65991c8b800fd18ebe34a497825ce0d93d15d0d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OIFS=$IFS | |
IFS="," | |
# fill in your details here | |
dbname=<DBNAME> | |
user=<USERNAME> | |
pass=<PASSWORD> | |
host=<HOST> | |
port=<PORT> | |
authdb=<AUTHDB> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const IPFS = require('ipfs'); | |
const express = require('express'); | |
const fs = require('fs'); | |
const app = express(); | |
const ipfs = new IPFS(); | |
app.get('/addfile', () => { | |
// reading file from computer | |
let file = fs.readFileSync('test.png'); |