Upload file
Last updated
Last updated
Name | Type | Required | Description |
---|---|---|---|
Name | Type | Required | Description |
---|---|---|---|
Name | Type | Required | Description |
---|---|---|---|
Name | Type | Required | Description |
---|---|---|---|
Input
Buffer
Yes
Buffer file data
opts
Object
Yes
Initialization parameter
metadata
Object
Yes
Info a file and project
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.
walletPublicKey
String
Yes
public key of the user used to encrypt the file encryption key fileEncryptionKey
fileEncryptionKey
String
No
Symmetric key used to encrypt files
projectId
Int
Yes
Id project eueno
path
String
No
Path storage on eueno
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 ENCRYPT
or UNENCRYPTED
keepPath
Boolean
No
To avoid duplicate names on eueno's mfs system, we will add a datetime field to the name of the file.