java-web文件上传下载,可解决多个安全访问问题

上传者: 37902949 | 上传时间: 2021-05-25 10:43:12 | 文件大小: 2.74MB | 文件类型: ZIP
文件上传下载,可解决多个安全访问问题。 文件上传的细节: 1. 为保证服务器安全,上传文件应该放在外界无法直接访问的目录下,比如放于WEB-INF目录下。 2. 为防止文件覆盖的现象发生,要为上传文件产生一个唯一的文件名。 3. 为防止一个目录下面出现太多文件,要使用hash算法打散存储。 4. 要限制上传文件的最大值。 5. 要限制上传文件的类型,在收到上传文件名时,判断后缀名是否合法。 博客:http://blog.csdn.net/qq_37902949/article/details/78986446

文件下载

资源详情

[{"title":"( 15 个子文件 2.74MB ) java-web文件上传下载,可解决多个安全访问问题","children":[{"title":"文件上传下载","children":[{"title":"文件上传下载.doc <span style='color:#111;'> 118.50KB </span>","children":null,"spread":false},{"title":"FileUpDownLoad","children":[{"title":"upload","children":[{"title":"6","children":[{"title":"9","children":[{"title":"d5e930a2-30ea-420b-9588-e41325334817_中国.jpg <span style='color:#111;'> 27.87KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"META-INF","children":[{"title":"MANIFEST.MF <span style='color:#111;'> 36B </span>","children":null,"spread":false}],"spread":true},{"title":"WEB-INF","children":[{"title":"web.xml <span style='color:#111;'> 1008B </span>","children":null,"spread":false},{"title":"classes","children":[{"title":"com","children":[{"title":"gx","children":[{"title":"servlet","children":[{"title":"UploadServlet.class <span style='color:#111;'> 5.90KB </span>","children":null,"spread":false},{"title":"DownloadServlet.class <span style='color:#111;'> 3.64KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"lib","children":[{"title":"jsf-impl.jar <span style='color:#111;'> 1.78MB </span>","children":null,"spread":false},{"title":"jsf-api.jar <span style='color:#111;'> 592.99KB </span>","children":null,"spread":false},{"title":"jstl-impl.jar <span style='color:#111;'> 379.45KB </span>","children":null,"spread":false},{"title":"commons-fileupload-1.2.1.jar <span style='color:#111;'> 56.42KB </span>","children":null,"spread":false},{"title":"commons-io-1.3.2.jar <span style='color:#111;'> 85.72KB </span>","children":null,"spread":false},{"title":"javax.servlet.jsp.jstl.jar <span style='color:#111;'> 43.61KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"upload.jsp <span style='color:#111;'> 946B </span>","children":null,"spread":false},{"title":"download.jsp <span style='color:#111;'> 551B </span>","children":null,"spread":false},{"title":"message.jsp <span style='color:#111;'> 359B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明