Members
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> |
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 |
path |
string
|
The full path to the uploaded file. |
buffer |
string
|
A |
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
|