sending file to server
upload photo w/lifecycle callbacks