Re: Multi file HTTP upload

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 38324
interpreted = N
texte = BTW, if the user selects both files 1 and 2, they are both uploaded successfully. The problem only occurs when only the second file is uploaded w-/o the first.-- Jeff Grady wrote: > Anyone got any idea why this code does not work in > this scenario: > > A previous .tpl presents the user with the ability > to > upload two images at once. If the user uploads only > one file (being the first here, file1), it works. > BUT > if the user tries to upload only the second file > (being file2), the upload is not successful. > > Here is the code snippet that appears to be causing > the problem; > > > [text]thename1=[/text] > [formvariables] > [showif [url][name][/url]^[url]file1[/url]] > [text]file1=[value][/text] > [/showif] > [/formvariables] > > [text]thename1=[/text] > [formvariables] > [showif [url][name][/url]^[url]thename1[/url]] > [text]thename1=[value][/text] > [/showif] > [/formvariables] > > [hideif [file1]=] > > > [formvariables] > [showif [url][name][/url]^[url]file1[/url]] > [writefile > file=graphstyles/logostyle/[graphstyle]/[thename1]&secure=F][value][/writefile] > [/showif] > [/formvariables] > > [Text]filetype=[include > file=wgraphs/[thename1]][/Text] > > [/hideif] > > > > [text]thename2=[/text] > [formvariables] > [showif [url][name][/url]^[url]file2[/url]] > [text]file2=[value][/text] > [/showif] > [/formvariables] > > > [text]thename2=[/text] > [formvariables] > [showif [url][name][/url]^[url]thename2[/url]] > [text]thename2=[value][/text] > [/showif] > [/formvariables] > > > [hideif [file2]=] > > > [formvariables] > [showif [url][name][/url]^[url]file2[/url]] > [writefile > file=graphstyles/tabstyles/atabs/[graphstyle]/[thename2]&secure=F][value][/writefile] > [/showif] > [/formvariables] > > [Text]filetype=[include > file=graphstyles/tabstyles/atabs/[graphstyle]/[thename2]][/Text] > [/hideif] > > > Thanks for your help! > > jeff > > > __________________________________________________ > Do You Yahoo!? > Get email alerts & NEW webcam video instant > messaging with Yahoo! Messenger > http://im.yahoo.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/ __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.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: Multi file HTTP upload (Jeff Grady 2001)
  2. Multi file HTTP upload (Jeff Grady 2001)
BTW, if the user selects both files 1 and 2, they are both uploaded successfully. The problem only occurs when only the second file is uploaded w-/o the first.-- Jeff Grady wrote: > Anyone got any idea why this code does not work in > this scenario: > > A previous .tpl presents the user with the ability > to > upload two images at once. If the user uploads only > one file (being the first here, file1), it works. > BUT > if the user tries to upload only the second file > (being file2), the upload is not successful. > > Here is the code snippet that appears to be causing > the problem; > > > [text]thename1=[/text] > [formvariables] > [showif [url][name][/url]^[url]file1[/url]] > [text]file1=[value][/text] > [/showif] > [/formvariables] > > [text]thename1=[/text] > [formvariables] > [showif [url][name][/url]^[url]thename1[/url]] > [text]thename1=[value][/text] > [/showif] > [/formvariables] > > [hideif [file1]=] > > > [formvariables] > [showif [url][name][/url]^[url]file1[/url]] > [writefile > file=graphstyles/logostyle/[graphstyle]/[thename1]&secure=F][value][/writefile] > [/showif] > [/formvariables] > > [text]filetype=[include > file=wgraphs/[thename1]][/Text] > > [/hideif] > > > > [text]thename2=[/text] > [formvariables] > [showif [url][name][/url]^[url]file2[/url]] > [text]file2=[value][/text] > [/showif] > [/formvariables] > > > [text]thename2=[/text] > [formvariables] > [showif [url][name][/url]^[url]thename2[/url]] > [text]thename2=[value][/text] > [/showif] > [/formvariables] > > > [hideif [file2]=] > > > [formvariables] > [showif [url][name][/url]^[url]file2[/url]] > [writefile > file=graphstyles/tabstyles/atabs/[graphstyle]/[thename2]&secure=F][value][/writefile] > [/showif] > [/formvariables] > > [text]filetype=[include > file=graphstyles/tabstyles/atabs/[graphstyle]/[thename2]][/Text] > [/hideif] > > > Thanks for your help! > > jeff > > > __________________________________________________ > Do You Yahoo!? > Get email alerts & NEW webcam video instant > messaging with Yahoo! Messenger > http://im.yahoo.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/ __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.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/ Jeff Grady

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:

IIS4/IIS3 and WebCatalog registry settings (1998) [WebDNA] Build Name for 6.1 (2008) converting characters in form (1997) Search inside Include (1998) variables in or out of includes (2001) [WriteFile] problems (1997) RE: E-mailer error codes (1997) Newbie Question about a Logical AND in a show if statement.... (1999) Problem displaying search result (1997) WebCatalog 4.0.1 has been released! (2000) Smith Micro - no competition (2000) WebCatalog2 Feature Feedback (1996) [WebDNA] Send Mail and SMTP Host (2015) date and time stamp (2003) Can't find one of the WebCat examples anymore - found it! (1999) Loosing Quantity (2000) Nav. 4 probs with cart - Serious problem (1997) Using MySQL and WebDNA (2004) [tcp connect]-dumb question? (1998) F3 crashing server (1997)