PDA

View Full Version : FTP Client Question



DTX
09-04-2006, 12:16 AM
Hi, I need a little help please with a project. Basically I have it sussed apart from one small problem.

Project:

An application that allows the user to locate a file, then name it from a variable %%ZippedName%%.zip this then zips the file to a specified temp folder

I then need to upload the %%ZippedName%%.zip named by the user.

All the zip part and temp folder creation is working fine, I get it named, but when I choose to upload the file, it doesn't work unless I specify the file name with no variable. At the moment when it tries to upload it uploads a file called "%%ZippedName%%.zip" with a file size of "0" and the application throws an unknown error failure message.

If anyone could help me learn how to retain the "%%ZippedName%%" variable for the later use, I would really appreciate it.

Cheers
Drew

Eagle
09-04-2006, 04:49 AM
Hi, have a look into how the action SessionVar.Expand works
and lock this in to one of your Application creation habbits:

if using session variables, whenever doing any scripting, you
need to expand the Session Variable first, so it can be interpreted
properly by the Lua scripting engine.

hth a little