Quantcast
Viewing all articles
Browse latest Browse all 8068

Getting issue while upload file through ftp (Black Raccoon ios module)

Hello,

I have created a ios mobile module from Black Raccoon API to upload file on ftp.

I created a demo code from this API and its working fine(Actually awesome). But some how it shows me error while uploading a video file on server.

This is the error : "Stream timed out with no response from server."

At module side code :

self.uploadData = [[NSData alloc] initWithContentsOfFile:finalPath]; self.ftpRequest = [[BRRequestUpload alloc] initWithDelegate:self]; self.ftpRequest.hostname = strHostName; self.ftpRequest.username = strUserName; self.ftpRequest.password = strPassword; NSString *strHostPath; if ([strType isEqualToString:@"Video"]) { strHostPath = [[NSString alloc] initWithFormat:@"/ws/video/%@",strLPC]; }else{ strHostPath = [[NSString alloc] initWithFormat:@"/ws/audio/%@",strLPC]; } self.ftpRequest.path = strHostPath; [self.ftpRequest start];

Same code working good for ios. I tried to call " [self.ftpRequest start];" with main thread but didnt work for titanium module.

TItanium code:

var moduleObj = require('com.mobile.SFSFTPUpload'); moduleObj.UploadVideoOnServer({type:'Video', hostname:'***', username:'**', password:'**', path:videoDirectory.nativePath}); moduleObj.addEventListener('complete', function(e){ if (e.success == 'true') { alert('IOS Video Uploaded'); } else{ alert('IOS Video failed'); }; });

Check this and try to help.

Thank you in advance.


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>