Gossamer Forum
Home : Products : DBMan : Customization :

Upload mod fails to recognize different IDs

Quote Reply
Upload mod fails to recognize different IDs
I've successfully (I think) installed the upload mod and uploaded several files. I'm letting DBman set the ID, so it's doing it numerically -- 1, 2, 3, etc.

When I search for files (say by category, for example), the program returns 1 line with links to downloads that have similar IDs.

So a search for "council minutes" returns the results for record #5, but with links to downloads 5, 50, 51, 52, 53, etc...

You can see this in action at:

http://www.sacomaine.org/cgi-bin/downloaddb/db.cgi

Login with the admin/admin and search for "council minutes"

Thanks,

John
Quote Reply
Re: [jgold723] Upload mod fails to recognize different IDs In reply to
If you are using the single file upload mod then check in sub html_record

and be sure you have the latest fixes (available in the FAQ):

Change:

$file_test = $rec{$db_key} . ".";

To:

$file_test = $rec{$db_key};

Change:

if ($file =~ /^$file_test/) {

To:

if ($file =~ /^$file_test\./) {

You may need to make the same changes in the following subs:

sub add_record, sub validate_upload, sub delete_records

Hope this helps, if not the latest fixes or updates to the mods can usually be located in the FAQ noted below.

Unoffical DBMan FAQ
http://redundantcartridge.com/dbman/