FTP Error

JACK RARICK JRARICK at hpsk12.net
Thu Jul 28 12:21:39 EDT 2011


Keith said: ...maybe try put urlencode(strFINAL) to manage those pesky non-text characters?

Thank you - I did - and it didn't! Dang. Any chance it might be a DIRECTORY issue? Should I be writing this code for the public_ftp folder? I will try that.

On 28 Jul 2011, at 17:09, JACK RARICK 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


_______________________________________________
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




More information about the use-livecode mailing list