Re: Extracting a filename

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 59988
interpreted = N
texte = One more note on this... not all browsers set the file name in the same way. Some pass the full path name to the source file, so you could get something like "c:images/my.jpg". You can also get file names that aren't web friendly, containing slashes, spaces, or other questionable characters. So, after pulling the file name out, I use the a listwords to eliminate the folder path, and a grep to remove unwanted characters. - Brian On Nov 10, 2004, at 3:40 PM, Gary Krockover wrote: > Thanks Rob, exactly what I was looking for. And thanks Sal, looks > like they've updated the upload.tpl since I had last looked at it, but > instead of ripping it apart, I'll use the solution that I have now. > Always forget about [middle...] > At 05:17 PM 11/10/2004, you wrote: > I just use: > > [middle StartAfter=filename="&EndBefore="][name][/middle] > > > > Rob Marquardt > Designer/Resident Wirehead > Toast Design > -- Brian Fries, BrainScan Software -- http://www.brainscansoftware.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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Extracting a filename ( Brian Fries 2004)
  2. Re: Extracting a filename ( "Gary Krockover" 2004)
  3. Re: Extracting a filename ( Rob Marquardt 2004)
  4. Re: Extracting a filename ( "Sal D'Anna" 2004)
  5. Re: Extracting a filename ( devaulw@onebox.com 2004)
  6. Re: Extracting a filename ( "Gary Krockover" 2004)
  7. Re: Extracting a filename ( "Sal D'Anna" 2004)
  8. Extracting a filename ( "Gary Krockover" 2004)
One more note on this... not all browsers set the file name in the same way. Some pass the full path name to the source file, so you could get something like "c:images/my.jpg". You can also get file names that aren't web friendly, containing slashes, spaces, or other questionable characters. So, after pulling the file name out, I use the a listwords to eliminate the folder path, and a grep to remove unwanted characters. - Brian On Nov 10, 2004, at 3:40 PM, Gary Krockover wrote: > Thanks Rob, exactly what I was looking for. And thanks Sal, looks > like they've updated the upload.tpl since I had last looked at it, but > instead of ripping it apart, I'll use the solution that I have now. > Always forget about [middle...] > At 05:17 PM 11/10/2004, you wrote: > I just use: > > [middle StartAfter=filename="&EndBefore="][name][/middle] > > > > Rob Marquardt > Designer/Resident Wirehead > Toast Design > -- Brian Fries, BrainScan Software -- http://www.brainscansoftware.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://webdna.smithmicro.com/ Brian Fries

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:

Yosemite and 8.1??? (1999) shipcost (1997) Emailer (WebCat2) (1997) Safari browser and WebDNA set-cookies (2003) setting taxable to true (1997) RE: [shownext] support - MacOS (1997) Re1000001: Setting up shop (1997) writing checkboxes to a database (2000) [GROUPS] followup (1997) how to know the [LineIndex] number webcat generated during a [AddLineItem]? (2000) Insert Line Feed Character (2004) Shopping cart problem (2003) WebCat b13 CGI -shownext- (1997) security problem (1997) Help name our technology! (1997) expired beta (1997) Database not found in Include (2002) [math date] with non-US date format (2000) WebCat2: multiple currency support (1997) searching multiple databases (1997)