Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

HttpProgressEvent

Base interface for progress events.

      
      interface HttpProgressEvent {
  type: HttpEventType.DownloadProgress | HttpEventType.UploadProgress
  loaded: number
  total?: number
}
    

Properties

Property Description
type: HttpEventType.DownloadProgress | HttpEventType.UploadProgress

Progress event type is either upload or download.

loaded: number

Number of bytes uploaded or downloaded.

total?: number

Total number of bytes to upload or download. Depending on the request or response, this may not be computable and thus may not be present.