FileInfoUpload
Filter inputs
Name | Type | Description | Mandatory | Available from version | Comment |
---|---|---|---|---|---|
Owner | Guid | The object that is the owner of the file in the system. If you enter the BrickId of a Task for example you will see the file when you open the task | 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 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
C# example
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
};
Blog Posts
Terms of License
Change Policy
© 2009 - 2024 Huddlestock Technologies AB All rights reserved