I'm trying to figure what's URL of Firebase Storage for dropzone.js URL which it requires before to setup.
My current storage in firebase is:
var pictureDir = storage.ref(`public_profile/${user.uid}/photos`);
And Dropzone.js options... there is a missing URL I had no idea how to add.
dropzoneOptions: {
url: ``,
thumbnailWidth: 150,
maxFilesize: 0.8,
addRemoveLinks: true,
headers: { "My-Awesome-Header": "header value" }
}
If I add this var to this URL but I get:
Failed to load gs://project33.appspot.com/public_profile/CWWFGRET4534/logo/product.png: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.
Any ideas?
The short answer is that Cloud Storage for Firebase doesn't support dropzone.js
. Dropzone requires a server-side implementation (which would live at that URL).
If you want the same client-side behavior, you could probably hack at dropzone to use the Storage put()
method instead of their built-in form POST
.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments