pCon.basket - Plugin Development
    Preparing search index...

    Interface UploadImageToEaiwsSessionOptions

    interface UploadImageToEaiwsSessionOptions {
        context: EaiwsContext;
        imageData: string | Blob | File;
        imageDataMimeType?: ImageMimeType;
        maxSize?: number;
        onProgress?: (pProgress: number | null, pAbortHandler: () => void) => void;
        progressTitle?: string;
        showProgress?: boolean;
    }

    Hierarchy

    Index
    context: EaiwsContext

    eaiws session context to use for upload

    imageData: string | Blob | File

    Image as file, url or data URI. If imageDataMimeType is undefined and the given url does not constain a file extension the image will be handled as a JPG.

    imageDataMimeType?: ImageMimeType

    Optional mimeType of the image data. If undefined uploadImageToEaiwsSession is trying to detect the mimeType.

    maxSize?: number

    maximum pixel size of the image (default: 1024)

    onProgress?: (pProgress: number | null, pAbortHandler: () => void) => void

    optional custom progress handler

    progressTitle?: string

    optional custom title for the upload progress

    showProgress?: boolean

    if false the progress will not be shown (default: true)