Coder Social home page Coder Social logo

Comments (3)

nicolasgarnier avatar nicolasgarnier commented on July 3, 2024

Are you getting this with the latest code from the repo? There has been some non-backward compatible change where matadata.downloadURLs has been deprecated in favor of snapshot.ref.getDownloadURL().

If you are using old code I'd upgrade. If you just puled the code out of the repo can you give me the location of the error?

from friendlypix.

compojoom avatar compojoom commented on July 3, 2024

Hey @nicolasgarnier,
I just pulled the code from this repository yesterday & I use the samtstern-patch-1 branch. Last commit there is from April.

I've launched the site with https://www.gstatic.com/firebasejs/5.0.4/firebase.js? Is this the correct version I should be using?

Error is here:
Error while uploading new pic TypeError: "snapshot.metadata.downloadURLs is undefined"
picUploadTas khttp://localhost:5000/scripts-es5/firebase.js:436:13 firebase.js:440:6

As I said I debugged it here:

    var picUploadTask = picRef.put(pic, metadata).then(snapshot => {
      console.log('New pic uploaded. Size:', snapshot.totalBytes, 'bytes.');
      console.log(snapshot)
      var url = snapshot.metadata.downloadURLs[0];
      console.log('File available at', url);
      return url;
    }).catch(error => {
      console.error('Error while uploading new pic', error);
    });

and the snapshot is missing the downloadUrls. Problem is I also don't see a getDownloadURL() on the ref???

from friendlypix.

nicolasgarnier avatar nicolasgarnier commented on July 3, 2024

Oh I see, the web app is now in a separate repo here: https://github.com/firebase/friendlypix-web

Not sure what samtstern-patch-1 is for but the master branch here has no more code, we're only keeping this repo to have a place to hold the common architecture/design docs between iOS/Android/Web, https://github.com/firebase/friendlypix-web should work fine :)

from friendlypix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.