title: How can I upload a file from AngularJS application to Firebase Hosting
body: <p>I am using Firebase Hosting to host my AngularJS application. I am using ng-file-upload to grab the user-uploaded image from a form I already have in my application. I want to store the user-uploaded image in a folder on my Firebase Hosting. I cannot use Firebase Storage because I need a pre-determined, direct link to the image resource in various parts of my platform. I thought that maybe I could use Firebase Functions to upload the file and store it in my Firebase Hosting. I keep running into cross-origin errors. </p>
  
  <p>Could someone explain how to structure the Firebase Function so I can upload the image to my Firebase Hosting? From what I understand, the Firebase Function is not hosted at the same location as the rest of the Firebase Hosting content, but I am not sure if this makes a difference.</p>