Upload Action

    Used to upload a file to the FE node, which can be used to load the file later. Currently only supports uploading files up to 100MB.

    Path parameters

    • Namespace, currently only supports default_cluster

    • <tbl>

      Specify table

    Query parameters

    • Optional, specify the column separator of the file. Default is

    • preview

      Optional, if set to true, up to 10 rows of data rows split according to column_separator will be displayed in the returned result.

    Request body

    The content of the file to be uploaded, the Content-type is multipart/form-data

    Load the uploaded file

    Request

    Path parameters

    • Namespace, currently only supports default_cluster

    • <db>

    • <tbl>

      Specify table

    Query parameters

    • file_id

      Specify the load file id, which is returned by the API that uploads the file.

    The options in the header are the same as those in the header in the Stream Load request.

    Request body

    Response

    Example