> -----Original Message----- > From: Naomi Arries [mailto:[EMAIL PROTECTED]] > Sent: Monday, September 09, 2002 3:42 PM > To: [EMAIL PROTECTED] > Subject: retain same file name when uploading > > > I have noticed that when uploading a file (say > c:\input.txt) > to the upload directory on my apache server > then that file gets uploaded with another name( > C__input.txt. > See below the script called upload.pl.
The section of code below from your script is inserting the underscores. # Allow letters, digits, periods, underscores, dashes # Convert anything else to an underscore $filename =~ s/[^\w.-]/_/g; if ( $filename =~ /^(\w[\w.-]*)/ ) { $filename = $1; } else { error( $q, "Invalid file name; files must start with a letter or number." ); } > Could you someone modify it such that the same name > remain consistant during (client to server) upload. This is really dangerous. Why do you want to do this? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]