feathers icon indicating copy to clipboard operation
feathers copied to clipboard

feathersj rest client onupload progress no documentations

Open devops724-2 opened this issue 4 years ago • 0 comments

Hi, i try use feathersjs rest client using axios in upload large file i need show progress bar but there is no documentations https://docs.feathersjs.com/api/client/rest.html how config feathersjs client call onUploadProgress i used this code with no success

 const config = {
         headers: {
              'Content-Type': 'multipart/form-data',
            },
    onUploadProgress: function(progressEvent) {
      var percentCompleted = Math.round((progressEvent.loaded * 100) / progressEvent.total)
      console.log(percentCompleted)
    }
  }
      this.uploadService.create(formData, config)
      

onUploadProgress never get called

devops724-2 avatar Jan 28 '21 03:01 devops724-2