FTPUploadFile only works 2nd try

Frank D. Engel, Jr. fde101 at fjrhome.net
Fri Sep 17 13:49:11 EDT 2004


Where your code reads:

> if the result contains "error" then
>      put "Drats!   It didn't connect.   We'll try a second time... :" 
> & error


Shouldn't that be:

   put "....." & the result


???


On Sep 17, 2004, at 1:07 PM, RGould8 at aol.com wrote:

> 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?
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
-----------------------------------------------------------
Frank D. Engel, Jr.  <fde101 at fjrhome.net>



___________________________________________________________
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com



More information about the use-livecode mailing list