Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I found that the Umbraco 7.15 version and the 7.13 version of this interface
/umbraco/backoffice/UmbracoApi/Entity/GetByIds?type=Media
return a different JSON structure
7.13 version as follows:
[{ "name": "test", "id": 1054, "udi": "umb://media/c0d41bef634045bfa26349b48df5cfe6", "icon": "icon-picture", "trashed": false, "key": "c0d41bef-6340-45bf-a263-49b48df5cfe6", "parentId": -1, "alias": null, "path": "-1,1054", "metaData": { "NodeObjectTypeId": "b796f64c-1f99-4ffb-b886-4bf4bc011a9c", "HasChildren": false, "ContentTypeAlias": "Image", "ContentTypeIcon": "icon-picture", "ContentTypeThumbnail": "icon-picture", "IsPublished": false, "IsDraft": false, "HasPendingChanges": false, "NodeUser": 0, "UniqueID": "c0d41bef-6340-45bf-a263-49b48df5cfe6", "Text": "test", "NodeObjectType": "b796f64c-1f99-4ffb-b886-4bf4bc011a9c", "Children": 0, "Alias": "Image", "Icon": "icon-picture", "Thumbnail": "icon-picture", "IsContainer": false, "ContentNodeId": 1054, "VersionId": "df476468-2ed1-45e3-b714-6ea6b1e62036", "umbracoFile": { "PropertyEditorAlias": "Umbraco.ImageCropper", "Value": { "src": "/PR1001/media/1001/test.png", "crops": [] } }, "umbracoWidth": { "PropertyEditorAlias": "Umbraco.NoEdit", "Value": "383" }, "umbracoHeight": { "PropertyEditorAlias": "Umbraco.NoEdit", "Value": "495" }, "umbracoBytes": { "PropertyEditorAlias": "Umbraco.NoEdit", "Value": "63934" }, "umbracoExtension": { "PropertyEditorAlias": "Umbraco.NoEdit", "Value": "png" } }]
however, 7.15 version as follows:
[{ "name": "test", "id": 1054, "udi": "umb://media/d9017c0c09a34ce59839d077b7c4c28f", "icon": "icon-picture", "trashed": false, "key": "d9017c0c-09a3-4ce5-9839-d077b7c4c28f", "parentId": -1, "alias": null, "path": "-1,1054", "metaData": { "NodeObjectTypeId": "b796f64c-1f99-4ffb-b886-4bf4bc011a9c", "HasChildren": false, "ContentTypeAlias": "Image", "ContentTypeIcon": "icon-picture", "ContentTypeThumbnail": "icon-picture", "IsPublished": false, "IsDraft": false, "HasPendingChanges": false, "NodeUser": 0, "UniqueID": "d9017c0c-09a3-4ce5-9839-d077b7c4c28f", "Text": "test", "NodeObjectType": "b796f64c-1f99-4ffb-b886-4bf4bc011a9c", "Children": 0, "Alias": "Image", "Icon": "icon-picture", "Thumbnail": "icon-picture", "IsContainer": false, "MediaPath": "/media/1001/test.png" }}]
Why there is such a difference, this works fine for using the local file system, but when using S3, the picture URL does not contain a bucket prefix, which causes the interface
umbraco/backoffice/UmbracoApi/Images/GetBigThumbnail?originalImagePath=%2Fmedia%2F6860%2Ftest.png
/media/6860/test.png (error)
/PR1001/media/6860/test.png (right)
to get the picture without a bucket prefix parameter,
This will cause the picture to not be displayed, is it due to the upgrade of Umbraco 7.15?
thanks.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Umbraco 7.15 S3 Image not display
I found that the Umbraco 7.15 version and the 7.13 version of this interface
/umbraco/backoffice/UmbracoApi/Entity/GetByIds?type=Media
return a different JSON structure
7.13 version as follows:
however, 7.15 version as follows:
Why there is such a difference, this works fine for using the local file system, but when using S3, the picture URL does not contain a bucket prefix, which causes the interface
umbraco/backoffice/UmbracoApi/Images/GetBigThumbnail?originalImagePath=%2Fmedia%2F6860%2Ftest.png
/media/6860/test.png (error)
/PR1001/media/6860/test.png (right)
to get the picture without a bucket prefix parameter,
This will cause the picture to not be displayed, is it due to the upgrade of Umbraco 7.15?
thanks.
is working on a reply...