Re: File Format Validation

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 63374
interpreted = N
texte = I've figured out numbers 1 & 2 below, but I'm not sure WebDNA can check line endings. Is this possible? On 11/8/05 3:12 PM, "Clint Davis" wrote: > 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've figured out numbers 1 & 2 below, but I'm not sure WebDNA can check line endings. Is this possible? On 11/8/05 3:12 PM, "Clint Davis" wrote: > 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:

Help name our technology! (1997) Quit revisited (1997) Next (1997) PCS Frames (1997) os x server (2000) grouped fields? (1999) Webcat causing crashes left and right! (1997) Re:2nd WebCatalog2 Feature Request (1996) Custom Shipping Charges (1997) Preserving form data (1999) serial number generation (1997) How many lookups does it take ... (2003) Bug Report, maybe (1997) Error Lob.db records error message not name (1997) Off-topic: Cheap hosting (but not webdna) ... (2002) WebCatalog can't find database (1997) Signal Raised Error (1997) Re:no template caching (1997) [OT] WebCat 3.x (Mac) Lic. For Sale (2000) price on detail, but not shoppingcart (1997)