chrisdesilva / pickup

App for finding nearby basketball courts for pickup games
MIT License
14 stars 28 forks source link

Now you can upload images locally #44

Closed 0c0de closed 4 years ago

0c0de commented 4 years ago

I've added the upload images feature by using firebase storage, easy to setup and also easy to work with, If any problem occurs then contact me 😄

chrisdesilva commented 4 years ago

Testing locally and I got this error:

AddCourt.js:126 Uncaught TypeError: _fire__WEBPACK_IMPORTED_MODULE_3__.default.collection is not a function at Object.AddCourt.addCourt [as onClick] (AddCourt.js:126)

Any idea what's causing that?

chrisdesilva commented 4 years ago

I reverted back to the previous commit to try to get it sorted out. Wondering if it has something to do with connecting storage to the database? I saw that an image was successfully added to storage when I submitted but I wasn't able to actually add the court with the image to the collection of courts.

0c0de commented 4 years ago

Ok, now I'm working at my job but when I get home I'll take a look :+1:

0c0de commented 4 years ago

Did you manage to get the upload working?

chrisdesilva commented 4 years ago

I gave it a shot but no luck. I set up storage on my Firebase account. Was there another step I missed to get it all set up?

0c0de commented 4 years ago

I think I found a fix

chrisdesilva commented 4 years ago

Awesome. I'll test it out after work tonight. Thanks again for taking on this issue!

0c0de commented 4 years ago

Sorry for not being active the past week, I was busy :disappointed: