Re: Uploading a file -> need help
by "Darrell King" <darrell(at)webctr.com>
|
Date: |
Mon, 29 Jan 2001 07:46:06 -0500 |
To: |
<hwg-techniques(at)hwg.org> |
References: |
w2kpms |
|
todo: View
Thread,
Original
|
|
just check the file name for the proper extension:
if ($filename=~/(?:(?:\.htm)|(?:\.html))$/) { good file }
(I didn't actually run that, so double check for typos!)
D
----- Original Message -----
From: "Paul Mennega" <paul(at)mennega.com>
> Hi there. I am using a input type="file"... to upload a file. I need to
> only allow users to upload .htm and .html files only. Has anyone
> encountered this problem, and can anyone suggest some possible solutions?
>
> We are using a perl based program to upload the file.
>
> Thanks,
>
> Paul Mennega
> http://www.mennega.com
>
>
>
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA