felixrieseberg / React-Dropzone-Component

:camera: ReactJS Dropzone for File Uploads (using Dropzone.js)
MIT License
1k stars 153 forks source link

how get upload progress value in djsConfig #213

Open behnam-maqsudi opened 4 years ago

behnam-maqsudi commented 4 years ago

how log data-dz-uploadprogress value


  {console.log(data-dz-uploadprogress)}

 previewTemplate: ReactDOMServer.renderToStaticMarkup(
    <div className="dz-preview dz-file-preview">
      <div className="dz-details">
        <img data-dz-thumbnail="true" />
        <div className="item-detail">
          <div className="dz-filename">
            <span data-dz-name="true"></span>
          </div>
          <div className="dz-progress">
            <span className="dz-upload" data-dz-uploadprogress="true"></span>
            <div className="dz-error-mark">{/* <span>✘</span> */}</div>
          </div>
          <div className="dz-success-mark">
            <img src={success} />
          </div>
          <a class="dz-remove" data-dz-remove="true">
            <img src={error} />
          </a>
        </div>
      </div>
      <div className="dz-error-message">
        <span data-dz-errormessage="true"></span>
      </div>
    </div>
  )