Re: Separating My File Field

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 55738
interpreted = N
texte = on 1/27/04 3:38 PM, Justin Carroll at justincarroll@sanduskyregister.com so noted... > I have a nice sized form with about 15 fields on it. One of them happens= to > be a file field where the user will be uploading a file. I know to do th= is I > have to have my form's enctype set to multi-part form data; however, I wa= s > wondering if anyone has thought of a way to process all the other fields > normally and then just deal with the file field by itself? Hopefully I'm > communicating this correctly. >=20 > I just don't want to send my form to a processing page and then have to l= oop > through the formvariables to pick out all my extra data just because I ha= d a > file field on my form. Thanks. Here's a generic snippet that will take anything that's *not* a file and create a text variable of the same name as the ones passed in the form (cod= e goes all on one line). [formvariables][hideif [url][name][/url]^filename=3D%22][text][middle startAfter=3Dname=3D"&endBefore=3D"][name][/middle]=3D[value][/text][/hideif][/form= v ariables] (one week d=E9j=E0 vu : ) Rob Marquardt Designer/Resident Wirehead Toast Design 800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Separating My File Field ( Gary Krockover 2004)
  2. Re: Separating My File Field ( Rob Marquardt 2004)
  3. Separating My File Field ( Justin Carroll 2004)
on 1/27/04 3:38 PM, Justin Carroll at justincarroll@sanduskyregister.com so noted... > I have a nice sized form with about 15 fields on it. One of them happens= to > be a file field where the user will be uploading a file. I know to do th= is I > have to have my form's enctype set to multi-part form data; however, I wa= s > wondering if anyone has thought of a way to process all the other fields > normally and then just deal with the file field by itself? Hopefully I'm > communicating this correctly. >=20 > I just don't want to send my form to a processing page and then have to l= oop > through the formvariables to pick out all my extra data just because I ha= d a > file field on my form. Thanks. Here's a generic snippet that will take anything that's *not* a file and create a text variable of the same name as the ones passed in the form (cod= e goes all on one line). [formvariables][hideif [url][name][/url]^filename=3D%22][text][middle startAfter=3Dname=3D"&endBefore=3D"][name][/middle]=3D[value][/text][/hideif][/form= v ariables] (one week d=E9j=E0 vu : ) Rob Marquardt Designer/Resident Wirehead Toast Design 800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.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://webdna.smithmicro.com/ Rob Marquardt

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:

Extended [ConvertChars] (1997) when is failing to [URL]ize values in a comparison risky? (1999) Hierarchy of form/text/math variables (2000) Web Site (2000) searching for items that begin with a number (2004) NT Version on IIS 4.0 (1997) StandardConversions.db (1998) Speeding up my [showif] performance (1999) Nested tags count question (1997) multi-table date sort problem thingy (2002) File Upload (1997) Bug? (1997) E-mailer error codes (1997) [math] show=F exists? (1997) migrating from MacOS to unix (2000) OT: Safari/Mac - frames and iframes acting weird (2007) ooops...WebCatalog [FoundItems] Problem - LONG - (1997) Redirect frame targets (1998) [SHOWIF]s and empty arguments (1997) carriage returns in data (1997)