How to define url for firebase storage with Dropzone.js?

Ivan

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?

Mike McDonald

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to generate public url for a file in firebase storage?

From Dev

How to get URL from Firebase Storage getDownloadURL

From Dev

How to get URL from Firebase Storage getDownloadURL

From Dev

How to clear dropzone.js dropzone

From Dev

Firebase how to get Image Url from firebase storage?

From Dev

How to get the value of Firebase storage download url and store it in firebase storage....,

From Dev

Firebase Storage: How to store image url as an object property?

From Dev

Firebase Storage - URL for image services

From Dev

Firebase Storage Url loading in a browser

From Dev

Firebase storage download URL format

From Dev

How to define a locale relative to the url in kraken.js?

From Dev

How to add the URL of an image already uploaded, to Dropzone?

From Dev

How to use Firebase Storage?

From Dev

How to get the Dropzone.js return value?

From Dev

how to set upload button in dropzone.js

From Dev

How to disable clickable the form with Dropzone.js?

From Dev

How to change the default text in dropzone.js?

From Dev

How to change the default text in dropzone.js?

From Dev

How to use dropzone JS for some button on the page?

From Dev

How to define "interface" in js

From Dev

How to define separate URL for assets (CSS, JS, Etc. ) like base_url(); in Codeigniter?

From Dev

Upload image from URL to Firebase Storage

From Dev

Upload Facebook image URL to Firebase Storage

From Dev

flutter firebase storage issue with image url

From Dev

Upload Facebook image URL to Firebase Storage

From Dev

Getting Download URL for Firebase Storage Files

From Dev

How to create a folder in Firebase Storage?

From Dev

How to move files with firebase storage?

From Dev

How to define a URL in C#

Related Related

HotTag

Archive