RESTful API Tutorial: How to Upload Files to a Server
Uploading files might not be one of the most common things when dealing with web services. However, it can be proved to be a tedious task to perform when it's time to send files to a server. In the implementation steps that follow we will try to break things down and shed light to the key points and the details of the uploading process. Before we get there though, it's necessary to have a quick discussion about some ground knowledge that we all should have on this topic.
If you're building an iOS app in Swift and need to upload files to servers, this tutorial is written for you.
You can continue to read the full tutorial here.