Ftp woes

Jeanne A. E. DeVoto jeanne at runrev.com
Mon Apr 22 15:40:01 EDT 2002


At 1:10 PM -0700 4/22/2002, Tim wrote:
>     Hi, I'm having difficulties compressing and uploading a stack
>to my FTP server. Here's the code:
>
>
> on mouseUp
>   save stack "TestStack"
>   put "PowerBookHD/Revolution Projects/TestStack.rev" into \
> tLocalFile --TestStack is a Revolution Stack containing 3 other substacks
>   put compress(tLocalFile) into URL
>"ftp://myusername@domain.com:mypassword@ftp.business.earthlink.net/www/TestStack
>"
>   close stack "TestStack"
> end mouseUp
>
> What am I missing?

It looks like your second line ("put...") is the problem. This puts the
literal string into tLocalFile, which you don't want. Try substituting this:

  put URL "binfile:/PowerBookHD/Revolution Projects/TestStack.rev" \
     into tLocalFile

That should work.

--
Jeanne A. E. DeVoto ~ jeanne at runrev.com
Runtime Revolution Limited - The Solution for Software Development
http://www.runrev.com/





More information about the use-livecode mailing list