Google Drive database backups fail with "Metadata part is too large."

During backup ploi creates an archive and uploads it via curl to /upload/drive/v3/files?supportsAllDrives=….

The request uses -F metadata=…;type=application/json and -F file=@…;type=application/gzip. The metadata field is only 104 bytes.

Looks like the problem is you don't add a uploadType=multipart to the request as described on the followind link - https://developers.google.com/workspace/drive/api/guides/manage-uploads?hl=ru

Manual request from the server with uploadType provided works fine.

Thanks

Google drive backup fail

1 total vote
Quick Actions
Activity
View recent activity and updates
Use arrow keys to navigate