首页> 中文期刊> 《计算机与现代化》 >基于HTML5大文件断点续传的实现方案

基于HTML5大文件断点续传的实现方案

         

摘要

In Web applications, it is often needed to upload a file to the server.With current file upload methods, it is difficult to deal with large file uploading and user experience is also bad.Uploading big files often failed because of network interruption and the client had to reupload.With the development of HTML5 technology, a series of API about file operation emerged.This makes it possible to use JavaScript on the client side to slice local files and further achieve the function of file broken-point contin-uingly-transferring.On this basis, this paper solves timeout problem of merging files and correctness problem of the final file on the server side.%在Web应用中,文件上传是一个常用的功能,而目前的文件上传方式在处理大文件上传方面不尽人意,常常因为文件过大或者网络中断导致上传失败,不得不重新上传.随着HTML5相关技术的发展,出现了一系列对文件操作的API,如FileList、Blob、File、FileReader等接口,使得Web端能够使用JavaScript对本地文件进行分片操作进而实现文件断点续传功能.本文在此基础上解决了服务器端文件合并过程中用户等待超时问题以及如何保证合并文件正确性的问题.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号