>> 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 >> 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 DOWNLOAD WEBDNA NOW! 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...
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.- brianOn 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.
Top Articles:
Talk List
Related Readings:
Nested [SEARCH] and [REPLACE] problem. (1997)
Trouble with formula.db (1997)
rn doesn't work on date fields (1998)
missing records (1998)
WebCat2b15MacPlugin - [protect] (1997)
Where's Cart Created ? (1997)
Session ID Equivalent (2003)
possible to oscillate between a [redirect] and [authenticate] every other login attempt? (2000)
SetHeader not Working (2006)
Meet your competition (2000)
Include a big block of text (1997)
Multiple prices (1997)
WebMerchant Config problems (2000)
MacAutorize and T1 (1998)
Great product and great job ! (1997)
[WebDNA] Quick Date Question (2008)
carrying values forward (1998)
Highlighting words found in a keyword search (2003)
Training Tapes Improved (1998)
price totals (2003)