initUpload (file) {
    switch (this.provider) {
      case 'UFile.io':
      // ? https://help.ufile.io/en/article/upload-files-1p925sk/

        this.createUploadRequest(file);
        break;

      case 'GoFile.io':
      // ? https://gofile.io/api

        this.getServer(file);
        break;

      default:
        powercord.api.notices.sendToast('uploadToCloud', {
          header: 'Upload Failure!',
          content: 'No this.provider matched the setting.',
          type: 'error',
          timeout: 3000
        });
        break;
    }
  }
/**
   * Initialize upload and decide on method.
   * @param {File} file
   */
Initialize upload and decide on method.
@param {File} file
Initialize upload and decide on method . @param { File } file
initUpload (file) {
    switch (this.provider) {
      case 'UFile.io':
        this.createUploadRequest(file);
        break;
      case 'GoFile.io':
        this.getServer(file);
        break;
      default:
        powercord.api.notices.sendToast('uploadToCloud', {
          header: 'Upload Failure!',
          content: 'No this.provider matched the setting.',
          type: 'error',
          timeout: 3000
        });
        break;
    }
  }
initUpload ( file ) { switch ( this . provider ) { case 'UFile.io' : this . createUploadRequest ( file ) ; break ; case 'GoFile.io' : this . getServer ( file ) ; break ; default : powercord . api . notices . sendToast ( 'uploadToCloud' , { header : 'Upload Failure!' , content : 'No this.provider matched the setting.' , type : 'error' , timeout : 3000 } ) ; break ; } }
Initialize upload and decide on method.
Initialize upload and decide on method .
// ? https://help.ufile.io/en/article/upload-files-1p925sk/ // ? https://gofile.io/api