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:

    
  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)
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:

[WriteFile] problems (1997) WebCatalog 4.0.2b5 available (2000) IE 6 weirdness ??? (2002) form data submission gets truncated (1997) WebCatalog can't find database (1997) shipping costs (1997) normal users.db calls ... (1998) well sort of - database design (2003) Wanted: More Math Functions (or, Can You Solve This?) (1997) Max Record length restated as maybe bug (1997) price on detail, but not shoppingcart (1997) Recording size of uploaded file? (2001) Ken's Data Manager (was dbQuickView 2.0) (2005) Silly Question (1997) [OT] (waaaay OT) (2004) [OT] Templates (For Sale) sites (2004) Help with ShowNext (1998) Verbose error reporting (1998) Running _every_ page through WebCat ? (1997) Database Access... (2000)