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. |
- Source:
Methods
# deleteImage()
Running this method will delete the image.
- Source:
# fetchMeta() → {Promise.<(ImageMeta|Error)>}
Fetches the meta data of a image.
- Source:
Returns:
Promise, returns the meta data of the uploaded image.
- Type
- Promise.<(ImageMeta|Error)>
# getDelUrl() → {String}
Get the delete URL of the image.
- Source:
Returns:
Delete URL of the uploaded image.
- Type
- String
# getThumb() → {String}
Get the thumbnail URL of the image.
- Source:
Returns:
The thumbnail URL of the image.
- Type
- String
# getUrl() → {String}
Get the URL of the image.
- Source:
Returns:
Url of the uploaded image.
- Type
- String