[DOCU-2430] How to add an asset with REST tutorial is incomplete Created: 12/Apr/22 Updated: 04/Oct/22 Resolved: 16/Sep/22 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Medium |
| Reporter: | Richard Gange | Assignee: | Martin DrĂ¡pela |
| Resolution: | Done | Votes: | 2 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||
| Issue Links: |
|
||||||||||||||||
| Template: |
|
||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||||||||||
| Date of First Response: | |||||||||||||||||
| Description |
|
This tutorial https://docs.magnolia-cms.com/product-docs/6.2/Developing/Development-how-tos/How-to-add-an-asset-with-REST.html doesn't work completely because you need to be sure that when an asset is uploaded the size of that asset needs to be written to the jcr:content subnode. <sv:property sv:name="size" sv:type="Long"> <sv:value>11380</sv:value> </sv:property> Without the size the asset cannot be used correctly. Reproduce Notes Also the width and height should be sent as well to have a complete asset with all metadata. Otherwise it will have the asset as 1x1. |