RE: problems with libURLftpUploadfile
Thanks Jim, This is really good advice which I'll try this evening. I does put me in a bit of a quandary though as my original script now works just by changing the variable name.(no idea why) This will probably fail at the worst moment knowing my luck so I'll try your suggestion and report back. Regards Kevin Stallibrass Jim Ault Wrote: My quick guess is that you are seeing the following... -1- libURLftpUploadFile "c:/myfile.txt", tURL ,"showStatus" sending a string to be used by libURLftpUploadFile -2- libURLftpUploadFile tFilepath, tURL ,"showStatus" allowing the function to 'evaluate' the string inside the variable This probably results in either empty if the file 'myfile.txt' does not exist the contents of myfile.txt read from the hard drive --- Try this variation put "c:/" into tFilepath put "myfile.txt" into tFilename --now concatenate to form the param at the time of sending libURLftpUploadFile ( tFilepath & tFilename), tURL ,"showStatus" This is confusing, I know, but when working with interpretive languages, these nuances are part of the landscape. They have their purpose since there are times when this is exactly what you want. Power programmers use this to their advantage when the literal path and filename is not known but discovered at runtime on different hard drives. Hope this works for you. Let us know. If not I will do a little digging into the libURLftpUploadFile in the library to see how Rev uses the first param. Jim Ault Las Vegas ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Problems with libURLftpUploadFile
Thanks Pierre I had preferred to use libURLftpUploadFile because I could set up a callback to work a scrollbar, do other things when pStatus is "downloaded" etc However, I seem to have got it working now. FYI, Put fld "contains FTP path" into tURL Put "c:/myfile.txt" into tFilepath libURLftpUploadFile tFilepath, tURL , "showStatus" does not work Put fld "contains FTP path" into tURL Put "c:/myfile.txt" into nURL libURLftpUploadFile nURL, tURL , "showStatus" works fine! Only difference is the name of the variable - wonder why? Thanks anyway Kevin Pierre wrote Try this working 24/7 there (Rev Ent 3.5, OS X 10.5.8) put url ("binfile:" & path_to_thefile_to_upload) into url (your_ftp_server_credenti...@address & the_remote_path & "/" & the_uploaded_file_name)) if url (FTP_Server_Address.../the_uploaded_file_name) is "" then beep Cheers, P. Le 4 sept. 09 ` 16:37, Kevin Stallibrass a icrit : > Hi all, > I have a problem where: > Put fld "contains FTP path" into tURL > libURLftpUploadFile "c:/myfile.txt", tURL ,"showStatus" > works fine but. > > Put fld "contains FTP path" into tURL > Put "c:/myfile.txt" into tFilepath > libURLftpUploadFile tFilepath, tURL , "showStatus" > Results in "c:/myfile.txt" instead of the correct data being written > into > the uploaded text file > > The same happens if I use libURLftpUpload > So, is it not possible to use 2 variables? Or am I missing something > Regards > Kevin Stallibrass ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Problems with libURLftpUploadFile
On Sep 9, 2009, at 3:01 AM, Kevin Stallibrass wrote: Hi all, Had no takers on this one so I thought I'd repost it I have a problem where: Put fld "contains FTP path" into tURL libURLftpUploadFile "c:/myfile.txt", tURL ,"showStatus" works fine but. Put fld "contains FTP path" into tURL Put "c:/myfile.txt" into tFilepath libURLftpUploadFile tFilepath, tURL , "showStatus" Results in "c:/myfile.txt" instead of the correct data being written into the uploaded text file The same happens if I use libURLftpUpload So, is it not possible to use 2 variables? Or am I missing something My quick guess is that you are seeing the following... -1- libURLftpUploadFile "c:/myfile.txt", tURL ,"showStatus" sending a string to be used by libURLftpUploadFile -2- libURLftpUploadFile tFilepath, tURL ,"showStatus" allowing the function to 'evaluate' the string inside the variable This probably results in either empty if the file 'myfile.txt' does not exist the contents of myfile.txt read from the hard drive --- Try this variation put "c:/" into tFilepath put "myfile.txt" into tFilename --now concatenate to form the param at the time of sending libURLftpUploadFile ( tFilepath & tFilename), tURL ,"showStatus" This is confusing, I know, but when working with interpretive languages, these nuances are part of the landscape. They have their purpose since there are times when this is exactly what you want. Power programmers use this to their advantage when the literal path and filename is not known but discovered at runtime on different hard drives. Hope this works for you. Let us know. If not I will do a little digging into the libURLftpUploadFile in the library to see how Rev uses the first param. Jim Ault Las Vegas ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Problems with libURLftpUploadFile
Hi all, Had no takers on this one so I thought I'd repost it I have a problem where: Put fld "contains FTP path" into tURL libURLftpUploadFile "c:/myfile.txt", tURL ,"showStatus" works fine but. Put fld "contains FTP path" into tURL Put "c:/myfile.txt" into tFilepath libURLftpUploadFile tFilepath, tURL , "showStatus" Results in "c:/myfile.txt" instead of the correct data being written into the uploaded text file The same happens if I use libURLftpUpload So, is it not possible to use 2 variables? Or am I missing something Regards Kevin Stallibrass ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Problems with libURLftpUploadFile
Try this working 24/7 there (Rev Ent 3.5, OS X 10.5.8) put url ("binfile:" & path_to_thefile_to_upload) into url (your_ftp_server_credenti...@address & the_remote_path & "/" & the_uploaded_file_name)) if url (FTP_Server_Address.../the_uploaded_file_name) is "" then beep Cheers, P. Le 4 sept. 09 à 16:37, Kevin Stallibrass a écrit : Hi all, I have a problem where: Put fld "contains FTP path" into tURL libURLftpUploadFile "c:/myfile.txt", tURL ,"showStatus" works fine but. Put fld "contains FTP path" into tURL Put "c:/myfile.txt" into tFilepath libURLftpUploadFile tFilepath, tURL , "showStatus" Results in "c:/myfile.txt" instead of the correct data being written into the uploaded text file The same happens if I use libURLftpUpload So, is it not possible to use 2 variables? Or am I missing something Regards Kevin Stallibrass ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution -- Pierre Sahores mobile : (33) 6 03 95 77 70 www.wrds.com www.sahores-conseil.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Problems with libURLftpUploadFile
Hi all, I have a problem where: Put fld "contains FTP path" into tURL libURLftpUploadFile "c:/myfile.txt", tURL ,"showStatus" works fine but. Put fld "contains FTP path" into tURL Put "c:/myfile.txt" into tFilepath libURLftpUploadFile tFilepath, tURL , "showStatus" Results in "c:/myfile.txt" instead of the correct data being written into the uploaded text file The same happens if I use libURLftpUpload So, is it not possible to use 2 variables? Or am I missing something Regards Kevin Stallibrass ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution