# Google drive backup fail

**Project:** Ploi Core | **Votes:** 1
**URL:** https://roadmap.ploi.io/projects/4-ploi-core-requests/items/1666-google-drive-backup-fail

---

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
