Hi,
Add the File dropper widget to the associated object(data view) of the file document entity(Entity A). So that Entity A object wont be duplicated.
Add the File dropper to History Object and map the association to context in the file dropper widget as shown below
By this way, whenever file documents are added to the application those objects will be committed