Swift: upload data to server

The most challenging part of uploading data to the server by using Swift is the space between the texts:

Here is the solution: replace all empty spaces with “+” to solve the uploading and downloading problems as the server ignores “+” symbol.

Print Friendly