uploadProductPhoto

Tải ảnh sản phẩm lên

api.uploadProductPhoto(payload)

Parameters

  • payload UploadProductPhotoPayload

Return

Promise<UploadProductPhotoResponse>

Types

export type UploadProductPhotoPayload = {
    file: AttachmentSource;
};

export type UploadProductPhotoResponse = {
    normalUrl: string;
    photoId: string;
    finished: number;
    hdUrl: string;
    thumbUrl: string;
    clientFileId: number;
    chunkId: number;
};

Examples

Last updated