client/src/InputData.js
/**
     * Updates this.files when the file input is changed
     */
Updates this.files when the file input is changed
Updates this . files when the file input is changed
updateFiles(fileList) {
        this.files = Array.from(fileList);
        console.log(this.files);
        if(this.files.length !== 0) this.setState({filesAdded: true});
        else this.setState({filesAdded: false});
    }
updateFiles ( fileList ) { this . files = Array . from ( fileList ) ; console . log ( this . files ) ; if ( this . files . length !== 0 ) this . setState ( { filesAdded : true } ) ; else this . setState ( { filesAdded : false } ) ; }
Updates this.files when the file input is changed
Updates this . files when the file input is changed
// update submit button