RE: Using the Upload Example

2001-12-13 Thread Scott Chapman
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

RE: Using the Upload Example

2001-12-13 Thread Boyd, David
: 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

Re: Using the Upload Example

2001-12-13 Thread Scott Chapman
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,

Re: Using the Upload Example

2001-12-13 Thread Gerald Richter
> 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}

Re: Using the Upload Example

2001-12-12 Thread dimka
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

Using the Upload Example

2001-12-12 Thread Boyd, David
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} I noticed th