Re: Multipart Form - Ascertain File Type

This WebDNA talk-list message is from

2007


It keeps the original formatting.
numero = 68739
interpreted = N
texte = Was it Dan Strong's template....not sure, but there's a template floating around that let's you set some variables; one of them being the file extension that it will accept for an upload. I'll see if I can find a copy of that somewhere. If you need to verify the type of file after it's been uploaded and then do something with it if it isn't what it says it is, then you'll need some other mojo for that of course. GJK At 01:08 PM 3/30/2007, you wrote: >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)
Was it Dan Strong's template....not sure, but there's a template floating around that let's you set some variables; one of them being the file extension that it will accept for an upload. I'll see if I can find a copy of that somewhere. If you need to verify the type of file after it's been uploaded and then do something with it if it isn't what it says it is, then you'll need some other mojo for that of course. GJK At 01:08 PM 3/30/2007, you wrote: >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/ Gary Krockover

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:

Using Applescript to process WebCatalog functions (1998) Authenticate (1997) UPS problems (again) (2000) Tab Charactor (1997) NetSplat and WebCat2 (1997) [shownext] and sort (1998) Speaking of... (1999) Problems with ^ could be solved with [REPLACE CHARACTERS] (1997) limitation found on group searching (1997) Our Webcat site launched (1997) Not seeing cart info on Invoice.tmpl (was PROBLEM) (1997) Recursive includes (1998) Failing Email (2004) Re[2]: php vs WebCatalog (2000) Rumpus/Typhoon modules included in Typhoon ... (1997) Help!!!! (1997) Sku numbers (1997) New index for docs (1997) Image upload (2000) WebCatalog2 Feature Feedback (1996)