You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our implementation in the plone.restapi uses this header only for the portal type (@type), filename and file-content type but not for the plone object metadata like title or description.
if we create a new file, we have to perform three requests:
create a tus object with POST request
upload the file-data with a PATCH request
update the object metadata with a second PATCH request
If there is an error between the second and the third request, we have an uncompleted state. The plone obejct with the file is created but the metadata is not updated.
Suggested solution
We should extend the @tus-upload POST endpoint with the ability to receive and use object metadata.
Problem
The tus protocol provides a metadata header (https://tus.io/protocols/resumable-upload.html#upload-metadata) to upload metadata directly in the POST request.
Our implementation in the
plone.restapi
uses this header only for the portal type (@type
), filename and file-content type but not for the plone object metadata like title or description.if we create a new file, we have to perform three requests:
If there is an error between the second and the third request, we have an uncompleted state. The plone obejct with the file is created but the metadata is not updated.
Suggested solution
We should extend the
@tus-upload
POST endpoint with the ability to receive and use object metadata.The
metadata
property contains a base64 encoded json object of object metadata which should be updated after object creation.This issue is a follow-up issue of #6197
The text was updated successfully, but these errors were encountered: