Yes, within the same recID.
Sure, it's the (recid, filename) who is unique (or (recid, filename, category) maybe).
BTW, a thing to verify is the document category: a main file called thesis.zip and an additional file called thesis.zip. But we should forbid this anyway. (And perhaps refactor out the main/additional file attribute distinction too.)
Indeed we have categories (public, restricted, private) instead, and being able to handle that cleanly would be nice. So far I just ported my patch in our spcific branch, but a more generic method, that could be templatized, would be nice. -- Frédéric
