title: AFNetworking Error Domain=NSPOSIXErrorDomain Code=12 "The operation couldn’t be completed. Cannot allocate memory
body: <p>I'm sending a lot of image files via AfNetworking to a Rails server. On edge and sometimes 3G I get this error: Error Domain=NSPOSIXErrorDomain Code=12 "The operation couldn’t be completed. Cannot allocate memory".</p>
  
  <p>This is the code I'm using to send the files: <a href="https://gist.github.com/cc5482059ae3023bdf50" rel="nofollow">https://gist.github.com/cc5482059ae3023bdf50</a></p>
  
  <p>Is there a way to fix this?</p>
  
  <p>Online some people suggest that a workaround would be to stream the files. I haven't been able to find a tutorial about streaming multiple files using AFNetworking. How can I do this?</p>