Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
javascript get file from LIferay 7 document and media section
Hi,
How do I use javascript to get a image file / PDF file uploaded to Liferay 7 docment and media?
I know there is Liferay.Service('/journalarticle/.....') can be called from javscript to retrieve web content article.
But what is the API to retrieve images or PDF in document and media section?
Is there anywhere I can see all the available liferay API to be called by javascript?
Thanks
Hi,
The APIs available to javascript are listed at "/api/jsonws".
You can use the below to retrieve File Entry information.
http://localhost:8080/api/jsonws?contextName=&signature=/dlapp/get-file-entry-3-long-long-java.lang.String