Class: aws

aws()

new aws()

Authentication API Controller

Author:
  • Calvin Ho
Source:

Methods

(static) remove() → {string}

removes s3 file

Parameters:
Name Type Description
req.url any

url of file to remove

Author:
  • Calvin Ho
Source:
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

Author:
  • Calvin Ho
Source:
Returns:

JSON object with url of s3 file

Type
json