![](/img/trans.png)
[英]How can i display any type image,doc,excel,pdf in that preview image box
[英]Is there any way to show preview of pdf, docx, image, excel and other type of files selected in react?
我目前正在創建一個在兩個用戶之間上傳文件的聊天應用程序,有沒有辦法顯示預覽或上傳文件時顯示文件預覽而不是顯示 url 反應?
You can use: https://www.npmjs.com/package/react-file-viewer , it supports Images: png, jpeg, gif, bmp, including 360-degree images pdf csv xslx docx Video: mp4, webm Audio: mp3 可能您正在尋找一些現有的軟件包。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.