Angulairefire 2 and ionic probleme

Hello i 'm in ionic+angulaifire project i need to upload users posts images all wotk fine but if the users dont have images and submit it wont work how to solve the probleme

This post was moved to a different board that fits your topic of discussion a bit better. This means you’ll get better engagement on your post, and it keeps our Community organized so users can more easily find information. As you’ll notice, your Topic is now in the Project Development Help and Advice board. No action is needed on your part; you can continue the conversation as normal here.