title: Split Data in chunks and upload to server
body: <p>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:</p>
  
  <p>1) I have converted the file into "Data" type (bytes). How do I split it into chunks of 1MB each?<br>
  2) After splitting, how do I upload it using Alamofire? if not possible using Alamofire, pls recommend how do I do it.</p>
  
  <p>I'm using swift 3 and Code 8.3. Any help is much appreciated.</p>