1👍
✅
Finally found the solution . I need to use
data.append('file', ReactDOM.findDOMNode(this.refs.file).files[0]);
Source:stackexchange.com
1👍
Finally found the solution . I need to use
data.append('file', ReactDOM.findDOMNode(this.refs.file).files[0]);