我正在尝试在 Sitefinity 10.1.6523.0 中为已由另一个应用程序存储在 Amazon S3 中的图像创建一个条目。将 Postman 和http://local.mycompany.com/api/default/images 与请求一起使用...
{
"PublicationDate":"2017-04-26T09:02:51Z",
"ExpirationDate":null,
"Title":"Summer Day",
"Description":"Summer day description",
"Ordinal":26,
"UrlName":"summer-day",
"Author":"Mr Smith",
"AlternativeText":"a summer day",
"FolderId":null,
"ParentId": "4e7e106a-71c7-453d-9fdf-d04c208d473f",
"Url": "https://s3-eu-west-1.amazonaws.com/test.uat.images.mycompany/images/default-source/test-library/cloudfront-test-image.png?sfvrsn=fec7b25a_2",
"ThumbnailUrl": "https://s3-eu-west-1.amazonaws.com/test.uat.images.mycompany/images/default-source/test-library/cloudfront-test-image.tmb-thumbnail.png?sfvrsn=fec7b25a_1"
}
这给了我错误
"innererror": {
"message": "Image objects cannot be created without uploading the image.",
"type": "System.InvalidOperationException",
但我不想上传图像,因为它已经存在了!我是否遗漏了请求中的某些内容,提出了错误的请求??
我只想让图像出现在 Sitefinity 中,以便可以找到和使用它。
任何线索将不胜感激谢谢!