FTP
Jim Ault
JimAultWins at yahoo.com
Wed Dec 28 15:09:11 EST 2005
On 12/28/05 11:55 AM, "Jeff Honken" <jhonken at x12.info> wrote:
> 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
>
You are correct about the FTP server.
On a Mac using OSX, it is very easy to set up an FTP service on the computer
you are using, however you have to have a static IP on your network for
those outside to be able to ping your server.
In my case I have both a Mac OSX FTP server with static IP and a few hosted
ftp sites where I have login/password access, and of course, they have setup
the static IP addresses & domain names.
Further, if you have a static IP but no domain name, that address is used in
place of the 'domainName.com' as in
ftp://username:password@ftp.123.444.55.678/drop/
As you contemplate the app building, do research the built-in library of FTP
commands and features. Also search for example Rev stacks that have been
built and readily available.
Hope this helps.
Jim Ault
Las Vegas
> -----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
>
>
>
> _______________________________________________
> 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