Tiberiu Ichim
Tiberiu Ichim
ObjectWidget should be made defaults-aware.
The block transformers were born out of this idea: when creating a new page with an image block, don't immediately upload the image, but send it along with the rest...
The attachments idea has been partially implemented here https://github.com/eea/eea.restapi/tree/master/src/eea/restapi/attachments Note, this is not related to the above coment. It's a separate thing, related to the https://github.com/plone/volto/issues/1561
@cekk One other thing is important to document, the prefix path /foo corresponds to the Plone root, not a /foo subfolder in Plone.
Or maybe completely rewrite the component as a function :)
@jenkins-plone-org please run jobs
https://github.com/plone/plone.restapi/blob/02421afe76b53414ee569bb42077248b45d6e8e8/src/plone/restapi/services/content/utils.py#L37
``` curl 'http://localhost:55001/plone/' \ -H 'Proxy-Connection: keep-alive' \ -H 'sec-ch-ua: "Chromium";v="91", " Not;A Brand";v="99"' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTYyNzk0NTkxNiwiZnVsbG5hbWUiOm51bGx9.8MQGXL9fHASLGbFBaHYkHji6pFiQZcMLo5Ro5wdB6Hs' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'User-Agent:...
I figured it out... my custom block was rewriting the URL location and erasing the `?type=Document` from the query.
This would be a nice addition to the ObjectWidget, but it needs to be framed as an ObjectWidget configuration option, rather then something related to the schema.