Re: [fileinfo . . .]

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 34682
interpreted = N
texte = What do you see when you do the include?As you know we discovered that the [imageheight] breaks when you do no have the right image type specified. So I think this would work.Lets assume we wrote the file twice, once as a .jpg and once as a .gif[showif [fileinfo this.gif][imageheight][/fileinfo]!][text]filetype=gif[/text][/showif] [showif [fileinfo this.jpg][imageheight][/fileinfo]!][text]filetype=jpg[/text][/showif] [!][fileinfo this.jpg][imageheight][/fileinfo] returns nothing when it is not the right filetype [/!]your file is a [filetype]keep that one and delete the other.[showif [filetype]=gif][deletefile this.jpg][movefile from=this.gif&to=saved/this.gif][/showif] [showif [filetype]=jpg][deletefile this.gif][movefile from=this.jpg&to=saved/this.jpg][/showif] Robert Minor Director of Internet Services ------------------------------------------------------------ Cybermill Communications http://www.cybermill.com http://www.merchantmaker.comProviding Ecommerce and interactive website development and hosting services on Macintosh, Windows NT, Unix, and AS/400.> From: Kenneth Grome > Reply-To: (WebCatalog Talk) > Date: Thu, 13 Jul 2000 14:09:42 -1000 > To: (WebCatalog Talk) > Subject: Re: [fileinfo . . .] > > It will work if you put the include tag in a [url] context. > >> Sorry. This did not work. >> But thanks! >> >> >> --- Jesse Proudman (Lists Account) >> wrote: >>> Try: >>> >>> [showif [include >>> file=path/to/jpg/that/is/a.gif]^GIF89]It's a >>> GIF[/showif] >>> >>> That might work. My brain full of limited knowledge >>> can't see a situation >>> where it wouldn't. >>> >>> Jesse Proudman - NineWire Digital >>> Solutions >>> http://www.ninewire.com <> >>> jesse@ninewire.com >>> Innovative and Creative Digital >>> Solutions >>> >>> >>> >> ****************************************************************** >>> * NineWire Productions and Digital Speed Networks, >>> have merged!! * >>> * We are now known as NineWire Digital >>> Solutions! * >>> >>> >> ****************************************************************** >>> >>>> -----Original Message----- >>>> From: WebCatalog Talk >>> [mailto:WebDNA-Talk@talk.smithmicro.com]On >>>> Behalf Of Jeff Grady >>>> Sent: Thursday, July 13, 2000 3:21 PM >>>> To: WebCatalog Talk >>>> Subject: [fileinfo . . .] >>>> >>>> >>>> I posted a message earlier about problems with >>> http >>>> upload. After some help from Bob Minor, we >>> determined >>>> that the problem was this . . . >>>> >>>> IF you use [fileinfo ....path] to get the >>> [imagewidth] >>>> or the [imageheight] for a file, and the file you >>> are >>>> getting this information for is named xxxx.gif, >>> BUT it >>>> is really is a jpeg file (or vise-versa) some >>> hooey >>>> things can happen to the information that is >>> returned >>>> within the [fileinfo] tags. >>>> >>>> So, if webCatalog 4.0 can extract width and height >>>> information from the binary data of jpeg and gif >>>> files, it should be very easy to also tell if the >>>> image is compressed using jpeg or gif compression. >>>> Thus a [filetype] tag would be very useful. >>>> >>>> Is there anyway that anyone can think of or knows >>> of >>>> to use WebDNA look at a file and tell what type >>> it >>>> REALLY is without looking at the extension on the >>>> filename? >>>> >>>> Thanks! >>>> Jeff >>>> >>>> __________________________________________________ >>>> Do You Yahoo!? >>>> Get Yahoo! Mail ñ Free email you can access from >>> anywhere! >>>> http://mail.yahoo.com/ >>>> >>>> >>> >> ------------------------------------------------------------- >>>> 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://search.smithmicro.com/ >>> >>> >>> >> ------------------------------------------------------------- >>> 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://search.smithmicro.com/ >> >> >> __________________________________________________ >> Do You Yahoo!? >> Get Yahoo! Mail ñ Free email you can access from anywhere! >> http://mail.yahoo.com/ >> >> ------------------------------------------------------------- >> 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://search.smithmicro.com/ > > > > ================================ > Kenneth Grome, WebDNA Consultant > 808-737-6499 http://webdna.net > ================================ > > > > ------------------------------------------------------------- > 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://search.smithmicro.com/ ------------------------------------------------------------- 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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [fileinfo . . .] (Bob Minor 2000)
  2. Re: [fileinfo . . .] (Bob Minor 2000)
  3. Re: [fileinfo . . .] (Jeff Grady 2000)
  4. Re: [fileinfo . . .] (Jesse Proudman (Lists Account) 2000)
  5. Re: [fileinfo . . .] (Jeff Grady 2000)
  6. Re: [fileinfo . . .] (Kenneth Grome 2000)
  7. Re: [fileinfo . . .] (Jeff Grady 2000)
  8. Re: [fileinfo . . .] (Jesse Proudman (Lists Account) 2000)
  9. [fileinfo . . .] (Jeff Grady 2000)
  10. Re: [fileinfo . . .] (Jesse Proudman (Lists Account) 2000)
