Lime Web Components API Documentation - v7.13.1
    Preparing search index...

    Type Alias FileUploadErrorTypeBeta

    FileUploadErrorType: "invalid" | "rejected" | "transport" | "cancelled"

    Category of an upload failure.

    Branch on this for UI flow, and on FileUploadError.code for the message.

    Type Declaration

    • "invalid"

      A client-side validation rule failed. Nothing was sent.

    • "rejected"

      The server refused the file and said why. See code. A 413 with no structured reason is reported here as file-too-large.

    • "transport"

      The request failed, or the server answered without a structured reason, such as a network error, a 5xx, or a proxy error page.

    • "cancelled"

      FileUploadHandle.cancel was called before the upload finished.