Re: File info on files with funky characters in their names

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 49846
interpreted = N
texte = Thanks, Scott. You're right, [url] works when you use the file= label on the parameter. And I remember now that [redirect] works the same way - you can't use [url] unless you use url= on the parameter.It still doesn't work for files with quotes in their names though, and your explanation falls a bit short on this one. Colons are not legal filename characters on some file systems, too, but they work fine.I can control the file names with some case-specific coding - replace quotes with %22 whenever the user saves, copies or renames a file or folder - but only if the files are created using my tool. If they put the files online using FTP or a mounted server volume, I may be left with files I can't work with properly.A fix to allow [fileinfo file=[url]12paddle.txt[/url]] to work would be helpful (though my tool needs to work under older versions of WebDNA as well) - other commands such as [renamefile] do work with such file names.- brianOn Monday, April 28, 2003, at 05:05 PM, Scott Anderson wrote:> This works: > > [fileinfo file=[url]a&b.txt[/url]] > > >> Is there a reason that [fileinfo] cannot see files with quotes? > Quotes are not legal filename characters on some file systems. > > >> -----Original Message----- >> From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of >> Brian Fries >> Sent: Monday, April 28, 2003 4:39 PM >> To: WebDNA Talk >> Subject: File info on files with funky characters in their names >> >> >> 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)
Thanks, Scott. You're right, [url] works when you use the file= label on the parameter. And I remember now that [redirect] works the same way - you can't use [url] unless you use url= on the parameter.It still doesn't work for files with quotes in their names though, and your explanation falls a bit short on this one. Colons are not legal filename characters on some file systems, too, but they work fine.I can control the file names with some case-specific coding - replace quotes with %22 whenever the user saves, copies or renames a file or folder - but only if the files are created using my tool. If they put the files online using FTP or a mounted server volume, I may be left with files I can't work with properly.A fix to allow [fileinfo file=[url]12paddle.txt[/url]] to work would be helpful (though my tool needs to work under older versions of WebDNA as well) - other commands such as [renamefile] do work with such file names.- brianOn Monday, April 28, 2003, at 05:05 PM, Scott Anderson wrote:> This works: > > [fileinfo file=[url]a&b.txt[/url]] > > >> Is there a reason that [fileinfo] cannot see files with quotes? > Quotes are not legal filename characters on some file systems. > > >> -----Original Message----- >> From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of >> Brian Fries >> Sent: Monday, April 28, 2003 4:39 PM >> To: WebDNA Talk >> Subject: File info on files with funky characters in their names >> >> >> 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:

Mac List Servers (was: Duplicate Hell) (1999) WebCommerce: Folder organization ? (1997) WebDNA FAQ or FAQs -- was "weird problem" (2004) RE:It just Does't add up!!! (1997) wired [protect] action? (1998) unable to run webcatalog locally (1998) WebCat2 - storing unformatted date data? (1997) Extended [ConvertChars] (1997) Help formatting search results w/ table (1997) E-mail formating question (1999) RE: protect tag on NT (1997) Banner Ad Server Solutions Using WEbDNA (2000) Roundup function? (1997) Image as submit button (2000) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997) Merging databases (1997) database size? (1997) Shared databases (2003) Using Currencies other than Dollars (1997)