首页 | 本学科首页   官方微博 | 高级检索  
     

基于HTML5大文件断点续传的实现方案
引用本文:王莉敏,梁正和,段全锋.基于HTML5大文件断点续传的实现方案[J].计算机与现代化,2016,0(3):91.
作者姓名:王莉敏  梁正和  段全锋
摘    要:在Web应用中,文件上传是一个常用的功能,而目前的文件上传方式在处理大文件上传方面不尽人意,常常因为文件过大或者网络中断导致上传失败,不得不重新上传。随着HTML5相关技术的发展,出现了一系列对文件操作的API,如FileList、Blob、File、FileReader等接口,使得Web端能够使用JavaScript对本地文件进行分片操作进而实现文件断点续传功能。本文在此基础上解决了服务器端文件合并过程中用户等待超时问题以及如何保证合并文件正确性的问题。

关 键 词:大文件上传  HTML5  File  API  断点续传  文件合并  
收稿时间:2016-03-17

Broken-point Continuingly-transferring Scheme of Large Files Based on HTML5
WANG Li-min,LIANG Zheng-he,DUAN Quan-feng.Broken-point Continuingly-transferring Scheme of Large Files Based on HTML5[J].Computer and Modernization,2016,0(3):91.
Authors:WANG Li-min  LIANG Zheng-he  DUAN Quan-feng
Abstract: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 continuingly-transferring. On this basis, this paper solves timeout problem of merging files and correctness problem of the final file on the server side.
Keywords:large file uploading  HTML5  file API  broken-point continuingly-transferring  files merging  
点击此处可从《计算机与现代化》浏览原始摘要信息
点击此处可从《计算机与现代化》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号