I have a file that needed to be uploaded to a server and I have been told to separate the file into multiple chunks before uploading. So here is the question:
1) I have converted the file into "Data" type (bytes). How do I split it into chunks of 1MB each?
2) After splitting, how do I upload it using Alamofire? if not possible using Alamofire, pls recommend how do I do it.
I'm using swift 3 and Code 8.3. Any help is much appreciated.