title: How to upload an image to Firebase? Is it possible?
body: <p>I'm tring to upload an image to firebase cloud function. I think that I have read the whole of post about this and I can't get a solution.</p>
  
  <p>I have used "formidable.IncomingForm()", "multer" and "busboy" but noone is working.</p>
  
  <p>I understood that I had to use busboy.  I would like to share my last code with this library.</p>
  
  <pre><code>app.post('/',function(req,res) {
      var busboy = new Busboy({headers: req.headers});
      var files = 0, finished = false;
      busboy.on('file', function (fieldname, file, filename, encoding, mimetype) {
          console.log('File [' + fieldname + ']: filename: ' + filename);
          console.log("Uploading: " + filename);
          ++files;
        //  const temp = os.tmpdir();
        //  var path = temp.writeFileSync(file);
         let path=os.tmpdir()+"/"+filename
         let p=fs.writeFileSync(path,file)
         console.log(path)
          var fstream = fs.createWriteStream(path);
          fstream.on('finish', function () {
              if (--files === 0) {
                  // Upload a local file to a new file to be created in your bucket.
                  bucket.upload(path,function (err, file) {
  
                      if (!err) {
                          console.log("Uploaded: " + path);
                          res.json({
                              uploaded: true,
                              created_at: new Date().getTime(),
                              filename: filename,
                              mimeType: mimetype
                          });
                      }else{
                          console.error("err: " + err);
                          var error = new ErrorResponse(400);
                          error.errors+=err;
                          res.json(error);
                      }
                  });
              }
          });
          file.pipe(fstream);
      })
      req.pipe(busboy);
  })
  </code></pre>
  
  <p>This code upload files successfully in my local server but not in Firebase Cloud functions.</p>
  
  <p>My post request is:
  <a href="https://i.stack.imgur.com/PxkSd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PxkSd.png" alt="My post request is:"></a></p>
  
  <p>The problem is that the function "busboy.on('file'..." is never execute</p>