Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3006151
By: theo2005
>From my point of view:
The programm flow definitely did not pass the code you describe if we are using
the db to store the files.
If I write
fileName = "foo";
the whole file path was written to my db:
if (!Util.isNull(fileName)) {
File f = new File(fileName);
//fileName = f.getName();
fileName = FileUtil.filename(f.getName());
// 2004-08-05-HKK/Dziugas Baltrunas:
// FileItem always returns the full pathname!
if ((fileName.indexOf('/') > 0) || (fileName.indexOf('\')
> 0))
{
int pos;
if (fileName.lastIndexOf('\')
> fileName.lastIndexOf('/'))
pos = fileName.lastIndexOf('\');
else
pos = fileName.lastIndexOf('/');
if (pos > 0 && pos < fileName.length() - 1)
{
fileName = fileName.substring(pos + 1);
}
}
// for debug purposes only:
fileName = "Foo";
I'm not sure were in code we have to fix the problem.
regards Theodor
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=55830
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
DbForms Mailing List
http://www.wap-force.net/dbforms