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:

This list needs a digest: rant, rave... (1997) Checkbox question (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Frames and WebCat (1997) Word search (1997) View Source from cache (1997) Multiple Ad databases? (1997) [WebDNA] Receive JSON POST (2019) Fwd: Problems with Webcatalog Plug-in (1997) Spreadsheet Interface. (1998) Feature Request: [moverecord] (2003) [ShowNext] (1997) Download Question (1997) Hairy Shipping Monster (2006) ShowNext for method=POST (1997) Page-Execution-Timer...PHP vs WebDNA (2004) WebCat2 - [format thousands] (1997) WebCat2 - Getting to the browser's username/password data (1997) Possible Bug in 2.0b15.acgi (1997) 2 easy questions re: [showif] and [sendmail] (1997)