postImg

suspend fun postImg(image: ProductImage, setAsDefault: Boolean = false): Result<Unit>

Try to upload image. If the upload fails enqueue the image for later uploading.

Parameters

image

the product image.

setAsDefault

if true, set the image as the product default (front) image.