Shopee SDK API Reference - v1.11.0
    Preparing search index...

    Interface UploadImageParams

    Parameters for uploading image to MediaSpace

    interface UploadImageParams {
        image?: File | Blob | Buffer<ArrayBufferLike>;
        ratio?: "1:1" | "3:4";
        scene?: "normal" | "desc";
    }
    Index

    Properties

    Properties

    image?: File | Blob | Buffer<ArrayBufferLike>

    Image files. Max 10.0 MB each. Image format accepted: JPG, JPEG, PNG. Image number should be less than 9. Note: This is handled as multipart/form-data in the actual request

    ratio?: "1:1" | "3:4"

    Image aspect ratio. Only applicable to whitelisted sellers. Supported values: "1:1" (default), "3:4"

    scene?: "normal" | "desc"

    The scene where the picture is used. Default is 'normal'

    • normal: Process the image as a square image (recommended for item images)
    • desc: Do not process the image (recommended for extend_description images)