Skip to main content



Upload Files to Firebase Storage with dropzone.js

Almost every file uploader I found on web are expecting url to where we want to upload file. If you are using firebase storage then you will find this awkward as you don't have any rest url where you have to upload file

Instead, file upload handled by firestore library firebase-storage.

After certain effort I found a way to use dropzone.js with firebase storage. Here is some snippet of code which you may find useful, If you are in the same situation as I am.

This both function are in same file

Dropzone configuration.. ( in index.js )
var myDropzone =new Dropzone("form#dropzone", { // Make the whole body a dropzone url:'/', addRemoveLinks:true, method:'put', chunking:true, forceChunking:true, autoQueue:false, autoProcessQueue:false }); myDropzone.autoDiscover =false; myDropzone.on("addedfile", function(file) { var rea…

Latest posts

Firebase - update a spacific fields of single element of object of array in firestore

mailgun forward incoming mail

Find count of day differance between two dates

Setup forward proxy in apache2