= new FormData();

          formData.append('file', file.file);
          formData.append('filename', file.name);

          return new Promise((resolve, reject) => {

            $.ajax({
              type : 'POST',
              url : '/api/uploadfile',
              data : formData,
              processData : false,
              contentType : false,
              dataType : 'json',
              success : resp => {

                setTimeout(() => {
    
                  if (resp.status) {

       