Skip to content
This repository has been archived by the owner on Jul 24, 2020. It is now read-only.

Web - picUploadTask is an uncaught promise/ not a function #33

Closed
tomtom215 opened this issue Aug 23, 2016 · 3 comments
Closed

Web - picUploadTask is an uncaught promise/ not a function #33

tomtom215 opened this issue Aug 23, 2016 · 3 comments
Assignees

Comments

@tomtom215
Copy link

tomtom215 commented Aug 23, 2016

in Firebase.js line 430

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

nicolasgarnier commented Aug 23, 2016

@tomtom215 I'm sorry I don't see what the issue is. Could you explain a bit more? 😃

@nicolasgarnier nicolasgarnier self-assigned this Aug 23, 2016
@tomtom215
Copy link
Author

I believe this had to do with being logged in to my Firebase-cli tools and referencing another project and there was something hung up there (as odd as that sounds).

I just downloaded the zip again, created a new Firebase app and set up the web project and all seems well! Thanks for your quick response!

@nicolasgarnier
Copy link
Contributor

Cool, I'm glad things worked out for you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants