only post to firebase if uri is present