not able to upload image to ftp server iOS swift using white raccoon , i tried even gold and all -
my code :-
func upload() {
let ouimage = uiimage.init(named: "insert-picture-icon.png") let ourimagedata = uiimagejpegrepresentation(ouimage!, 0.5) let uploadimage:wrrequestupload = wrrequestupload.init() uploadimage.delegate = self //for anonymous login leave username , password nil uploadimage.hostname = "52.41.4.214" uploadimage.username = "hotfuse" uploadimage.password = "rand0m@1" //we set our data uploadimage.sentdata = ourimagedata; //the path needs absolute ftp root folder. //full url ftp://xxx.xxx.xxx.xxx/space.jpg uploadimage.path = "/var/spce.jpg"; //we start request uploadimage.start() } i tried following error
error :-
[wrrequestlistdirectory stream:handleevent:] [line 905] unknown error!
Comments
Post a Comment