ftp with iOS...
Posted: Wed Feb 23, 2011 4:45 pm
Hi all,
i've got a problem with this code (i mainly use an tutorial around), which work on "Run" mode, but not in the iphone simulator...
i thought ftp was supported on the last version, for iOS ? What am i doing wrong ?
constant FTPHOST = "host.com"
constant FTPUSER = "user@user.com"
constant FTPPASS = "mypassword"
on mouseUp
# Start by getting the file to upload
local tFileForUpload, tFileName
# Get the name of the file for upload
set the itemdel to "/"
put "/Users/xxxx/myfile.txt" into tFileForUpload
put "myfile.txt" into tFileName
put empty into field 1
# Connect the start the upload
local tDestination
put "ftp://" & FTPUSER & ":" & FTPPASS & "@" & "host.com/" & tFileName into tDestination
libURLftpUploadFile tFileForUpload, tDestination, "uploadComplete"
end mouseUp
on uploadComplete pURL, pStatus
put "Status Update:" && pStatus && return after field 1
end uploadComplete
Thanks for help
Chris
i've got a problem with this code (i mainly use an tutorial around), which work on "Run" mode, but not in the iphone simulator...
i thought ftp was supported on the last version, for iOS ? What am i doing wrong ?
constant FTPHOST = "host.com"
constant FTPUSER = "user@user.com"
constant FTPPASS = "mypassword"
on mouseUp
# Start by getting the file to upload
local tFileForUpload, tFileName
# Get the name of the file for upload
set the itemdel to "/"
put "/Users/xxxx/myfile.txt" into tFileForUpload
put "myfile.txt" into tFileName
put empty into field 1
# Connect the start the upload
local tDestination
put "ftp://" & FTPUSER & ":" & FTPPASS & "@" & "host.com/" & tFileName into tDestination
libURLftpUploadFile tFileForUpload, tDestination, "uploadComplete"
end mouseUp
on uploadComplete pURL, pStatus
put "Status Update:" && pStatus && return after field 1
end uploadComplete
Thanks for help
Chris