moltar/CGI--Uploader — comment on commit 104b82bdd231c9b4f4dea6d81dd17df8d31f6cc6
File:  line 0
By markstos:

I looked a little further. It looks like there is a problem with your "up_table_map". Had it been defined properly with a key for "upload_id", then, this line would have added the ID to the hash:

$copy{$map->{upload_id} } = $id;

Your patch does the same thing. Search for "up_table_map" in your code and see what your find. Compare that to the primary key of the related database table. If the primary key is not named "upload_id", I think you've found your problem. If it has a different name, you need to use "up_table_map" to tell CGI::Uploader what it is.

Perhaps CGI::Uploader could better detect a problem like this and issue a warning or exception.