If you do not have an internet connection, photos/videos will be queued for background upload. When your phone regains an internet connection, the uploads will resume.