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:

State DB & TIme Zones (2003) Webcatalog and foreign languages (1998) much help needed NEWBIE alert (2000) Please ignore, TEST (2001) Showing once on a founditems (1997) Server Load (2000) [WebDNA] Encrypted password issue (2009) [WebDNA] XML Https Issue (2017) RE: Purchased cart being overwritten - still !?? (1997) Help! WebCat2 bug (1997) Smart caching problems with 2.1b3? (1997) adding options to form (2004) Hiding HTML and breaking the page (1997) Using Cookie for client specific info? (1997) sort problems....bug or brain fart? (1997) Before I Can Begin . . . (1998) SSL, WebSTAR, WebCatalog (1998) 'does not contain' operator needed ... (1997) [WebDNA] Dates (2009) Strange Crash (1998)