File info on files with funky characters in their names

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 49828
interpreted = N
texte = I'm working on a generic file upload page for a client, and was testing for robustness for users entering obscure characters in their file names - ampersands, quotes, equal signs, etc. I found some interesting info about [fileinfo] and wanted to pass it on, as well as request comment from SMSI...Unlike all (that I've tried) other WebDNA tags, FileInfo does not work properly when you [url] the parameter.Given a file named a&b.txt, using [fileinfo a&b.txt] works fine, but using [fileinfo [url]a&b.txt[/url]] fails to find the file. Other tags, such as [include [url]a&b.txt[/url]] work fine with the [url].Then I tried quotes. I can [writefile file=[url]12paddle.txt[/url]], and I can use deletefile and renamefile on the file, but I cannot see the file with either [fileinfo 12paddle.txt] or [fileinfo [url]12paddle.txt[/url]]For SMSI: Is this intentional behavior? Is there a reason that [fileinfo] does not perform the implied [unurl] that all other tags do? Is there a reason that [fileinfo] cannot see files with quotes?TIA, Brian -- 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: File info on files with funky characters in their names (Brian Fries 2003)
  2. Re: File info on files with funky characters in their names (Scott Anderson 2003)
  3. File info on files with funky characters in their names (Brian Fries 2003)
I'm working on a generic file upload page for a client, and was testing for robustness for users entering obscure characters in their file names - ampersands, quotes, equal signs, etc. I found some interesting info about [fileinfo] and wanted to pass it on, as well as request comment from SMSI...Unlike all (that I've tried) other WebDNA tags, FileInfo does not work properly when you [url] the parameter.Given a file named a&b.txt, using [fileinfo a&b.txt] works fine, but using [fileinfo [url]a&b.txt[/url]] fails to find the file. Other tags, such as [include [url]a&b.txt[/url]] work fine with the [url].Then I tried quotes. I can [writefile file=[url]12paddle.txt[/url]], and I can use deletefile and renamefile on the file, but I cannot see the file with either [fileinfo 12paddle.txt] or [fileinfo [url]12paddle.txt[/url]]For SMSI: Is this intentional behavior? Is there a reason that [fileinfo] does not perform the implied [unurl] that all other tags do? Is there a reason that [fileinfo] cannot see files with quotes?TIA, Brian -- 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:

show me your store ! (2003) WebCat2.0 [format thousands .0f] no go (1997) WebMerchant Only reads 1.4 order files error (1997) RequiredFields notes ... (1997) [subtotal] problems -- help? (1998) Protect (1997) Setting up shop (1997) Form Variables (2000) cart info (1998) WebCat, The Trend, & Consolidating... (1997) searchable list archive (1997) Re[2]: 2nd WebCatalog2 Feature Request (1996) RE: [WebDNA] [AddFields] Restrictions (2012) [solved] WebDNA 5.1 and Mac OS X Server v10.3 - Working ??? (2003) WebStar Questions ... (2000) Major OT shopping cart test request. (2002) RE: Checkboxes to add to cart... (1998) Getting Total Quantity (1997) Secure Server (1997) WebCat2b13MacPlugin - [math][date][/math] problem (1997)