hello, everything is working fine until i add extra condition in conditions array i.e code is
can you help me out to write condition to only upload image.
Hi @tony-stark-jr,
Welcome to Google Cloud Community!
Please check the following documentation if the query string parameters are properly configured since the error mentioned that it is missing Content-Type
:
Please be advised that if you don't specify a Content-Type
, Cloud Storage defaults to application/octet-stream
when it serves the content.
With regards to error 400 and you're performing resumable uploads, Content-Range
header is invalid. Your current resumable upload is no longer active and you must start a new resumable upload. Please refer to this link on troubleshooting Cloud Storage.
Hope this helps.