Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # STEP BY STEP GUIDE
- *This is a 2 step process. First you need to know how to upload your file onto your firebase store, and second you need to know how to access that file from your static page*
- ## PREREQUISITES:
- * You need to have a project created on firebase for your web app: If you don't know how to do that, look at the "Configuring Firebase For Vanilla Web Apps" gist, in my gists.
- * While you don't need your project to be configured on your app for this section, I would highly recommend it, since you're going to use it for pretty much anything else you want to do with firebase. If you want to learn how to configure it, look for the same gist listed in the step above.
- * You need to register your app to your firebase project. You'll find all this information in the same gist.
- ## Step 1 - Uploading your file unto firebase store
- - Go to your console
- - Select your target project
- - Go to storage
- - Create a new folder
- - Click on your new folder
- - Click on the "Upload a file" button
- ## Step 2 - Accessing your file from your web app
- - Go to the folder where you stored your files, and click on the file of your choice
- - In the file metadata on the right, click on the "File Location" section
- - Click on the "Download URL 1" url, and this will automatically copy it
- - Paste the URL anywhere you want the image to display
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement