Show if file exists

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 58754
interpreted = N
texte = Hi I *had* a piece of coede working which would check to see if an image was in a particular directory and display a link if it was present. For some reason this piece of code no longer seems to confirm the fact that a file is present even if it is.... THE CODE (some formatting stripped out) ================================== [showif [fileinfo file=[imagePath]/images/products/detail/2/[prodID][colourCode].jpg][exists][/fileinfo]=T] [/showif] [showif [fileinfo file=[imagePath]/images/products/detail/3/[prodID][colourCode].jpg][exists][/fileinfo]=T] [/showif] ================================== I added in some error checking in the form of :- ===================== [text]image2=[fileinfo file=[imagePath]/images/products/detail/2/[prodID][colourCode].jpg][exists][/fileinfo]=T][/text] [text]image3=[fileinfo file=[imagePath]/images/products/detail/3/[prodID][colourCode].jpg][exists][/fileinfo]=T][/text] Image 2 should be this :-

Image 3 Should be :-

===================== The extra images are showing where hard coded when present yet the fileinfo is not picking them up :-( Does anyone have any suggestions? Thanks Alan ------------------------------------------------------------- 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: Show if file exists ( Alan White 2004)
  2. Re: Show if file exists ( Alain Russell 2004)
  3. Re: Show if file exists ( Alan White 2004)
  4. Re: Show if file exists ( Christer Olsson 2004)
  5. Re: Show if file exists ( Alan White 2004)
  6. Re: Show if file exists ( Gary Krockover 2004)
  7. Re: Show if file exists ( Alan White 2004)
  8. Re: Show if file exists ( Gary Krockover 2004)
  9. Re: Show if file exists ( Alan White 2004)
  10. Re: Show if file exists ( Alan White 2004)
  11. Show if file exists ( Alan White 2004)
Hi I *had* a piece of coede working which would check to see if an image was in a particular directory and display a link if it was present. For some reason this piece of code no longer seems to confirm the fact that a file is present even if it is.... THE CODE (some formatting stripped out) ================================== [showif [fileinfo file=[imagePath]/images/products/detail/2/[prodID][colourCode].jpg][exists][/fileinfo]=T] [/showif] [showif [fileinfo file=[imagePath]/images/products/detail/3/[prodID][colourCode].jpg][exists][/fileinfo]=T] [/showif] ================================== I added in some error checking in the form of :- ===================== [text]image2=[fileinfo file=[imagePath]/images/products/detail/2/[prodID][colourCode].jpg][exists][/fileinfo]=T][/text] [text]image3=[fileinfo file=[imagePath]/images/products/detail/3/[prodID][colourCode].jpg][exists][/fileinfo]=T][/text] Image 2 should be this :-

Image 3 Should be :-

===================== The extra images are showing where hard coded when present yet the fileinfo is not picking them up :-( Does anyone have any suggestions? Thanks Alan ------------------------------------------------------------- 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/ Alan White

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:

Great product and great job ! (1997) [WebDNA] SOAP support (2014) WebCat cannot handle compatible search parameters? (1997) [Sum] function? (1997) hidden databases (2000) Variable Sizes, Widths and Colors (2000) Server crash (1997) I've had it! (1999) [format xs] freeze (1997) formatting search results (1999) RE: groups and [ShowNext] (1997) 4.5 buglist (2002) Summing fields (1997) OSX - webDNA 4.51 (2003) Re:Searching for ALL / empty form field (1997) Re2: frames & carts (1997) Emailer on NT not working. (1999) Setting up WebCatalog with Retail Pro data (1996) Getting total number of items ordered (1997) New syntax feedback for 4.0 (2000)