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:

WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) Which Version? 5.1 or 6.0? (2004) [Announce] Newest Commerce Site based on WebCatalog (1997) Adding multiple items to Cart at one time, & append contextproblem (1998) [cart] not being interpreted inside [founditems] (1997) quantity minimum problem (1997) [OT] (waaaay OT) (2004) Caching pages...again (2001) I try hard to think positively (1998) Bug or syntax error on my part? (1997) So many lookers, hey smith micro (2003) Plugin or CGI or both (1997) still facing truncated [texta] problem (2000) test (2005) Error Messages Returned to User (1997) Re:Part 2 - [showif] if variable exists (1998) [CART] (1997) Creating main- and sub-category search (1997) For those of you not on the WebCatalog Beta... (1997) How to best sort in a pre-defined item-by-item order ... (2003)