Hi all,
I have a problem uploading files with FTP. My code works perfectly from the simulator and upload the picture called “Icon-small.png” (12k), but when I transfer my app to iPhone4 (and iPad1) and I do run … indicates error uploading the file. Interestingly the file is uploaded, but the size is 0k (zero).
What am I doing wrong?
I have updated the latest corona and XCode version (20-oct-2012).
Corona SDK: 2012.935
XCode: 4.5.1
iPhone 4 : iOS 6
iPad1 : iOS 5.1.1
ftp = require("ftp")
connection = ftp.newConnection{
host = "ftp.dominio.com",
user = "userName",
password = "clave",
port = 21
}
function onError()
print("Error")
end
function onUploadSuccess()
print("Upload ok")
end
connection:upload{
localFile = "Icon-Small.png",
remoteFile = "/dominio.com/upload/Icon-Small.png",
onSuccess = onUploadSuccess,
onError = onError
}
can you help me? @peach can you?
@rycott
[import]uid: 121547 topic_id: 32147 reply_id: 332147[/import]
