Upload folder
Syntax
eueno.uploadFolder(input,[opts],metadata
)
[opts],metadata
)Example
Parameters
Name | Type | Required | Description |
---|---|---|---|
Input | Array Buffer | Yes | Buffer file data |
opts | Object | Yes | Initialization parameter |
metadata | Object | Yes | Info a file and project |
Properties
opts
Name | Type | Required | Description |
---|---|---|---|
projectKey | String | Yes | project key to authenticate client and eueno server |
key | Object | No | The keys in encrypting the file if the storage method is encryption. |
key
Name | Type | Required | Description |
---|---|---|---|
walletPublicKey | String | Yes | public key of the user used to encrypt the file encryption key |
fileEncryptionKey | String | No | Symmetric key used to encrypt files |
metadata: Information of the file and the project eueno
Name | Type | Required | Description |
---|---|---|---|
projectId | Int | Yes | Id project eueno |
pathLists | Array | Yes | List metadta |
pathLists: List of files in a folder
Name | Type | Required | Description |
---|---|---|---|
path | String | No | path storage on eueno, default root |
filename | String | Yes | Name of file |
contentLength | Int | Yes | Size of file |
contentType | String | Yes | Type of file eg: image/png |
method | String | Yes | Encrypted or Unencrypted Storage Method |
keepPath | Bool | No | To avoid duplicate names on eueno's mfs system, we will add a datetime field to the name of the file. |
Last updated