Function uploadWithProgress

  • Upload file to URL with progress callback using PromiseProgress

    Type Parameters

    • T

    Parameters

    • options: {
          files: File[];
          headers?: {
              [key: string]: string;
          };
          url: string;
          withCredentials?: boolean;
      }
      • files: File[]
      • Optionalheaders?: {
            [key: string]: string;
        }
        • [key: string]: string
      • url: string
      • OptionalwithCredentials?: boolean

    Returns PromiseProgress<T>

    Promise of request with onProgress callback