File Type Checking? ".gif" Or Not?

Results 1 to 2 of 2

Thread: File Type Checking? ".gif" Or Not?

  1. #1
    Join Date
    Dec 1969

    Default File Type Checking? ".gif" Or Not?

    I have a form field for .gif file uploads. I want to make sure that their input ends in ".gif" before the upload process.<BR><BR>How do I do it?<BR><BR>Thanks in advance,<BR>Mitch

  2. #2
    Reggie Guest

    Default Maybe this'll work

    This is based on the fact that you can access the path of the file that they are uploading.<BR><BR>&#060;%<BR>thepath=Ucase(request .form("thepath"))<BR>if right(thepath,4)=".GIF" then<BR>&#039upload code goes here<BR>else<BR>Response.write "That isn&#039t a .gif"<BR>end if<BR>%&#062;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts