l Message-
> From: Scott Chapman [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 13, 2001 11:07 AM
> To: Boyd, David; EmbPerl News Group (E-mail); Gerald Richter
> Subject: Re: Using the Upload Example
>
>
> Just something to consider. There can be security problems whe
: Thursday, December 13, 2001 11:07 AM
To: Boyd, David; EmbPerl News Group (E-mail); Gerald Richter
Subject: Re: Using the Upload Example
Just something to consider. There can be security problems when
you save a file to the name the user chose. If they upload a .pl file
for example and then
Just something to consider. There can be security problems when
you save a file to the name the user chose. If they upload a .pl file
for example and then manange to call it as a CGI script you get
the idea? When I upload a file, I either save it to a fixed name, if
this is applicable,
> I am looking at using the the Upload example (found on the embperl site)
but
> am a little lost.
>
> The example has the file that is being uploaded saved to the server as
> file.$$. I would like the file name to be the same as the one that was
> selected. When I look at the $fdat{ImageName}
BD> I am looking at using the the Upload example (found on the embperl site) but
BD> am a little lost.
File::PathConvert is a pretty good solution.
[-
use File::PathConvert;
($volume,$directory,$filename) = &File::PathConvert::splitpath($fdat{fileName});
print OUT "$filename";
-]
But i have foun