Filter inputs
Name | Type | Description | Mandatory | Available from version | Comment |
---|---|---|---|---|---|
Owner | Guid | The owner of the file in the system | true | A file will be accessible (Customer Front > Forms) for all end-users when adding a file with guid empty as owner and permission All. | |
FileName | string | The name of the file in the BFS | |||
ContentType | string | The content type of the uploaded fil (eg "application/pdf") | |||
Permission | Enum | FilePermission.All / FilePermission.AdminOnly / FilePermission.AdminPartner | |||
fileBytes | byte[] | Array of bytes containing the file | |||
CustomFields | CustomFields[] | CustomFields is an array of CustomField objects. Each CustomField consists of two strings, FieldName and Value. There are no datatypes associated with these properties, they are just a way for api-users to add customized data to the object. | 2.28 |
Code examples
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
FileInfoUpload oFileInfo = new FileInfoUpload { ContentType = "application/pd", fileBytes = data, //array of bytes FileName = "test.pdf", Owner = new Guid("5b32b92-a7c4-4ce9-f5cb-451ab37faa12"), Permission = FilePermission.All }; |
...