Can't Get libURLftpUploadFile to Work

Gregory Lypny gregory.lypny at videotron.ca
Sun Sep 25 16:09:06 EDT 2011


Hello everyone,

Took my first stab at using libURLftpUploadFile

My URL is of the form

	theURL = ftp://server Path//Documents/This Folder/That Folder/And Now Here

and the file

	myFile = /Users/gregory/Desktop/My Assignment.csv

I use the standard answer dialog to prompt for file selection, but when the script is run, nothing is transferred to the server.  

on mouseUp
   answer file "Choose the file"
   if it is not empty
   then 
      put it into myFile
      libURLftpUploadFile myFile,theURL
   end if
end mouseUp


I know that the address is correct because I can upload data to the server using

	put URL (“ftp://“ & etc.)

What am I doing wrong?

Regards,

Gregory








More information about the use-livecode mailing list