掲示板

RE: Using addFileEntry method to add File

thumbnail
11年前 に Gaurav Jain によって更新されました。

RE: Using addFileEntry method to add File

Regular Member 投稿: 145 参加年月日: 11/01/31 最新の投稿
Hi Sourabh, if you have liferay source you may check the implementation of this method in its impl class DLFileEntryLocalServiceImpl.

There you wll see that it generates an entity in db as well it uploads file in data store:
// File

		if (file != null) {
			DLStoreUtil.addFile(
				user.getCompanyId(), dlFileEntry.getDataRepositoryId(), name,
				false, file);
		}
		else {
			DLStoreUtil.addFile(
				user.getCompanyId(), dlFileEntry.getDataRepositoryId(), name,
				false, is);
		}