Re: [WebDNA] File Upload Problem - FIXED!

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103727
interpreted = N
texte = Ok, turns out that I did not have all three potential delimeters and I also had a [showif [fullfilename]^\] wrapped around the [listwords], which was unnecessary and which was somehow preventing the execution of the listwords (though I'm not exactly sure why). It seems to be working now! I also plan to implement a similar "noillegals.db" since I've run into the situation where a "#" in the filename ended up breaking some code. Thanks for the posts. I greatly appreciate it! Brian ----- Original Message ----- From: "Terry Wilson" To: Sent: Thursday, October 01, 2009 5:10 PM Subject: Re: [WebDNA] File Upload Problem >A little while ago I uploaded a File Upload tool to the modules area of the >website. I know exactly what you are experiencing, and my code handles it >with this: > > [listwords words=[fullfilename]&delimiters=:/\] > [text]origfilename=[convertchars > db=noillegals.db][word][/convertchars][/text] > [/listwords] > > and of course by the time it hits the last "word", that will be your file > name. The trick was to use the 3 potential delimiters. (noillegals.db > strips out spaces, punctuation, ampersands, quotemarks, etc.) > > Terry > > >>Sorry for the small amount of information. I'm troubleshooting a >>company-critical web service and wanted to get something out to the talk >>list fast in case it was a known/easy issue. I'm checking into it now and >>will post more info as I get it. >> >>What the web service does is allow someone to upload a file to a specified >>directory on the server. A database is maintained that tracks the >>filename, directory, person who uploaded, description, etc. It looks like >>the file is actually uploaded, but the database entry is not getting made. >>It seems that the name of the file that is uploaded contains the full path >>of the file on the computer from which the file is being uploaded. In >>other words, it appears that the pathname is not being parsed such that >>only the filename remains. I think that perhaps this full pathname, which >>includes back and forward slashes, is probably making the subsequent >>WebDNA code problems. >> >>No need to respond further at this time. Let me get a bit more information >>first. >> >>Thanks, >>Brian >> >> >>----- Original Message ----- From: "Govinda" >> >>To: >>Sent: Thursday, October 01, 2009 4:09 PM >>Subject: Re: [WebDNA] File Upload Problem >> >> >>> On Oct 1, 2009, at 1:50 PM, Brian Wachter wrote: >>> >>>> I have a WebDNA-powered page that allows a user to select a file from >>>> their computer and upload it to the server. The WebDNA code was >>>> written for v4.5.1 and worked for years without a problem across >>>> several browsers. I recently moved to WebDNA v6.2 for Intel Mac >>>> (xserve) and this problem has started to occur for specific browsers >>>> (IE6, IE7). It works fine for Firefox 3.5.3 and IE8. >>>> >>>> Any suggestions? >>>> >>>> Thanks, >>>> Brian >>> >>> Brian >>> >>> maybe someone who is experiencing the same thing will jump in and say >>> the answer... but for others (at least me), the initial response is, >>> "what problem?". You never say what is the issue.. something about >>> file upload is now failing on those browsers.. but what specifically >>> happens? >>> >>> -Govinda >>> --------------------------------------------------------- >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >>> archives: http://mail.webdna.us/list/talk@webdna.us >>> old archives: http://dev.webdna.us/TalkListArchive/ >>> Bug Reporting: >>> http://forum.webdna.us/eucabb.html?page=topics&category=288 >> >>--------------------------------------------------------- >>This message is sent to you because you are subscribed to >>the mailing list . >>To unsubscribe, E-mail to: >>archives: http://mail.webdna.us/list/talk@webdna.us >>old archives: http://dev.webdna.us/TalkListArchive/ >>Bug Reporting: http://forum.webdna.us/eucabb.html?page=topics&category=288 > > -- > Terry Wilson | terry@terryfic.com | http://terryfic.com > http://WhosComing.com - a simplified, affordable online reservation system > http://TightJacket.com -- stylish protection for your laptop > -------------------------------------------------------------------------- > Attitude is the only difference between ordeal and adventure. > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ > Bug Reporting: http://forum.webdna.us/eucabb.html?page=topics&category=288 Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] File Upload Problem - FIXED! ("Brian Wachter" 2009)
Ok, turns out that I did not have all three potential delimeters and I also had a [showif [fullfilename]^\] wrapped around the [listwords], which was unnecessary and which was somehow preventing the execution of the listwords (though I'm not exactly sure why). It seems to be working now! I also plan to implement a similar "noillegals.db" since I've run into the situation where a "#" in the filename ended up breaking some code. Thanks for the posts. I greatly appreciate it! Brian ----- Original Message ----- From: "Terry Wilson" To: Sent: Thursday, October 01, 2009 5:10 PM Subject: Re: [WebDNA] File Upload Problem >A little while ago I uploaded a File Upload tool to the modules area of the >website. I know exactly what you are experiencing, and my code handles it >with this: > > [listwords words=[fullfilename]&delimiters=:/\] > [text]origfilename=[convertchars > db=noillegals.db][word][/convertchars][/text] > [/listwords] > > and of course by the time it hits the last "word", that will be your file > name. The trick was to use the 3 potential delimiters. (noillegals.db > strips out spaces, punctuation, ampersands, quotemarks, etc.) > > Terry > > >>Sorry for the small amount of information. I'm troubleshooting a >>company-critical web service and wanted to get something out to the talk >>list fast in case it was a known/easy issue. I'm checking into it now and >>will post more info as I get it. >> >>What the web service does is allow someone to upload a file to a specified >>directory on the server. A database is maintained that tracks the >>filename, directory, person who uploaded, description, etc. It looks like >>the file is actually uploaded, but the database entry is not getting made. >>It seems that the name of the file that is uploaded contains the full path >>of the file on the computer from which the file is being uploaded. In >>other words, it appears that the pathname is not being parsed such that >>only the filename remains. I think that perhaps this full pathname, which >>includes back and forward slashes, is probably making the subsequent >>WebDNA code problems. >> >>No need to respond further at this time. Let me get a bit more information >>first. >> >>Thanks, >>Brian >> >> >>----- Original Message ----- From: "Govinda" >> >>To: >>Sent: Thursday, October 01, 2009 4:09 PM >>Subject: Re: [WebDNA] File Upload Problem >> >> >>> On Oct 1, 2009, at 1:50 PM, Brian Wachter wrote: >>> >>>> I have a WebDNA-powered page that allows a user to select a file from >>>> their computer and upload it to the server. The WebDNA code was >>>> written for v4.5.1 and worked for years without a problem across >>>> several browsers. I recently moved to WebDNA v6.2 for Intel Mac >>>> (xserve) and this problem has started to occur for specific browsers >>>> (IE6, IE7). It works fine for Firefox 3.5.3 and IE8. >>>> >>>> Any suggestions? >>>> >>>> Thanks, >>>> Brian >>> >>> Brian >>> >>> maybe someone who is experiencing the same thing will jump in and say >>> the answer... but for others (at least me), the initial response is, >>> "what problem?". You never say what is the issue.. something about >>> file upload is now failing on those browsers.. but what specifically >>> happens? >>> >>> -Govinda >>> --------------------------------------------------------- >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >>> archives: http://mail.webdna.us/list/talk@webdna.us >>> old archives: http://dev.webdna.us/TalkListArchive/ >>> Bug Reporting: >>> http://forum.webdna.us/eucabb.html?page=topics&category=288 >> >>--------------------------------------------------------- >>This message is sent to you because you are subscribed to >>the mailing list . >>To unsubscribe, E-mail to: >>archives: http://mail.webdna.us/list/talk@webdna.us >>old archives: http://dev.webdna.us/TalkListArchive/ >>Bug Reporting: http://forum.webdna.us/eucabb.html?page=topics&category=288 > > -- > Terry Wilson | terry@terryfic.com | http://terryfic.com > http://WhosComing.com - a simplified, affordable online reservation system > http://TightJacket.com -- stylish protection for your laptop > -------------------------------------------------------------------------- > Attitude is the only difference between ordeal and adventure. > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ > Bug Reporting: http://forum.webdna.us/eucabb.html?page=topics&category=288 "Brian Wachter"

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:

show all problem (1997) Date comparison using showif (2003) [WebDNA] TCPConnect Help (2014) [WebDNA] Acceleratin Search / Index Performance in a Formum Service (2013) why am I getting an authenticate dialog with no [protect]? (2000) SSL do I need it?? (1998) why .HTML pages no processing? (2000) WCS Newbie question (1997) Lineitems [text*] (2004) Help! WebCat2 bug (1997) [format] question (2000) Setting up WebCatalog with Retail Pro data (1996) [WebDNA] Difference in time calculations (2017) shipping costs (1997) There's a bug in the math context ... (1997) problems with WebCat-Plugin (1997) [HIDEIF] inside [FOUNDITEM] (1997) required fields (1999) Country & Ship-to address & other fields ? (1997) Locking up with WebCatalog... (1997)