File uploading method and device

A file upload and file technology, applied in the Internet field, can solve problems such as slow speed, and achieve the effect of improving upload speed and uploading large files quickly

Active Publication Date: 2017-05-10
TENCENT TECH (SHENZHEN) CO LTD
View PDF8 Cites 25 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Embodiments of the present invention provide a method and device for uploading files, so as to at least solve the technical problem of slow file uploading at the front end of the web

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
  • File uploading method and device
  • File uploading method and device
  • File uploading method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] According to the embodiment of the present invention, an embodiment of a method for uploading a file is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and, Although a logical sequence is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than here.

[0026] Optionally, in this embodiment, the above file upload method can be applied to figure 1 In the hardware environment formed by the terminal 10 and the server 30 shown, the terminal can establish a connection with the server through a network. Among them, processors can be set on both the terminal and the server.

[0027] The aforementioned networks include, but are not limited to: wide area networks, metropolitan area networks, or local area networks. Preferably, the aforementioned network is a local area network.

[0028] The aforeme...

Embodiment 2

[0104] According to the embodiment of the present invention, there is also provided a method and device for implementing the above-mentioned file upload, such as Picture 10 As shown, the device includes:

[0105] The obtaining unit 20 is configured to obtain the received file to be uploaded; optionally, the file to be uploaded can be obtained through a web page.

[0106] The judging unit 40 is used to judge whether the data capacity of the file to be uploaded is greater than the capacity threshold.

[0107] The dividing unit 60 is configured to divide the file to be uploaded into multiple data blocks if the data capacity of the file to be uploaded is greater than the capacity threshold.

[0108] The uploading unit 80 is configured to upload multiple data blocks obtained by segmentation to the server in parallel.

[0109] With the above embodiment, when the data capacity of the file to be uploaded (that is, the size of the data) is greater than the capacity threshold, that is, when the ...

Embodiment 3

[0131] The embodiments of the present application may provide a computer terminal. The computer terminal may be any computer terminal device in a group of computer terminals. The terminal may be used to execute the file uploading method in the above-mentioned embodiments of the present application. Optionally, in this embodiment, the above-mentioned computer terminal may also be replaced with a terminal device such as a mobile terminal. The computer terminal may be the aforementioned touch screen device, and the touch screen device may be a personal computer or a mobile terminal.

[0132] Optionally, in this embodiment, the foregoing computer terminal may be located in at least one network device among multiple network devices in the computer network.

[0133] Optionally, Picture 11 It is a structural block diagram of a computer terminal according to an embodiment of the present application. Such as Picture 11 As shown, the computer terminal may include: one or more (only one is...

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 discloses a file uploading method and device. The method comprises steps of obtaining a received to-be-uploaded file; determining whether the data capacity of the to-be-uploaded file is larger than a capacity threshold; segmenting the to-be-uploaded file into multiple data blocks if the data capacity of the to-be-uploaded file is larger than the capacity threshold; and parallelly uploading the multiple data blocks obtained by segmentation to a server. The problem that the speed of uploading the file at the web front end is slow in the prior art is solved, and the effect of rapidly uploading the big file on the web page is achieved.

Description

Technical field [0001] The present invention relates to the Internet field, and in particular to a method and device for uploading files. Background technique [0002] At present, the main solutions for uploading files on the web front end are as follows: [0003] Upload through the form form, using the browser default method: after determining the file to be uploaded through the form form, read the file to be uploaded in sequence, and upload the file to be uploaded from the beginning to the end of the serial upload according to the method of streaming upload document. [0004] For the upload of small files, uploading in form is sufficient, but for large files, this streaming upload speed is too slow to meet the requirements of fast upload. [0005] For the above-mentioned problem of slow file uploading on the web front end, no effective solution has been proposed yet. Summary of the invention [0006] The embodiment of the present invention provides a method and device for uploading...

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
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08
CPCH04L67/06
Inventor 于小军
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products