mangadex-full-api - v6.2.0
    Preparing search index...

    Class UploadSession

    This class represents an in-progress manga upload session including the uploaded pages.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    createdAt: Date

    When this upload session was started

    groups: Relationship<Group>[]

    An array of relationships to the groups involved with the chapter for this session

    id: string

    The MangaDex UUID of this upload session

    isCommitted: boolean

    Has this session been committed (pages published)

    isDeleted: boolean

    Has this session been deleted/aborted?

    isProcessed: boolean

    Has this session still been processed by MangaDex?

    A relationship to the manga this upload session is for

    An array of uploaded page image files

    updatedAt: Date

    When this upload session was last updated

    uploader: Relationship<User>

    A relationship to who started this upload session

    version: number

    The version of this session (incremented by updating data)

    Methods

    • Upload new page image files as blobs. The blobs should contain the binary image data, and although not necessary, it is recommended that the image MIME type is included as well. The resulting uploaded file data will be appended to this object's 'pages' property.

      Parameters

      • files: Blob[]

      Returns Promise<void>

    • Begin a new upload session for a specified manga. At least one group must be specified

      Parameters

      • manga: string | Manga
      • groups: string[] | Group[] = []
      • cancelCurrentSession: boolean = false

        Stop any current upload session before creating this one

      Returns Promise<UploadSession>

    • Start a new upload session for editing an existing chapter. The upload session will act the same as one for new chapter.

      Parameters

      • chapter: Chapter
      • cancelCurrentSession: boolean = false

        Stop any current upload session before creating this one

      Returns Promise<UploadSession>

    • Cancel the current user's current upload session if it exists

      Returns Promise<void>