photoUpload ios and server