path in perl

path in perl

am 09.10.2007 21:50:16 von ll

I'm working with an uploader script and am trying to establish the
parent directory to which files will be uploaded. However, after the
parent directory is set in the code and the file is uploaded, a folder
is created 'under' the cgi-bin folder that has the full path name as
its title, rather than using that path as the basis upon which to
concatenate the rest of the path. The page, when run, says that the
file has been uploaded successfully, but when following the link it
generates to the file, it cannot be opened, due to a repeat in the
path (e.g. www.mysite.com/uploads/uploads/test.txt)

Here is the URL for the download for this: http://www.cnctek.com/bizdb-html/download.html

Follow this link:
Download File Uploader - use "guest" for user name and password

Thanks for any help or resources,
Louis

Re: path in perl

am 09.10.2007 23:06:47 von lws4art

ll wrote:
> I'm working with an uploader script and am trying to establish the
> parent directory to which files will be uploaded. However, after the
> parent directory is set in the code and the file is uploaded, a folder
> is created 'under' the cgi-bin folder that has the full path name as
> its title, rather than using that path as the basis upon which to
> concatenate the rest of the path. The page, when run, says that the
> file has been uploaded successfully, but when following the link it
> generates to the file, it cannot be opened, due to a repeat in the
> path (e.g. www.mysite.com/uploads/uploads/test.txt)
>
> Here is the URL for the download for this: http://www.cnctek.com/bizdb-html/download.html
>
> Follow this link:
> Download File Uploader - use "guest" for user name and password

As with your other post, this is a Perl not HTML topic.

Try newsgroup comp.lang.perl.misc.

Also the manual might be of assistance, try looking up the "File" Module
or "File::Path"...

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com