Methods
(static) remove() → {string}
removes s3 file
Parameters:
| Name | Type | Description |
|---|---|---|
req.url |
any | url of file to remove |
Returns:
String saying "File removal success"
- Type
- string
(static) upload() → {json}
uploads s3 file
Parameters:
| Name | Type | Description |
|---|---|---|
req.type |
any | type of file |
req.size |
any | size of file |
req._id |
any | file ID |
req.ext |
any | extension of file |
req.location |
any | location of file |
req.upload |
any | actual file data |
Returns:
JSON object with url of s3 file
- Type
- json