title: React AntDesign add uploaded images to FormData
body: <p>I want to use <a href="https://ant.design/components/upload" rel="noreferrer">image uploader from AntDesign library</a>. Here is a <a href="https://i.stack.imgur.com/JWoUU.png" rel="noreferrer">snapshot</a></p>
  
  <pre><code>import { Upload, Icon, Modal } from 'antd'
  
  class PicturesWall extends React.Component {
    state = {
      previewVisible: false,
      previewImage: '',
      fileList: [],
    }
  
    handleCancel = () =&gt; this.setState({ previewVisible: false })
  
    handlePreview = file =&gt; {
      this.setState({
        previewImage: file.url || file.thumbUrl,
        previewVisible: true,
      })
    }
  
    handleChange = ({ fileList }) =&gt; this.setState({ fileList })
  
    render() {
      const { previewVisible, previewImage, fileList } = this.state
      const uploadButton = (
        &lt;div&gt;
          &lt;Icon type="plus" /&gt;
          &lt;div className="ant-upload-text"&gt;Upload&lt;/div&gt;
        &lt;/div&gt;
      )
      return (
        &lt;div className="clearfix"&gt;
          &lt;Upload
            action="//jsonplaceholder.typicode.com/posts/"
            listType="picture-card"
            fileList={fileList}
            onPreview={this.handlePreview}
            onChange={this.handleChange}
          &gt;
            {fileList.length &gt;= 3 ? null : uploadButton}
          &lt;/Upload&gt;
          &lt;Modal
            visible={previewVisible}
            footer={null}
            onCancel={this.handleCancel}
          &gt;
            &lt;img alt="example" style={{ width: '100%' }} src={previewImage} /&gt;
          &lt;/Modal&gt;
        &lt;/div&gt;
      )
    }
  }
  
  ReactDOM.render(&lt;PicturesWall /&gt;, mountNode)
  </code></pre>
  
  <p>It's so hard to understand what's going on here for me .
  Can I get images from this component using something like 
  <strong>const img=event.target.files[0];</strong>? </p>
  
  <p>All I want it's put that uploaded images into array and using FormData send axios.post request to the backend.
  I'm newbie in React .If it's something obvious pardon me.Thank you in advance</p>