Gossamer Forum
Home : Products : DBMan : Customization :

File Upload Problems

Quote Reply
File Upload Problems
I am using the newer integrated version of file upload and it works fine but we have a big problem with the display (so maybe it's not working so well).

When we uploaded the first file for record 1 everything was great. When we uploaded the file for record 10, 11, 12, 13 etc., record 1 displays the graphics for ALL records that start with a 1. The same thing happend to record 2, 20, 21, 22 etc.

Solutions???

Quote Reply
Re: File Upload Problems In reply to
You're using the mod that is in the file at http://www.jpdeni.com/...ods/file_upload2.txt -- the single file upload?

Check to be sure that the following is in sub html_record:

Code:

$file_test = $rec{$db_key};
foreach $file (@files) {
if ($file =~ /^$file_test\./) {
print qq|<img src= "$SAVE_DIRECTORY_URL/$file">|;
$graphic_found=1;
}
}
It should be looking for a file named the key value of the record.something



JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: File Upload Problems In reply to
What you gave me created the error,

Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: syntax error at ./html.pl line 453, near "$file ("
syntax error at ./html.pl line 458, near "}"


What I had was,

$file_test = $rec{$db_key} . ".";
foreach $file (@files) {
if ($file =~ /^$file_test/) {
print qq|<img src= "$SAVE_DIRECTORY_URL/$file">|;
$graphic_found=1;
}
}

Any ideas?

Richard Bilger
RBilger@MERGInet.com
MERGInet Medical Resources
http://www.merginet.com
Quote Reply
Re: File Upload Problems In reply to
The syntax I have is correct. I just checked it. (However, I had made an error when I created the link, so you might have had trouble copying the text.)

Someone else had the same problem a few weeks ago and what I posted was the solution I came up with. He said it worked perfectly.

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: File Upload Problems In reply to
OK, that worked now. Thanks for fixing it. As always, I appreciate your help.

Richard Bilger
RBilger@MERGInet.com
MERGInet Medical Resources
http://www.merginet.com