iphone - Writing file to secure server -


i'm trying write text file secure server .....

-(ibaction) startupload{     nslog(@"start upload");      nsstring *mystring = @"testtext";     nsurl *myurl = [nsurl urlwithstring:@"ftp://username:password@72.167.1.1/testfile.plist"];      nserror *error;      bool ok = [mystring writetourl:myurl atomically:no encoding:nsutf8stringencoding error:&error];      if (!ok) { // if not ok         nslog(@"error writing file @ %@, %@, %@",myurl,[error localizedfailurereason],[error localizeddescription]);     }  } 

... , error message ....

error writing file @ ftp://username:password@72.167.1.1/testfile.plist, (null), operation couldn’t completed. (cocoa error 518.)

all appreciated

i think ftp not supported nsurl,

take question: nsurl http:// works fine ftp:// not

also take one

upload photo arbitrary ftp iphone app


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

c# - how to write client side events functions for the combobox items -

ssh client with paramiko (python) -