plus sign giving me problems in convertchars
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 60891
interpreted = N
texte = I have a conversion db called noillegals.db that I run filenames (minus the extension) through when uploading images. It strips out !, @, +, $, spaces, periods, commas, etc by converting them to nothing. It works fine, except for a filename with a + in it. Is there anything special about a + sign that webcat interprets differently internally? Not only does it not strip the +, but when it finally writes the record to the DB, it changes the + to a space. So I get blahblah+blah.jpg written to disk, and blahblah blah.jpg written into the DB. Even after a good night's sleep, I'm stymied.noillegals.dbfromto
..+=#etc. for the usual suspects[text]newfilename=[convertchars db=^noillegals.db][origfilename][/convertchars][/text]Then later in the page, [newfilename].jpg is used in a [shell] with Imagemagick to set the final file to disk, and in a [replace] to populate my DB. Convertchars is only used the one time in the beginning.Thanks,Terry-------------------------------------------------------------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:
I have a conversion db called noillegals.db that I run filenames (minus the extension) through when uploading images. It strips out !, @, +, $, spaces, periods, commas, etc by converting them to nothing. It works fine, except for a filename with a + in it. Is there anything special about a + sign that webcat interprets differently internally? Not only does it not strip the +, but when it finally writes the record to the DB, it changes the + to a space. So I get blahblah+blah.jpg written to disk, and blahblah blah.jpg written into the DB. Even after a good night's sleep, I'm stymied.noillegals.dbfromto ..+=#etc. for the usual suspects[text]newfilename=[convertchars db=^noillegals.db][origfilename][/convertchars][/text]Then later in the page, [newfilename].jpg is used in a [shell] with Imagemagick to set the final file to disk, and in a [replace] to populate my DB. Convertchars is only used the one time in the beginning.Thanks,Terry-------------------------------------------------------------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/
Terry Wilson
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:
b12 cannot limit records returned and more. (1997)
service stop and restart (1997)
NetForms for email (1998)
search form problem.. (1997)
Keep away (1997)
[OT] Industry standard for missing orders (2003)
Writing custom WebCat searches?? (2000)
Showif, Hideif reverse logic ? (1997)
[SearchString] usage (1997)
[writefile] remotely (2000)
Help! WebCat2 bug (1997)
Browser based content... (2004)
Single Link browsing (1997)
EIMS Problems (1997)
WebCat/PDF Integration Time Est (2000)
[WebDNA] [middle] << assistance need (2016)
WC2b15 - [HTMLx]...[/HTMLx] problems SOLVED! (1997)
using webcat with web* & web*SSL (1998)
WebDelivery: One step closer !! (1997)
Preserving form data (1999)