Multipart Form - Ascertain File Type

This WebDNA talk-list message is from

2007


It keeps the original formatting.
numero = 68737
interpreted = N
texte = Hi, I was wondering if anyone knew how to ascertain what type of file was being uploaded when using a multipart form. I'm trying to create a file upload that will only allow a .txt file to be uploaded. I've tried to ascertain the file type coming in using the formvariables context but it doesn't seem to work. The form works fine...files uploading without problem. Does anyone have any ideas? Thank you, Tana ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Multipart Form - Ascertain File Type ( "Olin Lagon" 2007)
  2. Re: Multipart Form - Ascertain File Type ( Donovan Brooke 2007)
  3. Re: Multipart Form - Ascertain File Type ( "Tana Adams" 2007)
  4. Re: Multipart Form - Ascertain File Type ( Matthew A Perosi 2007)
  5. Re: Multipart Form - Ascertain File Type ( Gary Krockover 2007)
  6. Re: Multipart Form - Ascertain File Type ( John Peacock 2007)
  7. Multipart Form - Ascertain File Type ( "Tana Adams" 2007)
Hi, I was wondering if anyone knew how to ascertain what type of file was being uploaded when using a multipart form. I'm trying to create a file upload that will only allow a .txt file to be uploaded. I've tried to ascertain the file type coming in using the formvariables context but it doesn't seem to work. The form works fine...files uploading without problem. Does anyone have any ideas? Thank you, Tana ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ "Tana Adams"

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

HomePage Caution (1997) Email notification to one of multiple vendors ? (1997) E-Mail (1998) OT-JS question (2001) Values to Thankyou page lost? (1998) WC2b15 File Corruption (1997) WebCat on Alpha? (1997) Web Catalog 2 demo (1997) Calculating multiple shipping... (1997) How do you hide [math]stuff[/math] (1997) results in a table (2000) emailer (1997) Alais Shopping Cart Directory (1998) Max Record length (1997) weight based shipping cost questions (1997) How do you hide [math]stuff[/math] (1997) Beta Documentation (1997) Shhh, very quiet. (2006) E-mailer error codes (1997) Weird + issue (2002)