title: uploading image to google cloud storage from app (IOS or android)
body: <p>I am using react native, and want to upload image to gcp storage 
  I am not using any app engine.
  According to gcp documentation for node </p>
  
  <pre><code>const Storage = require('@google-cloud/storage');
  const storage = Storage({
    projectId: 'id',
    keyFilename: 'private-key'
  });
  
  const bucketName = 'buckt';
  
  // Uploads a local file to the bucket
  storage
    .bucket(bucketName)
    .upload('filename')
    .then(() =&gt; {
      console.log(`${filename} uploaded to ${bucketName}.`);
    })
    .catch(err =&gt; {
      console.error('ERROR:', err);
    });
  </code></pre>
  
  <p>To use this code in client, I need to pass private key which I don't want to do</p>
  
  <p>According to this blog post <a href="https://medium.com/google-cloud/uploading-resizing-and-serving-images-with-google-cloud-platform-ca9631a2c556" rel="nofollow noreferrer">https://medium.com/google-cloud/uploading-resizing-and-serving-images-with-google-cloud-platform-ca9631a2c556</a> , there is a get_serving_url() function in google app engine.</p>
  
  <p>I reckon for Google Push notifications, google provides each client token so that client directly communicates with server</p>
  
  <p>Is there any way where I can upload image directly from client?</p>