Re: windows file upload = weirdness

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 57550
interpreted = N
texte = Rather than using [listpath ...] I use [listwords ...] to break out the file name, like this: [listwords words=[url][tTemp][/url]&delimiters=[url]:/[/url]] [text]tFileName=[word][/text] [/listwords] tFileName now holds just the file name without the path. - brian On Apr 27, 2004, at 11:45 AM, Terry Wilson wrote: > I let people upload files to their sites. The code I wrote has been > humming along fine for the few people who use it... and all happen to > be Mac users. Now I have a Windows user, and we have a problem. It > seems that [listpath] using fileonly=t is not extracting the filename, > but the whole huge string. > > The file is uploaded and written to disk okay, and manipulated by > ImageMagick okay, and the db record gets added okay, albeit the > filename remains the entire path (with illegals stripped from it via a > piece of code), like this: > CDocumentsandSettingsDottieLarioMyDocumentsMyPictures2004-04 > -27firstcommfirstcomm.jpg. For some reason, the page stalls at the > upload page; the page which has the codes to do all the above never > appears in the browser. After the above processes, the page should > search the db for the new sku, and display a form for adding a > description and so forth. Everything up to the [replace] (below) works > as planned, with the proper incremented sku added. The text > immediately following does not display. Any ideas? I'd like to retain > the filename, but will rename it or let the user type in a name on the > incoming form if need be. When I go to the admin section later, the > record does come up, so the long filename shouldn't be breaking > anything. I'm just stymied right now. Unless it's a timing thing? > > [replace > db=../ > [db]&append=t&eqfiledatarq=[jpgfilename]]file=[jpgfilename]&cat=f&th=no > &vis=hide&rnk=10&sec=[url][sec][/url]&sku=[newsku][/replace] > > [text]sku=[newsku][/text] > > [file] added to db in HoldingTank section.

> > Assign a library, etc. now using the form below. > > [search db=../[db]&eqskudatarq=[sku]] > [founditems] > > etc. > > Thanks, > Terry > -- Brian Fries, BrainScan Software -- http://www.brainscansoftware.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: windows file upload = weirdness ( Brian Fries 2004)
  2. Re: windows file upload = weirdness ( Terry Wilson 2004)
  3. Re: windows file upload = weirdness ( Brian Fries 2004)
  4. Re: windows file upload = weirdness ( Terry Wilson 2004)
  5. Re: windows file upload = weirdness ( Terry Wilson 2004)
  6. Re: windows file upload = weirdness ( Brian Fries 2004)
  7. windows file upload = weirdness ( Terry Wilson 2004)
Rather than using [listpath ...] I use [listwords ...] to break out the file name, like this: [listwords words=[url][tTemp][/url]&delimiters=[url]:/[/url]] [text]tFileName=[word][/text] [/listwords] tFileName now holds just the file name without the path. - brian On Apr 27, 2004, at 11:45 AM, Terry Wilson wrote: > I let people upload files to their sites. The code I wrote has been > humming along fine for the few people who use it... and all happen to > be Mac users. Now I have a Windows user, and we have a problem. It > seems that [listpath] using fileonly=t is not extracting the filename, > but the whole huge string. > > The file is uploaded and written to disk okay, and manipulated by > ImageMagick okay, and the db record gets added okay, albeit the > filename remains the entire path (with illegals stripped from it via a > piece of code), like this: > CDocumentsandSettingsDottieLarioMyDocumentsMyPictures2004-04 > -27firstcommfirstcomm.jpg. For some reason, the page stalls at the > upload page; the page which has the codes to do all the above never > appears in the browser. After the above processes, the page should > search the db for the new sku, and display a form for adding a > description and so forth. Everything up to the [replace] (below) works > as planned, with the proper incremented sku added. The text > immediately following does not display. Any ideas? I'd like to retain > the filename, but will rename it or let the user type in a name on the > incoming form if need be. When I go to the admin section later, the > record does come up, so the long filename shouldn't be breaking > anything. I'm just stymied right now. Unless it's a timing thing? > > [replace > db=../ > [db]&append=t&eqfiledatarq=[jpgfilename]]file=[jpgfilename]&cat=f&th=no > &vis=hide&rnk=10&sec=[url][sec][/url]&sku=[newsku][/replace] > > [text]sku=[newsku][/text] > > [file] added to db in HoldingTank section.

> > Assign a library, etc. now using the form below. > > [search db=../[db]&eqskudatarq=[sku]] > [founditems] > > etc. > > Thanks, > Terry > -- Brian Fries, BrainScan Software -- http://www.brainscansoftware.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/ Brian Fries

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:

2.0.1 new commands and contexts (1997) addlineitem is not saving a variable. (2004) searchable list archive (1997) MS Access data conversion (2001) Having SSL pages on separate server (1999) [WebDNA] Resolve IP to Domain (2018) Include a big block of text (1997) Summing fields (1997) Authorize.net? (2003) Help name our technology! I found it (1997) Undeclared variables (2004) Bug Report, maybe (1997) I found a bug ... (1997) Problem with Formulas.db (1998) showcart is slow (1998) Running _every_ page through WebCat ? (1997) Help! WebCat2 bug (1997) [WebDNA] SendMail (2008) Database wiped clean (2005) [WebDNA] Problem with Sendmail (2012)