PDA

View Full Version : Duplicate Attachments


Guru
11-02-2001, 03:20 AM
I like the option of restricting attachments to one upload (unique). It reduces the size of my database.

But, when the check for duplicate attachments is done, wouldn't it be just as easy to substitute a link to the original attachment, rather than displaying an error message? All the information to do that is already there in the code, I think.

Guru
11-02-2001, 07:40 PM
Bump... Anyone done this?

I see in the admin/functions.php code that would do exactly what I'm asking for, but it is commented out. Does anyone know why? Can I just change the function to make this work? Is there a downside? I do NOT have a test board, so it would be really great if someone could test this out, and let us all know what changes need to be made.