How do you upload image to server?

Hey I am working on a chatting app and I want to save it's images to cloud so tell me how can I do this.

Can you tell me it's solution

Help us to help you. Show your relevant blocks, advise on which type of server you are using, and the method you are using to send and recieve the upload.