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. - brian On 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:

    
  1. Re: windows file upload = weirdness ( Brian Fries 2004)
  2. Re: windows file upload = weirdness ( Terry Wilson 2004)
  3. Re: windows file upload = weirdness ( Brian Fries 2004)
  4. Re: windows file upload = weirdness ( Terry Wilson 2004)
  5. Re: windows file upload = weirdness ( Terry Wilson 2004)
  6. Re: windows file upload = weirdness ( Brian Fries 2004)
  7. windows file upload = weirdness ( Terry Wilson 2004)
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. - brian On 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:

Hideif on IP range (2004) Re:listfiles-looking for slick solution (1997) WebCat2b13MacPlugin - nested [xxx] contexts (1997) Replacing entry (1998) Math, Multiple Equasions and Show/Hide (1998) Help! WebCat2 bug (1997) Keeping text formatting (like hard returns) (2002) Quit revisited (1997) listfiles, moving files (1998) Upgrade to WebCat2 from Commerce Lite (1997) Only charge card when product shipped ? (1997) multi-paragraph fields (1997) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) Bug? (1997) Thanks ! (1997) taxTotal, grandTotal (1997) Loops in increments of .25 (2002) webcat plugin issue (2001) Search all Fields in a db (1997) Date search bug? (1998)