Can't Get libURLftpUploadFile to Work
Roger Eller
roger.e.eller at sealedair.com
Mon Sep 26 17:02:14 EDT 2011
On Mon, Sep 26, 2011 at 1:39 PM, Gregory Lypny wrote:
> Hello Roger,
>
> Thanks for the heads up. You’re suggesting that I do not use
> libURLftpUploadFile. Fair enough. I’m used to uploading data using the PUT
> URL form. Any suggestion as to how I might change the name of the file, on
> its way, or once it reaches the server? These files will be uploaded by my
> students, and I’d like to impose a consistent naming convention.
>
> Regards,
>
> Gregory
>
>
> On Mon, Sep 26, 2011, at 1:00 PM, Roger Eller wrote:
>
> > Hi Gregory. This is the form I typically use for FTP uploading:
> >
> > on mouseUp
> > set the itemDel to "/"
> > answer file "Choose the file"
> > if it is not empty then
> > put it into myFile
> > put item -1 of myFile into tFileName
> > -- change user:pass below to your credentials on FTP server
> > put URL ("binfile:" & myFile) into URL ("
> > ftp://user:pass@server.com/path/" & tFileName)
> > end if
> > end mouseUp
>
>
Whatever you put into tFileName will be the name on the server. It does not
have to be the same as the source name.
~Roger
More information about the use-livecode
mailing list