When uploading an image to Google Cloud Storage using PHP createUploadUrl and option Content=type image/jpeg, I get an error logged as
"Invalid options supplied: Content-Type..."
This is the code:
$options = [ 'gs_bucket_name' => 'mybucket', 'Content-Type' => 'image/jpeg' ];
$upload_url = CloudStorageTools::createUploadUrl('/upload.php', $options);
The image is uploaded, but appears as binary/octet-stream files (GCS default). I have also tried mimeType and image/jpg. What am I doing wrong?