Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble uploading multiple files #22

Open
Pugintv opened this issue Jan 6, 2015 · 0 comments
Open

Trouble uploading multiple files #22

Pugintv opened this issue Jan 6, 2015 · 0 comments

Comments

@Pugintv
Copy link

Pugintv commented Jan 6, 2015

Im trying to upload multiple images from an array using this method,only the last image in the array is uploaded.

while(list<[images count]) {
NSMutableDictionary *dic = [images objectAtIndex:list];
NSString *displayimg = [dic objectForKey:@"image"];
NSString *Filename = [dic objectForKey:@"Filename"];
NSString *path = [NSTemporaryDirectory() stringByAppendingPathComponent:[NSString stringWithFormat:@"%@",Filename]];
[imageData writeToFile:path atomically:YES];
[self.requestsManager addRequestForUploadFileAtLocalPath:path toRemotePath:Filename];
list++;
}
[self.requestsManager startProcessingRequests];

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

No branches or pull requests

1 participant