views:

14

answers:

0

Hello, I am trying to upload files from my iPhone to my FTP. I have found two options: one is the S7FTPRequest and the second is SimpleFTPSample from Apple. With both of them I have the same problems. 1st problem was that uploading could not start, I think it was because of Passive mode that was disabled on my FTP. After adding line:

[self.networkStream setProperty:kCFBooleanFalse forKey:(id)kCFStreamPropertyFTPUsePassiveMode];

I manage to upload one and only one file. After this it is just hang up and thats all... After restarting app it allows me to upload one more file... I think the problem is in closing streams... Does anyone has the same problems?