UploadedImage

UploadedImage

Uploaded image handler.

Constructor

# new UploadedImage(upload_data)

Constructs the uploaded image handler.
Parameters:
Name Type Description
upload_data object The json object you get after uploading the image.

Methods

# deleteImage()

Running this method will delete the image.

# fetchMeta() → {Promise.<(ImageMeta|Error)>}

Fetches the meta data of a image.
Returns:
Promise, returns the meta data of the uploaded image.
Type
Promise.<(ImageMeta|Error)>

# getDelUrl() → {String}

Get the delete URL of the image.
Returns:
Delete URL of the uploaded image.
Type
String

# getThumb() → {String}

Get the thumbnail URL of the image.
Returns:
The thumbnail URL of the image.
Type
String

# getUrl() → {String}

Get the URL of the image.
Returns:
Url of the uploaded image.
Type
String