Re: windows file upload = weirdness
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 57563
interpreted = N
texte = Taking out the URLs around [fullfilename] will cause problems if by chance the user has an & or = in their path. Out of habit I always URL the delimiters as well, because I sometimes use & and = as delimiters. It won't hurt anything to leave them in.- brianOn Apr 28, 2004, at 6:10 AM, Terry Wilson wrote:> For the record, I tried this, but made a few changes. I took out the > [url]s and added a backward slash to the delimiters:>> [Text]fullfilename=[Middle > StartAfter=filename="&endbefore="][name][/Middle][/Text]> [listwords words=[fullfilename]&delimiters=:/\]> [text]rawfilename=[word][/text]> [/listwords]>> It works great to extract just the filename; thanks again.>> But before I tested it out, I fired up Virtual PC to see how it all > worked. I discovered that my original problem was not a problem on my > setup, so it must be on the client's end, in getting stuck at the > upload page.>> Terry>>> Rather than using [listpath ...] I use [listwords ...] to break out >> the file name, like this:>>>> [listwords words=[url][tTemp][/url]&delimiters=[url]:/[/url]]>> [text]tFileName=[word][/text]>> [/listwords]>>>> tFileName now holds just the file name without the path.>>>> - brian>>>> On Apr 27, 2004, at 11:45 AM, Terry Wilson wrote:>>>>> I let people upload files to their sites. The code I wrote has been >>> humming along fine for the few people who use it... and all happen >>> to be Mac users. Now I have a Windows user, and we have a problem. >>> It seems>>>-- 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:
Taking out the URLs around [fullfilename] will cause problems if by chance the user has an & or = in their path. Out of habit I always URL the delimiters as well, because I sometimes use & and = as delimiters. It won't hurt anything to leave them in.- brianOn Apr 28, 2004, at 6:10 AM, Terry Wilson wrote:> For the record, I tried this, but made a few changes. I took out the > [url]s and added a backward slash to the delimiters:>> [text]fullfilename=[Middle > StartAfter=filename="&endbefore="][name][/Middle][/Text]> [listwords words=[fullfilename]&delimiters=:/\]> [text]rawfilename=[word][/text]> [/listwords]>> It works great to extract just the filename; thanks again.>> But before I tested it out, I fired up Virtual PC to see how it all > worked. I discovered that my original problem was not a problem on my > setup, so it must be on the client's end, in getting stuck at the > upload page.>> Terry>>> Rather than using [listpath ...] I use [listwords ...] to break out >> the file name, like this:>>>> [listwords words=[url][tTemp][/url]&delimiters=[url]:/[/url]]>> [text]tFileName=[word][/text]>> [/listwords]>>>> tFileName now holds just the file name without the path.>>>> - brian>>>> On Apr 27, 2004, at 11:45 AM, Terry Wilson wrote:>>>>> I let people upload files to their sites. The code I wrote has been >>> humming along fine for the few people who use it... and all happen >>> to be Mac users. Now I have a Windows user, and we have a problem. >>> It seems>>>-- 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:
Problem with summary on date / inconsequent webcat behaviour (1998)
WebCatalog2 Feature Feedback (1996)
Possible Bug in 2.0b15.acgi (1997)
SQL db type (2006)
Cart -> Date and Time (2004)
Debugging (2005)
stuck time (1998)
Different Email recipients? (1998)
[newcart] (1998)
[ShowNext] feature in 2.0 (1997)
New Webcatalog for Mac (1997)
Missing from Docs [folderName] (1997)
Developers in Washington State (2004)
[WebDNA] [announce] Developer Resource Center (2008)
searchable list archive (1997)
RE: E-mailer error codes (1997)
[countWords]? (1997)
Summing fields (1997)
No comment (1997)
What abobut variables named max ??? (2000)