Probably already know this but uploadImage is currently returning a static response in iOS regardless of success/error.
NSArray *keys = [NSArray arrayWithObjects:@"result", @"error", nil];
NSArray *objects = [NSArray arrayWithObjects:@"success", @"", nil];
NSDictionary *dictionary = [NSDictionary dictionaryWithObjects:objects
forKeys:keys];
resolve(dictionary);