Module

Attachement

Members

Object.<Sequelize.models>

# inner constant models

Sequelize models

View Source api/interfaces/Attachement.js, line 12

Methods

# async inner add(parentKey, newAttachements, transactionopt) → {Promise.<APIResp>}

Add new attachements

Parameters:
Name Type Attributes Description
parentKey Object

Key name/value of the parent primary key

newAttachements MulterFile | Array.<MulterFile>
transaction Transaction <optional>

View Source api/interfaces/Attachement.js, line 66

APIError
Promise.<APIResp>

Type Definitions

Object

# MulterFile

Properties:
Name Type Description
fieldname string

Field name specified in the form.

originalname string

Name of the file on the user's computer.

encoding string

Encoding type of the file.

mimetype number

Mime type of the file.

size string

Size of the file in bytes.

destination string

The folder to which the file has been saved.

filename string

The name of the file within the destination.

path string

The full path to the uploaded file.

buffer string

A Buffer of the entire file.

See:

View Source api/interfaces/Attachement.js, line 30

Object

# NewAttachement

Properties:
Name Type Description
ressource_id number

This ID must be named after the relation between the attachement and its parent.

name string
path string
size number
type string

View Source api/interfaces/Attachement.js, line 20