Skip to content

Usage Instructions for SourceMap Fragment Upload Association Interface

Interfaces Involved

  1. Fragment Upload Event Initialization
  2. Upload a Single Fragment
  3. Cancel a Fragment Upload Event
  4. List Uploaded Fragments Corresponding to a Fragment Upload Event
  5. Merge Fragments to Generate File

Fragment Upload Interface Operation Steps

  1. [Fragment Upload Event Initialization] Initialize the fragment upload event and generate an event ID. Subsequent uploaded resources will be confirmed based on this ID.

  2. [Upload a Single Fragment] After slicing the SourceMap file, upload the single sliced file.

  3. [Cancel a Fragment Upload Event] Generally used in cases of slice upload errors or invalidation to delete a fragment that has been uploaded but not yet merged.

  4. [List Uploaded Fragments Corresponding to a Fragment Upload Event] Generally used during resuming interrupted uploads to obtain the list of fragments already uploaded for a particular upload event.

  5. [Merge Fragments to Generate File] Merge the fragment resources corresponding to a specific upload event into one file, ending the SourceMap fragment upload process. Internally, it will also trigger an unpack command to extract the SourceMap file to the corresponding resource catalog.

Single File Upload Process

Interfaces Involved

Upload Content of a Single File

Description

Used to upload the content of a single source file (a single source file extracted from the SourceMap).

Restrictions

The size of a single fragment file should be controlled within 10MB.

Feedback

Is this page helpful? ×