the code that works perfectly on windows no problem. but I spent 2 days trying to fathom why it didn't work with the android tablet - RTFM (Read the Fine Manual). Turns out the libURLFTPfileupload I was using
doesnt work with Mobile , so ....
Took a few minutes to recode the routine using the URL syntax but it was copying 0 bytes under windows. Turns out I needed to close the database first and the result is a perfectly working program under windows.
But when I build an Android standalone the system does not get to the line (answer "2" ) after the put URL statement. No error is given , nothing.
I have selected the necessary libraries to be loaded and what to allow in the standalone settings. The file is only 26k in size. The path has to be correct because the first answer statement reads the correct data and the size in both environments.
This by the way is livecode 6.
Code: Select all
constant FTPUSER = "ftpacc@xxx.co.uk"
constant FTPPASS = "xxxx"
constant FTPHOST "blahblah"
global gDataPath
on mouseUp
put URL ("binfile:" & lcFromPath) into lcFiledata
answer "1" && the result && the length of lcFileData
put lcFileData into url ("ftp://"& FTPUSER &":"& FTPPASS &"@"& FTPHOST & lcStamp & "circuits.sqlite")
put the result into lcResult
answer "2" && the result && the length of lcFileData
if lcResult is not empty then
answer "Update Failed:" && lcResult
else
answer "Upload Success"
end if
end mouseUp