_sendRequest(file) {
    // Prepare form data.
    //console.log('file:', file); // eslint-disable-line
    const data = new FormData();
    data.append('upload', file);

    // Send request.
    this.xhr.send(data);
  }
/**
   * Prepares the data and sends the request.
   *
   * @private
   */
Prepares the data and sends the request.
@private
Prepares the data and sends the request . @private
_sendRequest(file) {
    const data = new FormData();
    data.append('upload', file);
    this.xhr.send(data);
  }
_sendRequest ( file ) { const data = new FormData ( ) ; data . append ( 'upload' , file ) ; this . xhr . send ( data ) ; }
Prepares the data and sends the request.
Prepares the data and sends the request .
// Prepare form data. //console.log('file:', file); // eslint-disable-line // Send request.