What do you see when you do the include?As you know we discovered that the [imageheight] breaks when you do no have the right image type specified. So I think this would work.Lets assume we wrote the file twice, once as a .jpg and once as a .gif[showif [fileinfo this.gif][imageheight][/fileinfo]!][text]filetype=gif[/text][/showif] [showif [fileinfo this.jpg][imageheight][/fileinfo]!][text]filetype=jpg[/text][/showif] [!][fileinfo this.jpg][imageheight][/fileinfo] returns nothing when it is not the right filetype [/!]your file is a [filetype]keep that one and delete the other.[showif [filetype]=gif][deletefile this.jpg][movefile from=this.gif&to=saved/this.gif][/showif] [showif [filetype]=jpg][deletefile this.gif][movefile from=this.jpg&to=saved/this.jpg][/showif] Robert Minor Director of Internet Services ------------------------------------------------------------ Cybermill Communications http://www.cybermill.com http://www.merchantmaker.comProviding Ecommerce and interactive website development and hosting services on Macintosh, Windows NT, Unix, and AS/400.> From: Kenneth Grome > Reply-To: (WebCatalog Talk) > Date: Thu, 13 Jul 2000 14:09:42 -1000 > To: (WebCatalog Talk) > Subject: Re: [fileinfo . . .] > > It will work if you put the include tag in a [url] context. > >> Sorry. This did not work. >> But thanks! >> >> >> --- Jesse Proudman (Lists Account) >> wrote: >>> Try: >>> >>> [showif [include >>> file=path/to/jpg/that/is/a.gif]^GIF89]It's a >>> GIF[/showif] >>> >>> That might work. My brain full of limited knowledge >>> can't see a situation >>> where it wouldn't. >>> >>> Jesse Proudman - NineWire Digital >>> Solutions >>> http://www.ninewire.com <> >>> jesse@ninewire.com >>> Innovative and Creative Digital >>> Solutions >>> >>> >>> >> ****************************************************************** >>> * NineWire Productions and Digital Speed Networks, >>> have merged!! * >>> * We are now known as NineWire Digital >>> Solutions! * >>> >>> >> ****************************************************************** >>> >>>> -----Original Message----- >>>> From: WebCatalog Talk >>> [mailto:WebDNA-Talk@talk.smithmicro.com]On >>>> Behalf Of Jeff Grady >>>> Sent: Thursday, July 13, 2000 3:21 PM >>>> To: WebCatalog Talk >>>> Subject: [fileinfo . . .] >>>> >>>> >>>> I posted a message earlier about problems with >>> http >>>> upload. After some help from Bob Minor, we >>> determined >>>> that the problem was this . . . >>>> >>>> IF you use [fileinfo ....path] to get the >>> [imagewidth] >>>> or the [imageheight] for a file, and the file you >>> are >>>> getting this information for is named xxxx.gif, >>> BUT it >>>> is really is a jpeg file (or vise-versa) some >>> hooey >>>> things can happen to the information that is >>> returned >>>> within the [fileinfo] tags. >>>> >>>> So, if webCatalog 4.0 can extract width and height >>>> information from the binary data of jpeg and gif >>>> files, it should be very easy to also tell if the >>>> image is compressed using jpeg or gif compression. >>>> Thus a [filetype] tag would be very useful. >>>> >>>> Is there anyway that anyone can think of or knows >>> of >>>> to use WebDNA look at a file and tell what type >>> it >>>> REALLY is without looking at the extension on the >>>> filename? >>>> >>>> Thanks! >>>> Jeff >>>> >>>> __________________________________________________ >>>> Do You Yahoo!? >>>> Get Yahoo! Mail ñ Free email you can access from >>> anywhere! >>>> http://mail.yahoo.com/ >>>> >>>> >>> >> ------------------------------------------------------------- >>>> 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://search.smithmicro.com/ >>> >>> >>> >> ------------------------------------------------------------- >>> 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://search.smithmicro.com/ >> >> >> __________________________________________________ >> Do You Yahoo!? >> Get Yahoo! Mail ñ Free email you can access from anywhere! >> http://mail.yahoo.com/ >> >> ------------------------------------------------------------- >> 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://search.smithmicro.com/ > > > > ================================ > Kenneth Grome, WebDNA Consultant > 808-737-6499 http://webdna.net > ================================ > > > > ------------------------------------------------------------- > 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://search.smithmicro.com/ ------------------------------------------------------------- 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://search.smithmicro.com/ Bob Minor

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:

HTML Authentication page (1999) Logging purchases (1997) taxTotal confusion (1998) Unexpected comparison behavior change in 4.5.1 (2003) Separate SSL Server (1997) my price won't move (1997) RE: Languages (1997) TCPConnect misbehavin' for me. (2000) request for string functions (1998) Banners (1997) [searh] or [shownext]problem (1998) Feature Request [TABLE ... &delimiters=] (2007) WebCatalog/Mac 2.1b2 - PIXO (1997) 2.0 Beta (1997) Quick ShowIf question (1997) OFF TOPIC: help wanted (1997) [protect] (2000) [WebDNA] seconds_to_time (2017) emailer w/F2 (1997) WebCatalog2 Feature Feedback (1996)