Questions About Uploading Files to an FTP Server

Mark Talluto userev at
Tue Oct 18 21:08:13 EDT 2011

You can store the current directory in a tmp variable if you want to set the directory back.  Get the detailed files and figure out the file sized based on the data returned.

Binary data must use "binfile" while text data uses "file"
You can store files on all platforms with:  put myVariable into URL "binfile:/directory/filename" 

Best regards,

Mark Talluto

On Oct 10, 2011, at 9:07 AM, Gregory Lypny wrote:

> Hello everyone,
> Still tweaking an app to allow my students to upload files to an FTP server and save a log of their submissions.  I would like to restrict the size of files they upload, and want to know whether the way to do that is to first set the defaultFolder to the folder in which the file they have chosen resides and then collect information about it.  If so, will resetting the defaultFolder mess up a standalone app in any way?  Should I immediately reset it to empty after the upload?
> As for students saving data to disk, I learned from this list that writing data using the put URL form should be followed by file: for Windows users (I am a Mac user and accustomed to file://).  What is the correct path form for Linux?
> Regards,
> Gregory
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the Use-livecode mailing list