> -----Original Message-----
> From: Naomi Arries [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 09, 2002 4:18 PM
> To: Bob Showalter
> Cc: [EMAIL PROTECTED]
> Subject: Re: retain same file name when uploading
>
>
> See Bob,
>
> I am attempting to activate my c++ program(on my server)
> from client within the same LAN. This program pulls a data
> file called c:\input.txt, that is with in the program this
> directory are refereced as c:\input.txt.
>
> This input.txt file is a flat file of data that I intend to
> send to the server (sever-client operates withing the same
> LAN).
>
> every time when uploading the file from the client then the
> name of the file gets changed and the c++ program can't
> recognize the c__input format.
In that case I would ignore the file name that the user specified and always
write the upload to a specific file name.
>
> I got an idea, to use the
>
> fileparsing option of the BASNAME module.
> se File::Basename;
> say
> $file = $q->param("uploadFileParam");
>
> my ($base, $path, $type) = fileparse($file);
>
> but this does'nt seem to work
Again, I think it's dangerous for the client to be able to determine the
server file name directly. A critical file could be overwritten in this way.
You want to keep control over the files created.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]