Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Big file uploading and continuous uploading method and device for browser or server

A browser and server technology, applied to electrical components, transmission systems, etc., can solve problems such as high repetition rate, inability to verify the correctness of file data, and inability to guarantee data integrity, so as to ensure integrity, reduce operating procedures, and reduce The effect of development costs

Inactive Publication Date: 2016-06-01
SINA COM TECH (CHINA) CO LTD
View PDF7 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0013] d) Although the solution uses FileAPI for file continuation and fragment upload, the solution uses the file name and file size as the unique index of the file, which has a high repetition rate and cannot be used to support fast uploading of files. At the same time, the solution cannot verify the correctness of the file data, and cannot guarantee the integrity of the data of the file uploaded by the user

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Big file uploading and continuous uploading method and device for browser or server
  • Big file uploading and continuous uploading method and device for browser or server
  • Big file uploading and continuous uploading method and device for browser or server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0048] figure 1 It is a flow chart of a method for uploading and resuming a large file for a browser according to Embodiment 1 of the present invention. The browser can be a browser based on HTML5FileAPI, see figure 1 , which includes the following steps:

[0049] Step 110: Intercepting part of the content of the file to calculate the secure hash algorithm SHA1 to obtain the SHA1 value of the file.

[0050] The reason for using the SHA1 algorithm in this step is that SHA1 is currently a relatively widely used algorithm, and its performance is relatively low for browsers. If other algorithms are used, the overall performance may be reduced due to computational complexity. Intercepting part of the content of the file for calculation instead of intercepting the entire file will help reduce the resource consumption of the server and client, and reduce the load on the server.

[0051] Step 120: Use the SHA1 value of the file to inquire whether the file already exists in the serv...

Embodiment 2

[0059] image 3 It is a flow chart of the method for uploading and resuming a large file to a server according to Embodiment 2 of the present invention. refer to image 3 , which includes the following steps:

[0060] Step 210: Receive the file query request sent by the browser, the file query request includes the secure hash algorithm SHA1 value of the file to be queried; wherein, the SHA1 value is generated by the browser by intercepting part of the content of the file to be queried and performing SHA1 calculation of.

[0061] Step 220: Return the query result of whether the file exists to the browser.

[0062] Step 230: Receive a plurality of fragmented data uploaded by the browser when the query result is non-existent. The fragmented data includes file fragments and their information digest algorithm MD5 values. Preferably, the segment data may include the serial number of the file segment, the content of the file segment and the MD5 value of the information digest alg...

Embodiment 3

[0070] Figure 4 It is a functional block diagram of a browser in Embodiment 3 of the present invention. The browser correspondingly executes the method in Embodiment 1, such as Figure 4 As shown, the browser includes: a SHA1 calculation module 310, which is used to intercept part of the content of the file and perform a secure hash algorithm SHA1 calculation to obtain the SHA1 value of the file; a file query module 320, which is used to use the SHA1 value of the file to query whether the server has There is a file; upload and resume module 330, which includes file segmentation submodule 331, MD5 calculation submodule 332, fragmentation upload submodule 333 and fragmentation resume submodule 334; file division submodule 331 is used for if not If there is a file, the file is fragmented to obtain a plurality of file fragments, and the MD5 calculation sub-module 332 is used to generate verification information of each file fragment, wherein the verification information of each ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a big file uploading and continuous uploading method and device for a browser or a server. The big file uploading and continuous uploading method for the browser comprises the following steps: capturing a part of content of a file and carrying out secure Hash algorithm SHA1 calculation to obtain an SHA1 value of the file; searching the server to judge whether the server has the file according to the SHA1 value of the file; if not, carrying out fragment processing on the file to obtain a plurality of file fragments, generating verification information of each file fragment, and carrying out fragment uploading on each file fragment and the verification information thereof, wherein the verification information of each file fragment comprises an MD5 value generated by carrying out MD5 calculation on a part of captured content of the file fragment; and if the server has the file but the file is not uploaded completely, carrying out fragment uploading on each un-uploaded file fragment of the file and the verification information thereof. SHA1 and MD5 sampling modes are optimized, and performance is improved.

Description

technical field [0001] The invention relates to browser file uploading, in particular to a method and device for uploading and resuming large files in a browser based on HTML5FileAPI. Background technique [0002] At present, there are basically four solutions for uploading large files: a) upload by installing the client, b) upload by installing a browser plug-in, c) upload by Flash, and d) upload by browser through resumable.is. [0003] First describe the relevant technical terms involved in this application: [0004] Browser: A browser refers to a software that can display the content of HTML files on a web server or file system and allow users to interact with these files. [0005] HTML5: The fifth major revision of Hypertext Markup Language (HTML), the core language of the World Wide Web and the next application of Standard Generalized Markup Language. [0006] FileAPI: FileAPI (file API, API (Application Programming Interface, application programming interface) is a ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L29/08
CPCH04L67/1095
Inventor 张良
Owner SINA COM TECH (CHINA) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products