I have 2 content types, Files and Events. Files content type is used to upload files like Image, PDF, Doc etc.
Events content type has a field to attach a document which is uploaded by files content type. The requirement, in event content type I need a field called 'attach files' with maximum five attachment. On click of 'attach files' button, needs to open a page which lists all files uploaded by files content type. On hover of any files an attach button will appear and while clicking it will get attached to the event newly creating event node.