Showing
2 changed files
with
3 additions
and
3 deletions
@@ -33,12 +33,12 @@ | @@ -33,12 +33,12 @@ | ||
33 | 33 | ||
34 | //Create a 256KB file | 34 | //Create a 256KB file |
35 | NSData *data = [[[NSMutableData alloc] initWithLength:256*1024] autorelease]; | 35 | NSData *data = [[[NSMutableData alloc] initWithLength:256*1024] autorelease]; |
36 | - NSString *path = [[[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent] stringByAppendingPathComponent:@"file"]; | 36 | + NSString *path = [[NSHomeDirectory() stringByAppendingPathComponent:@"Documents"] stringByAppendingPathComponent:@"file"]; |
37 | [data writeToFile:path atomically:NO]; | 37 | [data writeToFile:path atomically:NO]; |
38 | 38 | ||
39 | - //Add the file 8 times to the request, for a total request size around 4MB | 39 | + //Add the file 8 times to the request, for a total request size around 2MB |
40 | int i; | 40 | int i; |
41 | - for (i=0; i<16; i++) { | 41 | + for (i=0; i<8; i++) { |
42 | [request setFile:path forKey:[NSString stringWithFormat:@"file-%hi",i]]; | 42 | [request setFile:path forKey:[NSString stringWithFormat:@"file-%hi",i]]; |
43 | } | 43 | } |
44 | 44 |
This diff was suppressed by a .gitattributes entry.
-
Please register or login to post a comment