Wrox Programmer Forums
|
BOOK: Professional XMPP Programming with JavaScript and jQuery
This is the forum to discuss the Wrox book Professional XMPP Programming with JavaScript and jQuery by Jack Moffitt; ISBN: 978-0-470-54071-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional XMPP Programming with JavaScript and jQuery section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 17th, 2015, 06:58 AM
Registered User
 
Join Date: Feb 2015
Posts: 3
Thanks: 4
Thanked 0 Times in 0 Posts
Smile file transfer

hi i need a code for file transfer

i wrote the code like this

Server.connection.si_filetransfer.send(
/* jshint +W106 */
data.to,
sid,
data.filename,
data.file.size,
data.file.type,
function(err) {
if (err) {
return console.log(err) //the error is coming here
}
Server.connection.ibb.open(cn(data.to), sid, Cryptocat.otr.chunkSize, function(err) {
if (err) {
return console.log(err)
}


the error is coming like that

"Error: [object Element]
at Object.Strophe.addConnectionPlugin._fail (http://127.0.0.1:58889/http-services...sfer.js:107:10)
at Object.eval [as handler] (http://127.0.0.1:58889/http-services...min.js:2:19333)
at Object.f.Handler.run (http://127.0.0.1:58889/http-services...min.js:2:15804)
at eval (http://127.0.0.1:58889/http-services...min.js:2:22417)
at Object.f.forEachChild (http://127.0.0.1:58889/http-services....min.js:2:8457)
at Object.f.Connection._dataRecv (http://127.0.0.1:58889/http-services...min.js:2:22250)
at Object.Strophe.Bosh._onRequestStateChange (http://127.0.0.1:58889/http-services/emulator-webserver/ripple/userapp//C/Users/Administrator/AppData/Local/XDK/xdk-scratchdir/2b05c0c1-bf27-465a-9ddb-da90dcdb5336/platforms/ios/www/Js/strophe.min.js:3:6555)"

can any one tell tell me waht is the problem in my code

i am using local server only





Similar Threads
Thread Thread Starter Forum Replies Last Post
file transfer using servlets [email protected] Servlets 2 February 14th, 2012 08:15 AM
File Transfer Swati Chari Beginning VB 6 1 March 17th, 2008 08:07 AM
File transfer between servers. vskalyan ASP.NET 2.0 Professional 1 September 12th, 2007 08:25 PM
Which is better for file transfer aliirfan84 .NET Web Services 1 April 12th, 2007 09:20 AM
File Transfer PT C# 1 October 24th, 2005 02:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.