File Format Validation

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 63373
interpreted = N
texte = I'm allowing a client to upload a database file, but I want to verify certain aspects. I will allow them to upload the file into a holding area where I'll perform the various checks below before flushing and overwriting the existing database. 1. Make sure the file name is EXACTLY ben_dealers.db 2. Make sure the first line of the DB contains headers 3. Make sure the file is tab-delimited I have the upload code working fine, but I've never done the checks above. Anyone have code to share on something like this? ------------------------------------------------------------- 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: File Format Validation ( Clint Davis 2005)
  2. Re: File Format Validation ( William DeVaul 2005)
  3. Re: File Format Validation ( William DeVaul 2005)
  4. Re: File Format Validation ( Clint Davis 2005)
  5. File Format Validation ( Clint Davis 2005)
I'm allowing a client to upload a database file, but I want to verify certain aspects. I will allow them to upload the file into a holding area where I'll perform the various checks below before flushing and overwriting the existing database. 1. Make sure the file name is EXACTLY ben_dealers.db 2. Make sure the first line of the DB contains headers 3. Make sure the file is tab-delimited I have the upload code working fine, but I've never done the checks above. Anyone have code to share on something like this? ------------------------------------------------------------- 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/ Clint Davis

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:

problems with WebCat-Plugin (1997) Paths (1998) Forms Search Questions (1997) DataBaseHelper Flawed (1997) question: webmerchant connection (1997) A [Loop][APPEND][URL] ... [/URL][/APPEND]/Loop] Question (2000) Limiting user access to .tmpl files (1997) Re:Item options w/ price adjustment (1997) Database Helper Update (1998) View order not right (1997) [protect admin] (1997) PIXO (1997) Passing WebCat data to SSL server (1997) off topic fetch vs PCS photomaster (1997) Nested tags count question (1997) Help formatting search results w/ table (1997) WebCat2b13MacPlugIn - syntax to convert date (1997) Sending order notification by fax (1999) 2.0 Info (1997) Questions about maximum (1999)