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:

Emailer (1998) total number of matches (1999) Searching for Email Address (2004) remotely creating and populating a stock inventory db -almost there! (1999) Summary search -- speed (1997) Protect (1997) [WebDNA] My failed cPanel and WebDNA experience ... (2016) [REPLACE] inside [FOUNDITEMS] (1998) WebCat2b12 forgets serial # (1997) ShowNext (1997) [SearchString] problem with [search] context (1997) WebCat2b13MacPlugIn - syntax to convert date (1997) Date comparison has serious bug ... (1998) Image download problem (2001) Reload adding to cart (2001) Refering page (1998) Confused about QTY and QTY* price updating (1998) [WebDNA] Hard-coded db write delay when running certain code? (2011) Message Boards (2003) html in a database (1998)