Re: [WebDNA] Friendly urls and multipart/form-data

This WebDNA talk-list message is from

2011


It keeps the original formatting.
numero = 106936
interpreted = N
texte = I too struggled with this a while back? The [formvariables] tag works differently when enctype="multipart/form-data" in the
tag. Don't have an example readily available, sorry! Marc On 7/12/2011 5:01 AM, Tom Duke wrote: > Hi all, > > Weird problem - hopefully someone may have come across it before. > I use mod-rewrite and .htaccess to manage > search-engine-safe/friendly URLs on my sites. This line in the > .htaccess file: > > RewriteRule ^(.+)$ > /parser.tmpl?requestedurl=%{REQUEST_URI}&query=%{query_string} [L] > > passes the requested URL and query string onto a 'parser' template > which then searches the various databases and builds the page. > > Only problem is if I pass data from a 'multipart/form-data' form > (i.e. when uploading an image), then the parser.tmpl page does not > get the [requestedurl] or [query] variables. It's as if WebDNA > ignores the rewritten string after the question mark. Is this > behaviour on purpose I wonder? The variables can be read if data > is passed from a standard form. > > - Tom > --------------------------------------------------------- This > message is sent to you because you are subscribed to the mailing > list . To unsubscribe, E-mail to: archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: > support@webdna.us -- ------------------------------------------- Marc Thompson Software Engineer Media Solutions University Information Technology University of Utah 801.585.9264 marc.thompson@utah.edu ------------------------------------------- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Friendly urls and multipart/form-data (Marc Thompson 2011)
  2. Re: [WebDNA] Friendly urls and multipart/form-data (Govinda 2011)
  3. Re: [WebDNA] Friendly urls and multipart/form-data (Marc Thompson 2011)
  4. Re: [WebDNA] Friendly urls and multipart/form-data (Govinda 2011)
  5. Re: [WebDNA] Friendly urls and multipart/form-data (Kenneth Grome 2011)
  6. Re: [WebDNA] Friendly urls and multipart/form-data (Tom Duke 2011)
  7. Re: [WebDNA] Friendly urls and multipart/form-data (Kenneth Grome 2011)
  8. [WebDNA] Friendly urls and multipart/form-data (Tom Duke 2011)
I too struggled with this a while back? The [formvariables] tag works differently when enctype="multipart/form-data" in the tag. Don't have an example readily available, sorry! Marc On 7/12/2011 5:01 AM, Tom Duke wrote: > Hi all, > > Weird problem - hopefully someone may have come across it before. > I use mod-rewrite and .htaccess to manage > search-engine-safe/friendly URLs on my sites. This line in the > .htaccess file: > > RewriteRule ^(.+)$ > /parser.tmpl?requestedurl=%{REQUEST_URI}&query=%{query_string} [L] > > passes the requested URL and query string onto a 'parser' template > which then searches the various databases and builds the page. > > Only problem is if I pass data from a 'multipart/form-data' form > (i.e. when uploading an image), then the parser.tmpl page does not > get the [requestedurl] or [query] variables. It's as if WebDNA > ignores the rewritten string after the question mark. Is this > behaviour on purpose I wonder? The variables can be read if data > is passed from a standard form. > > - Tom > --------------------------------------------------------- This > message is sent to you because you are subscribed to the mailing > list . To unsubscribe, E-mail to: archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: > support@webdna.us -- ------------------------------------------- Marc Thompson Software Engineer Media Solutions University Information Technology University of Utah 801.585.9264 marc.thompson@utah.edu ------------------------------------------- Marc Thompson

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:

PCS Emailer's role ? (1997) Ken's Data Manager (finally available I think ...) (2005) Template Encrypt Speed (1998) too many nested [xxx] (1997) Locking up with WebCatalog... (1997) Form Weirdness (2002) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) Problem using # in my field names ... (1998) Protect Tag and Groups (1998) [DOS]/DOS query perhaps OT (2003) Practice runs ? (1997) Possible Bug in 2.0b15.acgi (1997) BGcolor (1997) The Depths of Credit Card Payment (2003) [searchString] (1997) WebDNA Upgrade Problems (2003) Not seeing cart info on Invoice.tmpl (was PROBLEM) (1997) using showpage and showcart commands (1996) webcat- multiple selection in input field (1997) Browser Back button (2003)