title: Firebase storage: Image file types not showing after upload. How do I use the image?
body: <p>When I use an npm package like google-cloud or multer-gcs to upload a file to firebase storage bucket (that uses google cloud storage under the hood..) the file gets uploaded. However, the file does not show and image type(MIME). Also, how do I use the image in my <em>node.js</em> application?</p>
  
  <p><strong>Here is the code to upload image to firebase bucket. Used multer to handle file upload..</strong> </p>
  
  <pre><code>var path = require('path');
  var multer = require('multer');
  var gcs = require( 'multer-gcs' );
  
  var storage = gcs({
      filename    : function( req, file, cb ) {
          cb( null, file.fieldname + '-' + Date.now() + path.extname(file.originalname).toLowerCase());
      },
      bucket      : 'p****n-bcXX3.appspot.com', // Required : bucket name to upload 
      projectId   : 'p****n-bcXX3', // Required : Google project ID 
      keyFilename: './p****n-5cbc725XXXXd.json', // Required : JSON credentials file for Google Cloud Storage 
      acl : 'publicread' // Optional : Defaults to private 
  });
  </code></pre>
  
  <p><strong>In my routes:</strong></p>
  
  <pre><code>router.post('/food/create', [authChecker, gcsUpload.single('food_image')], function(req, res, next) {
      Controllers.create_food(req, res);
  });
  </code></pre>
  
  <p>When I upload file directly to the bucket, type shows clearly. What's the catch here?
  <a href="https://i.stack.imgur.com/AbiBE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AbiBE.png" alt="enter image description here"></a></p>