FTP

Jeff Honken jhonken at x12.info
Wed Dec 28 14:55:25 EST 2005


I've never used FTP with Runrev but doesn't he have to have a FTP server
on his end to upload the files to?  He said that he'd created a
directory and can access it but can he access it with FTP? Just
wondering. I have to write an app here soon that uses FTP.  Jeff

-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Jan
Schenkel
Sent: Wednesday, December 28, 2005 11:42 AM
To: How to use Revolution
Subject: Re: FTP

--- Marty Knapp <martyknapp at comcast.net> wrote:
> I'm trying to to build a simple app so that my boys
> can send me 
> Quicktime movies that are too big to email. I put
> togther a stack with a 
> button set for drag and drop with the following
> script:
> 
> on dragdrop
>   put empty into fld "LogData"
>   get the dragdata
>   if it is not empty then
>     libURLftpUploadFile 
> it,"ftp://username:password@ftp.mydomain.com/drop/"
> --"drop" is a 
> directory that I've created and can access
>     libUrlSetLogField the long id of fld "LogData"
>   else beep
> end dragdrop
> 
> the file is not uploaded and I get this message:
> 
> 220 ProFTPD 1.3.0rc2 Server (Main FTP Server)
> [64.40.144.138]
> 331 Password required for username.
> 230 User username logged in.
> 257 "/" is current directory.
> 221 Goodbye.
> CLOSED
> 
> What am I doing wrong?
> 
> 
> Marty Knapp
> 

Hi Marty,

It could be that you have to supply a filename and not
a directory in the uploadURL parameter.
I'd modify your handler to something like and see if
that works:
--
on dragdrop
  put empty into fld "LogData"
  --> you should only have to set the log field once
  libUrlSetLogField the long id of fld "LogData"
  put the dragdata into tFilePath
  if tFilePath is not empty then
    set the itemDelimiter to "/"
    put item -1 of tFilePath into tFileName
    put
"ftp://username:password@ftp.mydomain.com/drop/" & \
        tFileName into tUploadURL
    libURLftpUploadFile tFilePath, tUploadURL
  else beep
end dragdrop
--

Hope this helped,

Jan Schenkel.

Quartam Reports for Revolution
<http://www.quartam.com>

=====
"As we grow older, we grow both wiser and more foolish at the same
time."  (La Rochefoucauld)


	
		
__________________________________ 
Yahoo! for Good - Make a difference this year. 
http://brand.yahoo.com/cybergivingweek2005/
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution






More information about the use-livecode mailing list