I’m currently using the ASIHTTPREQUEST library to upload files to a server. However, I’m having a difficult time figuring out how to upload a folder instead of individual files. To upload files, I’m using the following code:
ASIFormDataRequest *request = [[[ASIFormDataRequest alloc] initWithURL:[NSURL URLWithString:@"http://www.myurl.com"]] autorelease];
[request setFile:filePath forKey:@"uploadedfile"];
[networkQueue addOperation:request];
[networkQueue go];
Is there a way to upload an actual folder using this library, or is there an alternative method outside the scope of the ASI libraries?
Thanks.
You have to send each file independently. That is just the nature of HTTP.