chenchicheng / file_viewer Goto Github PK
View Code? Open in Web Editor NEW使用springboot搭建的项目,用于文件的预览。支持文件类型:文本文件 、压缩文件 、office文件、pdf文件等。
使用springboot搭建的项目,用于文件的预览。支持文件类型:文本文件 、压缩文件 、office文件、pdf文件等。
作者请问,
// 判断文件类型,不同的文件做不同的展示
if (FileType.pdfType.contains(subFix.toLowerCase())) {
return "html";
}
这个怎么解释,我改成office映射到具体网页
为啥需要保存临时文件,直接返回不行吗?这样操作会使首次响应特别慢,而在线解析是不是会更好一些,若要保存文件可以多线程存储
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.