When uploading chunks to R2, the upload state is stored within JWT token stored in the custom metadata field of R2 object. At about 37 chunks, the length of JWT token exceeds 8k limit. This PR fixes this by storing JWT in the object body instead of metadata.
When uploading chunks to R2, the upload state is stored within JWT token stored in the custom metadata field of R2 object. At about 37 chunks, the length of JWT token exceeds 8k limit. This PR fixes this by storing JWT in the object body instead of metadata.