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
Comments
Post a Comment