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
import React from 'react' | |
import axios, { post } from 'axios'; | |
class SimpleReactFileUpload extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state ={ | |
file:null | |
} |
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
/** | |
* get and put encrypted and/or signed material to paths in Gun | |
* FIXME: Investigate why root level put doesn't work | |
* | |
* DONE: Add signing to make objects unwritable by others | |
* Changes: | |
* - 25.02.2020 | |
* - added mergedeep to better merge deeper objects between themselves | |
* - added pair.osign option to only sign not encrypt when passing existing pairs | |
**/ |