Re: [WebDNA] Friendly urls and multipart/form-data
This WebDNA talk-list message is from 2011
It keeps the original formatting.
numero = 106932
interpreted = N
texte = Form data is sent "differently" when uploading a file, so the name=value pairs must be parsed differently. I think there are examples in the list archives.Sincerely,Kenneth Grome> 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_st> ring} [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
Associated Messages, from the most recent to the oldest:
Form data is sent "differently" when uploading a file, so the name=value pairs must be parsed differently. I think there are examples in the list archives.Sincerely,Kenneth Grome> 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_st> ring} [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
Kenneth Grome
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:
Dates - Search and Sorting (1999)
[showif] and equality (1998)
Date or time comparisons have bugs ... (1998)
form crasehes server (1997)
Cookie woes with Mac IE4 (1998)
Hummm .... (1998)
URL for Discussion Archive (1997)
More on the email templates (1997)
Writing a Protect Tag (1999)
Re:Emailer and encryption (1997)
PCS Frames (1997)
New Plug-in and Type 11 errors (1997)
RE: Credit card processing - UK (1997)
WebCatalog NT beta 18 problem (1997)
Overwriting databases bug in [closedatabase], garbage filescreated (1998)
PSC recommends what date format yr 2000??? (1997)
Use of Back and Reload Buttons on ShoppingCart page? (1997)
Price recalc based on quantity (1997)
Re:2nd WebCatalog2 Feature Request (1996)
Seeking WebCat Bulletin Board (1999)