This is a migrated thread and some comments may be shown as answers.

File preview in Upload Component

1 Answer 858 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jiyo
Top achievements
Rank 2
Jiyo asked on 30 Oct 2019, 04:37 AM
Hello, I'm using the Upload component for file uploading and i need to see a preview of the file. Is it possible? The file can be any type(img,pdf,doc..)

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 30 Oct 2019, 07:55 AM

Hello, Jiyo,

Currently, the Upload component allows custom rendering of the files chosen for Upload:

https://www.telerik.com/kendo-react-ui/components/upload/custom-rendering/

I have made an example which will preview images:

https://stackblitz.com/edit/react-ja9ets?file=app/main.jsx

As for previewing other types of files, I can suggest checking this article:

https://stackoverflow.com/questions/27957766/how-do-i-render-a-word-document-doc-docx-in-the-browser-using-javascript

Regards,
Stefan
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Jiyo
Top achievements
Rank 2
Answers by
Stefan
Telerik team
Share this question
or