Kentico upload a file using the API to a Page Type's File field

时间:2018-07-24 10:12:21

标签: kentico

I have a page type (let's call it MyPageType) with a field PreviewImage that is of data type File.

I am trying to use the Kentico APIs to upload files from the server to that PreviewImage field on the MyPageType page type. From what I can see it seems that I have to upload the file somewhere and then the uploaded file will have a GUID that I can use for the PreviewImage field.

1 个答案:

答案 0 :(得分:0)

https://docs.kentico.com/api11/content-management/attachments#Attachments-Insertingattachmentsintopagefields

这是您的文档中的API示例,用于在页面类型字段中插入附件。