留言板
Save json file in Liferay
Hi all! I have JSONArray object than I need save as .json file on server. Of course I can call
What is the best way to do this?
toJSONString()
and write to file. But what location of this file i should set to see that file in Documents and Media in Control Panel?What is the best way to do this?
Hi Alex,
Are you working on a portlet with this file?
If it is, you can crate a folder and then add the file with the DLFileEntryLocalServiceUtil service. You have to see the parameters you need to pass.
Hope this helps
Are you working on a portlet with this file?
If it is, you can crate a folder and then add the file with the DLFileEntryLocalServiceUtil service. You have to see the parameters you need to pass.
Hope this helps
Joaquin Cabal:
Hi Alex,
Are you working on a portlet with this file?
If it is, you can crate a folder and then add the file with the DLFileEntryLocalServiceUtil service. You have to see the parameters you need to pass.
Hope this helps
The problem is I haven't request and I don't know how get repositoryId and folderId params for DLAppServiceUtil.addFileEntry(...)
How I can get default value of repositoryId and folderId?