Re: Mult-File Upload w/ Web Star

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 33732
interpreted = N
texte = This will upload from zero to four files in a batch though a web browser to the same directory containing the template.What? You need more than four files at a time? Slap more lines into the form ; )This is super-generic and places responsibility of using web server appropriate filenames on the upload-ee. Filtering to remove spaces and inappropriate characters (as well as checking for a valid extension) on [theFilename] should really be done before writing the file.---- file: upload.html ----[!][/!] upload [formvariables] [showif [url][name][/url]^[url]theFile[/url]] [text]theFilename=[middle StartAfter=filename=&EndBefore=][name][/middle][/text][showif [url][theFilename][/url]^[url]:\[/url]][listwords words=[url][theFilename][/url]&delimiters=\][text]tempFilename=[word][/text ][/listwords][!] -- fix for Windows' goofy full-path names [/!] [text]theFilename=[tempFilename][/text] [/showif][writefile file=[theFilename]&secure=F][value][/writefile] [/showif] [/formvariables] [listfiles] [/listfiles]
FilenameSizeLast Modified
[filename][format .1f][math][size]/1024[/math][/format] K[moddate] at [modtime]






Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Solution: Mult-File Upload w/ Web Star (Patrick O'Brien 2000)
  2. Solution: Mult-File Upload w/ Web Star (Peter Werno 2000)
  3. Re: Mult-File Upload w/ Web Star (Rob Marquardt 2000)
  4. Re: Mult-File Upload w/ Web Star (Rob Marquardt 2000)
  5. Re: Mult-File Upload w/ Web Star (WebDNA Support 2000)
  6. Re: Mult-File Upload w/ Web Star (Paul Uttermohlen 2000)
  7. Re: Mult-File Upload w/ Web Star (Dale 2000)
  8. Re: Mult-File Upload w/ Web Star (Patrick O'Brien 2000)
  9. Re: Mult-File Upload w/ Web Star (WebDNA Support 2000)
  10. Re: Mult-File Upload w/ Web Star (Jason Sofonia 2000)
  11. Re: Mult-File Upload w/ Web Star (Paul Uttermohlen 2000)
  12. Re: Mult-File Upload w/ Web Star (Charles Kline 2000)
  13. Re: Mult-File Upload w/ Web Star (Patrick O'Brien 2000)
  14. Mult-File Upload w/ Web Star (Jason Sofonia 2000)
This will upload from zero to four files in a batch though a web browser to the same directory containing the template.What? You need more than four files at a time? Slap more lines into the form ; )This is super-generic and places responsibility of using web server appropriate filenames on the upload-ee. Filtering to remove spaces and inappropriate characters (as well as checking for a valid extension) on [theFilename] should really be done before writing the file.---- file: upload.html ----[!][/!] upload [formvariables] [showif [url][name][/url]^[url]theFile[/url]] [text]theFilename=[middle StartAfter=filename=&EndBefore=][name][/middle][/text][showif [url][theFilename][/url]^[url]:\[/url]][listwords words=[url][theFilename][/url]&delimiters=\][text]tempFilename=[word][/text ][/listwords][!] -- fix for Windows' goofy full-path names [/!] [text]theFilename=[tempFilename][/text] [/showif][writefile file=[theFilename]&secure=F][value][/writefile] [/showif] [/formvariables] [listfiles] [/listfiles]
FilenameSizeLast Modified
[filename][format .1f][math][size]/1024[/math][/format] K[moddate] at [modtime]






Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.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://search.smithmicro.com/ Rob Marquardt

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:

[ShowNext] feature in 2.0 (1997) WebMerchant 1.6 and SHTML (1997) WebCat2b13MacPlugIn - syntax to convert date (1997) Date to Daze (1999) HTML Email and Images (2004) off topic - dna snipets (1997) [ModDate] & [ModTime] ? (1997) oops private message leaked into talk list (1997) international time (1997) A little syntax help (1997) Generating Report Totals (1997) JPG Force Download (2007) BIG PROBLEMS with Checkboxes!!! (1998) Need WebDNA database programmer (2001) Logging purchases (1997) Windows: Apache in place of IIS (2002) WebCat/Typhoon Status under Windows (1998) Duplicate Cart ID (2001) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) help! problem using [referrer] still in 2.01 (1997)