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:

searchable list archive (1997) webcat (2000) Exchange rates (2004) [Announce]: Web server security and password protection (1997) greater than or equal to (1997) Running _every_ page through WebCat ? (1997) WebCat B13 Mac CGI -- Frames question (1997) Quit revisited (1997) [DELETEFILE] via http (2003) Duplicates (1998) 2.0Beta Command Ref (can't find this instruction) (1997) Sort Order on a page search (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Bug alert! (1997) Answer: WebDelivery downloads alias, not original ? (1997) Best way to download a db (2003) Where is f2? (1997) orderfile headers (was: 2nd Request for help/adviceonvariable pricing) (2000) OSX SubAdmin Templates (2000) Almost a there but..bye bye NetCloak (1997)