We are trying to upload files to GCS using signed urls. The client asks for a signed url to upload a file and our server sends a signed url to the client. The client then uploads the file using that signed url. This is working fine for cases where file size < 2MB. But the limit for the object size in GCS is 5TB.
Below is the code used to generate the signed url
blob = Blob.from_string(filepath, client=gcp_storage_client)
blob.generate_signed_url(version="v4", expiration=datetime.timedelta(minutes=5), method="POST")
We are getting the response "Metadata part is too large". But we are not adding any metadata to the file. Please check the screenshot from Postman below.
What am I doing wrong here? and how can I fix it?
