Get record ID and current module

Is there a way to get the current record ID and current module not using Bean?

I am creating a custom field type. Multi-File Upload. I need using a table that relates the uploaded files to the record and module. Is there a function I can call that would give me this information?

Recently someone contributed a brand new “collection field” and a “collection file field”

Maybe this will provide you with an easier solution?

In theory it sounds wonderful. But it doesn’t add any new fields as it claims. (Collection, Collection Files)