[WebDNA] Code works in v6 but not in v7

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 105734
interpreted = N
texte = I'm writing a file upload script, it works in v6 but not in v7. It seems there is something strange going on in the formvariables context when the file is being uploaded. Here's the source code: [text secure=f]task=[/text] [formvariables] [showif [url][name][/url]^[url]"task"[/url]] [text]task=upload[/text] [/showif] [/formvariables] [text]uploadPath=upFile.db[/text] [showif [task]=] Upload the file:
[/showif] [showif [task]=upload] [formvariables] [showif [url][name][/url]^[url]"upFile"[/url]] [writefile file=[uploadPath]][value][/writefile] [/showif] [/formvariables] [text]task=match[/text] [/showif] This code works properly in v6 but not in v7 so something seems to be buggy in v7. When I compare the two by viewing source there's a huge section of blank lines after the comment: ... so my guess is that the first formvariables loop on this page is where the problem lies in v7 but not in v6. Sincerely, Kenneth Grome Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Code works in v6 but not in v7 (Stuart Tremain 2010)
  2. Re: [WebDNA] Code works in v6 but not in v7 (christophe.billiottet@webdna.us 2010)
  3. Re: [WebDNA] Code works in v6 but not in v7 (Kenneth Grome 2010)
  4. Re: [WebDNA] Code works in v6 but not in v7 (christophe.billiottet@webdna.us 2010)
  5. Re: [WebDNA] Code works in v6 but not in v7 ("Dan Strong" 2010)
  6. Re: [WebDNA] Code works in v6 but not in v7 (Kenneth Grome 2010)
  7. Re: [WebDNA] Code works in v6 but not in v7 ("Dan Strong" 2010)
  8. [WebDNA] Code works in v6 but not in v7 (Kenneth Grome 2010)
I'm writing a file upload script, it works in v6 but not in v7. It seems there is something strange going on in the formvariables context when the file is being uploaded. Here's the source code: [text secure=f]task=[/text] [formvariables] [showif [url][name][/url]^[url]"task"[/url]] [text]task=upload[/text] [/showif] [/formvariables] [text]uploadPath=upFile.db[/text] [showif [task]=] Upload the file:
[thisurl]" method="post" ENCTYPE="multipart/form-data">
[/showif] [showif [task]=upload] [formvariables] [showif [url][name][/url]^[url]"upFile"[/url]] [writefile file=[uploadPath]][value][/writefile] [/showif] [/formvariables] [text]task=match[/text] [/showif] This code works properly in v6 but not in v7 so something seems to be buggy in v7. When I compare the two by viewing source there's a huge section of blank lines after the comment: ... so my guess is that the first formvariables loop on this page is where the problem lies in v7 but not in v6. Sincerely, Kenneth Grome 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:

CART question (2004) Searching multiple Databases (1997) Multiple prices (1997) Resume Catalog ? (1997) [WebDNA] Flippage & SWCTools (2010) Non WebDNA forms and timed popups... (2002) WebCat2 - many [carts] on one template page? (1997) Webmerch tags? (1998) How do you cause a new window to appear behind the currentwindow? (1999) Calculating Shipping (1997) (1997) [WebDNA] v7 Stress Test and Strange Behaviour (2012) setlineitem - textc and texte (2005) Appending current [date] to a database (1997) [math date] with non-US date format (2000) Undeliverable Mail (1997) WebCommerce: Folder organization ? (1997) refreshing IE with posted .tmpl (1997) Protecting webdelivery (1997) suffix mapping, use of cache, etc. (1997)