I have a feeling that you would have found problems later on, especially with the Userid field and the select fields.
I'm still trying to find out what the correct path is for your files.
Go into html.pl sub html_record and change
Code:
$ALLOWED_EXT =~ s/\\.//g;
$ALLOWED_EXT =~ s/\$//g;
@extensions = split (/\Q|\E/o,$ALLOWED_EXT);
GRAPHIC: foreach $extension (@extensions) {
if (-e "$SAVE_DIRECTORY/$rec{$db_key}.$extension") {
print qq|<img src= "$SAVE_DIRECTORY_URL/$rec{$db_key}.$extension">|;
last GRAPHIC;
}
}
to
Code:
if (-e "
the/full/path/to/your/upload/directory/$rec{$db_key}.jpg") {
print qq|<img src= "$SAVE_DIRECTORY_URL/$rec{$db_key}.$jpg>|;
}
(I just checked to be sure that there was a
1.jpg in the $SAVE_DIRECTORY_URL -- and there was!!
At least I know that's okay.)
For debugging purposes, right now, I think it would be best to hardcode the full path.
I just noticed in your html.pl file, you have
Code:
<div align="left">
<table border="1" align="left">
<tr>
<td width="100%"><img border="0" <img src="$rec{'Image'}"></td>
</tr>
</table>
</div>
If you would like to include a field for the URL for an image instead of using the automatic displaying of images that comes with the file upload mod, you can certainly do that. But then we'll have to change some of the other code.
What do you want to do?
------------------
JPD
[This message has been edited by JPDeni (edited September 02, 1999).]