FTP Error
Andre Garzia
andre at andregarzia.com
Thu Jul 28 12:58:31 EDT 2011
Jack,
create a field and use
liburlsetlogfield
this will log all the transactions so that you can see where the problem
lies. My guess is that you are using a "/" in the front of your path, this
will fail because there is not such thing as /public_html but there is
/home/<your user>/public_html... Try removing the first slash to make it
relative to the home folder instead of in the root level.
my 2 BRL cents...
On Thu, Jul 28, 2011 at 1:09 PM, JACK RARICK <JRARICK at hpsk12.net> wrote:
> I am using an on-rev server. I request the contents of the public_html
> directory (FTP) - and I get it. I now have a list of directories inside of
> my public_html folder. (strA)
>
> That list is put inside of a scrolling field - and I allow the user to
> choose a directory. (strB)
>
> I use that request to make another list of the FILES inside of that
> directory. (Use FTP) And that works. (That list is put inside of a
> scrolling field.)
>
> The user is now looking at a list of FILES. The idea is that when the user
> chooses a file, it will then be downloaded to his/her computer. (strC)
>
> I put together a path to that file name by using pieces from above.
> strA&"/"&strB&"/"&strC - and let's call it strFINAL
>
> When I use libURLDownloadToFile with the correct parameters it returns
> "error" - without much else.
>
> When I simply PUT the URL strFINAL into a location on my computer it
> returns "Can't open /public_html/strA/strB_/Media/strC_" - no such file or
> directory.
>
> BUT PLEASE NOTICE that somewhere along the line underscores were added at
> the end of individual parts of my path. I THINK that is my problem. I
> evaluate the string inside of LC and I do NOT see the underscores, but when
> the error is returned, the underscores are there.
>
> 1) I do not know if the underscores are the problem, but could they be?
>
> 2) Any other reason this might not be working?
>
>
> Thank you! I will hang up now and listen to your answers and suggestions!
> As always, many, many thanks in advance.
>
>
> Jack Rarick
> Freshmen Center
> Earth Science
> Technology Coodinator
> Varsity Men's Track & Field
> Varsity Football - Offensive Line Coach, Peanut Butter Coordinator
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
--
http://www.andregarzia.com All We Do Is Code.
More information about the use-livecode
mailing list