Conclusion:
When you log in with an administrator in Liferay, navigate to Control Panel->documents and Media, and add basicdocument under the specified folder, the server does the following things:
(1) Add a record to the Dlfileentry table to represent the added document.
(2) Add a record in the Dlfileentryversion table and associate it to the Dlfileentry table through the Fileentryid foreign key to record the version information of the newly added document.
(3) Update the timestamp of the latest post submission in the Dlfolder table.
(4) According to the server for the specific implementation of Com.liferay.portlet.documentlibrary.store, the file virus scanning first (in the portal.properties has a switch), The uploaded resource file is then saved to a specific location in the store.
There are 5 implementations in the store, and I can at least guarantee that if you use Filesystemstore, the resource file is put into the $liferay_home/data/document_library directory, and the end file name is no longer the file name of the upload, but <version_number>. If you are using Dbstore, the resource file will eventually be placed in the Database Dlcontent table, and resource files (such as pictures) are stored as blobs.
(5) Add a record in the Assetentry table, which is associated with the dlfileentry through the CLASSPK foreign key, because file is an asset, so you must also leave a record in this table.
Specific analysis:
Liferay Control Panel, when you create a folder, and then add a basic Document to it:
To view the browser debug information: