Comments (3)
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.
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.
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)
- Problem with getDownloadUrl()
- iOS Crash Upon Open HOT 5
- File upload consistently failing HOT 2
- IOS: App Crashes after SignIn (In Home feeds) HOT 2
- App crashes after submit button pressed. HOT 3
- Couldn't resize bitmap HOT 4
- unable to cache image HOT 5
- [iOS] Crash: Post Sign-In HOT 1
- Generating thumbnails using cloud functions HOT 3
- Getting numerous errors after deploying site HOT 11
- I'm getting a an error for the feed on Web HOT 2
- Facebook profile picture now returning 403: URL signature expired HOT 4
- update to android friendlypix
- [Android] Unable to proceed after signing-in with a valid Google account. HOT 2
- App still crashes after submit button pressed HOT 3
- Project based on friendlypix
- Issue With The User Details Activity Screen. HOT 1
- PostsFragment$4.toggleLike(PostsFragment.java:188) HOT 1
- what is profile_id in design.md? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from friendlypix.