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:

[WebDNA] writing pdfs on the fly (Avery labels #5160) (2010) Re:multiple digests, please stop (1997) Is there a max number of fields? (1998) Document Contains No Data! (1997) Multiple Passwords (1997) SKU (1997) Can WC remember people? (1998) WC2b12: Yes, Formulas.db is for real (1997) Solution help needed (1998) [WebDNA] An actual attempt to get WebDNA and MAMP Pro to work - (2018) [switch][case] (2004) upgrading 5.0 --> 5.1g (2004) [WebDNA] fileinfo - need photo w & h written to a database (2016) WebCatalog/WebMerchant Manuals Available (1998) Problem (1997) mail list (1998) Is Web Merchant Necessary? (2000) # of real domains on 1 web server (1997) Date Formats (1997) Shopping Cart ID (1998)