Media Replace

<sw-media-replace> extends <sw-media-upload>

ready
The sw-media-replace component extends the sw-media-upload component. It is used in cases of replacing items rather than uploading them.

Usage

<sw-media-replace itemToReplace="mediaItem" variant="regular">
</sw-media-replace>

Component properties

Property name Type Default
itemToReplace Object

Methods

Method name Parameters
getMediaEntityForUpload No parameters
cleanUpFailure mediaEntity message