Re: Uploading a file -> need help

by "Mike Taylor" <lonewolf(at)one.net>

 Date:  Tue, 30 Jan 2001 22:08:42 -0500
 To:  <hwg-techniques(at)hwg.org>
 References:  w2kpms
  todo: View Thread, Original
Hi Paul:

Don't know if anyone has replied yet, but perhaps you can grab the file name
they attach and turn this into a variable on the client end in the form of
JavaScript.  You could then build a function that looks for *.htm* or
*.html* as a string in that variable, and before the form is even submitted,
generate an alert should the string not match.


----- Original Message -----
From: "Paul Mennega" <paul(at)mennega.com>
To: <hwg-techniques(at)hwg.org>
Sent: Sunday, January 28, 2001 8:54 PM
Subject: Uploading a file -> need help


> 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

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.