gowalla/AFNetworking — Issue #98: File upload doesn't use file name
Author: zachwaugh
Created: 2011-11-01 18:57:48+00:00
State: open

When uploading a file with `- (void)appendPartWithFileData:(NSData *)data mimeType:(NSString *)mimeType name:(NSString *)name`, it replaces the actual name of the file with a name based on the current time and mime type

NSString *fileName = [[NSString stringWithFormat:@"%@-%d", name, [[NSDate date] hash]] stringByAppendingPathExtension:[mimeType lastPathComponent]];

I can see the benefit of this on iOS, when uploading something like a photo that might not have a real file name, but in general, I would want the actual file name to be sent with the upload. Also, it be really nice to have mime type automatically detected as well.