Can’t upload images after introduction of ContentLicense relation
It’s currently not possible to upload images.
The dashboard uploads new images as multipart/form-data
. multipart/form-data
is necessary because we can’t upload files with JSON payloads.
If a new Image is uploaded the payload for the image looks something like this:
ppoi: 0.5x0.5
altText:
contentLicense.licenseId: 2
contentLicense.credits: Some Author
contentLicense.isUseExplicitlyGrantedByAuthor: true
image: (binary)
The POST
request to /api/v1/images/
with the payload from above fails with a 500 error in steering:
This only happens when creating new images. Updating images with multipart/form-data
works fine.