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
RE: RE: How to preview document before document upload (.pptx,.docx,.xlsx,.
Need to preview document on file select before file upload(.pptx,.docx,.xlsx,.mpeg) please suggest
Doubleclick it.
Before it's uploaded to the server, the
server-side software can't help you with any preview generation.
Or am I missing something?
In theory it would be possible to read the file using javascript and render it. It can be done, with some browsers at least, for pdf files and images. But I am not sure if there is such a library for office files (maybe there is and I just don't know it)
If the OP has a javascript library at hand that does that for pptx, docx, ... it would be doable. You could attach the action to the file upload button in the document library.