Thanks . I have a another struggling end .

I need to filter the result by a specific file
extension (like pdf). how can i do it ?

i need to check after upload a file that it should be pdf. if it is not then i need to display an error that only pdf files need to be uploaded.


regards
alma

"perldoc CGI" should help you on uploading files.

Filter extensions?

die("Only PDF files allowed!")
        unless($uploadedFile =~ /\.pdf$/i);

Once again, post to the list, not to me personaly!

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to