FTPUploadFile only works 2nd try
RGould8 at aol.com
RGould8 at aol.com
Fri Sep 17 13:07:22 EDT 2004
I'm having a rough time with the "libURLFTPUploadFile" command in Rev 2.5.
It seems that the FIRST time I attempt to upload a file via
libURLFTPUploadFile, it fails. From them on out, however it succeeds without a problem:
libURLSetStatusCallback "myProgress",the long ID of button "Monitor"
libURLFTPUploadFile localfiletoupload, (gServerPath & tFileName)
if the result contains "error" then
put "Drats! It didn't connect. We'll try a second time... :" & error
unload URL (gServerPath & tFileName)
libURLSetStatusCallback "myProgress",the long ID of button "Monitor"
libURLFTPUploadFile localfiletoupload, (gServerPath & tFileName)
end if
The error message is just "error" the first time (not too descriptive). I'm
wondering - - the server is a bit sluggish. It it possible that I need to
be somehow "awakening" the connection before attempting the first
libURLFTPUpload process?
More information about the use-livecode
mailing list