Toggle navigation
Toggle navigation
This project
Loading...
Sign in
iOS
/
asi-http-request
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Ben Copsey
2009-04-05 00:50:35 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
eef8619c37a83eed2b428e88c3df0c35dd1fe054
eef8619c
1 parent
78386e3e
Clean up for release
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
iPhone Sample/UploadViewController.m
iPhone.xcodeproj/project.pbxproj
iPhone Sample/UploadViewController.m
View file @
eef8619
...
...
@@ -33,12 +33,12 @@
//Create a 256KB file
NSData
*
data
=
[[[
NSMutableData
alloc
]
initWithLength
:
256
*
1024
]
autorelease
];
NSString
*
path
=
[[
[[
NSBundle
mainBundle
]
bundlePath
]
stringByDeletingLastPathComponent
]
stringByAppendingPathComponent
:
@"file"
];
NSString
*
path
=
[[
NSHomeDirectory
()
stringByAppendingPathComponent
:
@"Documents"
]
stringByAppendingPathComponent
:
@"file"
];
[
data
writeToFile
:
path
atomically
:
NO
];
//Add the file 8 times to the request, for a total request size around
4
MB
//Add the file 8 times to the request, for a total request size around
2
MB
int
i
;
for
(
i
=
0
;
i
<
16
;
i
++
)
{
for
(
i
=
0
;
i
<
8
;
i
++
)
{
[
request
setFile
:
path
forKey
:[
NSString
stringWithFormat
:
@"file-%hi"
,
i
]];
}
...
...
iPhone.xcodeproj/project.pbxproj
View file @
eef8619
This diff was suppressed by a .gitattributes entry.
Please
register
or
login
to post a comment