File transmission method and device

A file transfer and file upload technology, applied in the field of communication, can solve problems such as long time-consuming, time-consuming, complicated file upload server operations, etc., and achieve the effect of reducing transmission complexity and time-consuming

Pending Publication Date: 2020-12-04
BEIJING GUODIANTONG NETWORK TECH CO LTD +2
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the case of a large file to be uploaded, it will take a long time to re-upload the file; moreover, in some special occasions such as construction, there will often be signal interruptions. If the signal is interrupted during each file upload If the file is interrupted, the user may need to upload the file multiple times frequently before the file upload can be completed, which makes the operation of the file upload server more complicated and takes a long time

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] The solutions in the embodiments of the present application are suitable for uploading files to a server, especially files with a large amount of data. The solution of this embodiment can realize segmented transmission of file data, which is beneficial to avoid retransmission of the entire file due to network interruption.

[0053] eg see figure 1 , which shows a schematic flowchart of an embodiment of a file transfer method of the present application, the method of this embodiment is applied to a server, and this embodiment may include:

[0054] S101. Obtain a file upload request sent by the browser.

[0055] Wherein, the file upload request carries the file name and file size of the target file to be uploaded. For ease of distinction, the file to be uploaded is called the target file. Wherein, the file size of the target file is used to represent the amount of data contained in the target file, for example, the file size of the target file may be 100M.

[0056] It...

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 file transmission method and device. The method comprises the steps of obtaining a file uploading request sent by a browser; returning a file segmentation mode for a target file to the browser; receiving a file fragment of the target file sent by the browser; splicing the currently received file fragment with the file fragment of the target file received before the currentmoment to obtain a spliced file corresponding to the target file; indicating the browser to transmit the next file segment after the received file segment in the target file under the condition thatall data of the target file is not received; and under the condition of judging that all data of the target file is received, storing the currently spliced spliced file as a complete version file corresponding to the file name. According to the method and the device, the time consumed for repeatedly uploading the file due to signal interruption can be reduced.

Description

technical field [0001] The present application relates to the field of communication technologies, and in particular to a file transmission method and device. Background technique [0002] In the process of uploading files to the server through the client, if the network is interrupted due to poor network signal quality or power outage, the file upload will fail. [0003] Once the file upload fails, the file needs to be uploaded to the server again. However, in the case of a large file to be uploaded, it will take a long time to re-upload the file; moreover, in some special occasions such as construction, there will often be signal interruptions. If the signal is interrupted during each file upload If the file is interrupted, the user may need to upload the file multiple times frequently before the file upload can be finally completed, which makes the operation of the file upload server more complicated and takes a long time. Contents of the invention [0004] In view of...

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/06Y02D10/00
Inventor 盛亮卢立宁
Owner BEIJING GUODIANTONG NETWORK TECH 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