Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Sending a file with spaces in the title causes network connection errors #61

Closed
abbeycode opened this issue Nov 7, 2014 · 0 comments
Closed

Comments

@abbeycode
Copy link
Contributor

Spaces cause bogus error messages, like:

Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo=0x6080000e5500 {NSUnderlyingError=0x60800024da70 "The request timed out.", NSErrorFailingURLStringKey=https://.s3.amazonaws.com/File%20With%20Spaces.zip, NSErrorFailingURLKey=https://.s3.amazonaws.com/File%20With%20Spaces.zip, NSLocalizedDescription=The request timed out.}

and

Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo=0x6080000ecd80 {NSUnderlyingError=0x608000059620 "The network connection was lost.", NSErrorFailingURLStringKey=https://.s3.amazonaws.com/File%20With%20Spaces.zip, NSErrorFailingURLKey=https://.s3.amazonaws.com/File%20With%20Spaces.zip, _kCFStreamErrorDomainKey=4, _kCFStreamErrorCodeKey=-4, NSLocalizedDescription=The network connection was lost.}

Replacing spaces in the destinationPath with "+" allows it to go through correctly. The resulting file shows up in the S3 console, with spaces intact.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant