On 16/12/2011 20:53, J. Landman Gay wrote:
I need to upload a file to the public_html directory on a server. The file is fairly large so I don't want to use "put". LibURLftpUploadFile works, but using ftp always uploads outside the www directory. What do I need to do to get the file to upload to the web site?

upload to the ftp directory
then use a .lc script to move it over to where you want it (and maybe even return the file size as an extra check)

e.g. (not-even-pseudo-code)

LibURLftpUploadFile "myfile.txt"
get URL "http://mydomain.com/move_my_file_into_place.lc?file=myfile.txt";
if it <> the number of chars in "myfile.txt" then ....

-- Alex.

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to