Computer Science, asked by munniappapatil6680, 10 months ago

How to upload file into firebase and also name of file using javascript?

Answers

Answered by mritunjayy
0
Firebase is a web and mobile application development platform that was developed in 2011 and later acquired by Google. Firebase provides developers with a wide gamut of services and tools - some of them for free. It offers storage facility and database facility that reduces the dependency on the server side and eliminates the problem of handling files to an absolute bare minimum. This wikiHow will help you set up an account and then use the API to upload files to Firebase storage.



1
Set up a Firebase account. Create a firebase account if you haven’t created one already. Head over to the console and add a new project. Fill in a good name and create a project.


2
Add Firebase to your web app. Alternatively, you can add Firebase to an Android app/ iOS app. If you’re using a javaScript framework to build your application, the steps should be fairly similar. Copy the configuration data into your HTML code and then you can use AJAX to push data into your Firebase storage.

3
Select the storage options. Firebase lets you define rules on how you want to store your files and set access controls on them. The files get stored in Google Cloud Storage.
Alternatively, you can store the references to files in Firebase and then use another cloud storage infrastructure for actually storing the files. For instance, you can integrate Firebase with Amazon S3 for file storage or Cloudinary for storing javascript images.
Similar questions