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

Method for uploading file, client, server and system

A file uploading and client-side technology, applied in the transmission system, electrical components, etc., can solve the problems of large network transmission volume and long waiting time for users, and achieve the effect of reducing delay, reducing network transmission volume, and reducing waiting time

Inactive Publication Date: 2012-07-11
TENCENT TECH (BEIJING) CO LTD
View PDF4 Cites 46 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the user uploads files similar to the previously uploaded files to the server, since these files are not exactly the same, they need to be uploaded in full each time, resulting in the defects of large network transmission volume and long waiting time for users

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
  • Method for uploading file, client, server and system
  • Method for uploading file, client, server and system
  • Method for uploading file, client, server and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0062] The embodiment of the present invention provides a method for uploading files, see figure 1 , the method flow is as follows:

[0063] 101: Receive the file upload request sent by the client;

[0064] 102: Judging whether there is a file with the same MD5 value as the file to be uploaded, if yes, then execute step 103, otherwise, execute step 104;

[0065] 103: If there is a file with the same MD5 value as the file to be uploaded, use the file with the same MD5 value as the file to be uploaded;

[0066] 104: If there is no file with the same MD5 value as the file to be uploaded, then judge whether there is a file with the same file name as the file to be uploaded in the files uploaded by the client before, if yes, then perform step 105, otherwise, Execute step 106;

[0067] 105: If there is a file with the same file name as the file to be uploaded, calculate the different parts of the file to be uploaded and the file with the same file name, and make the client upload...

Embodiment 2

[0071] The embodiment of the present invention provides a method for uploading files, see figure 2 , the method flow is as follows:

[0072] 201: Receive the file upload request sent by the client;

[0073] Specifically, the server receives the file upload request sent by the user through the client, and the request includes the user's local address of the file to be uploaded by the user. For example, when a user requests to upload an attachment in an email, to upload a photo to an album, or to upload a video, etc., the corresponding client sends these file upload requests to the server.

[0074] Among them, after the client receives the user's file upload request and before sending the file upload request to the server, it can first check whether the format, size, specification and security of the file to be uploaded meet the requirements. The file upload request is sent to the server for subsequent processing, and if at least one item does not meet the requirements, an er...

Embodiment 3

[0108] An embodiment of the present invention provides a file uploading client, which is used to execute the method steps performed by the client in the first and second embodiments above, see image 3 , the client includes:

[0109] Sending module 301, configured to send a file upload request to the server;

[0110] The partial upload module 302 is used to upload the file to the server when the server judges that there is a file with the same file name as the file to be uploaded in the file uploaded by the client after the sending module 301 sends the file upload request to the server. Different parts of the file with the same name as the file to be uploaded;

[0111] The full upload module 303 is used to send a file upload request to the server after the sending module 301, when the server judges that there is no file with the same file name as the file to be uploaded in the file uploaded by the client, send the file to the server Upload all the files to be uploaded.

[0...

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 method for uploading a file, a client, a server and a system, belonging to the fields of file uploading. The method comprises the following steps of: receiving a file uploading request transmitted by the client; and judging whether a file identical with a message digest algorithm 5 (MD5) value of the file to be uploaded exists or not, if yes, taking the file identical with the MD5 value as the file to be uploaded, and otherwise judging whether a file of which a file name is identical with that of the file to be uploaded exists in the previously-uploaded file by the client or not, if yes, calculating a part of the file to be uploaded, which is different from the file of which the file name is identical with that of the file to be uploaded and enabling the client to upload the different part, and otherwise, enabling the client to upload the files to be uploaded at full amount. According to the method, the client, the server and the system, a file similar to the file to be uploaded is uploaded by the server and the different part of the file to be uploaded is uploaded to the server through a network, so that the network transmission quantity is greatly reduced and the waiting time of file uploading by the user is shortened.

Description

technical field [0001] The invention relates to the field of file uploading, in particular to a file uploading method, client, server and system. Background technique [0002] People in today's society often use various file upload systems to upload files when they are working, studying and living. For example, users upload attachments to emails, photos to albums, or materials to network disks, etc. system. [0003] At present, when most file upload systems process files uploaded by users, they will first search for the MD5 (Message Digest Algorithm 5, fifth edition of the message digest algorithm) value of the file on their own server, whether there is an MD5 value of the file to be uploaded MD5 value with the same value: If it exists, it means that the file exists on the server, so there is no need to upload the file, and the file that already exists on the server can be used directly, and the user is notified that the file upload is successful; if it does not exist, it m...

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/06H04L29/08
Inventor 李星徐盎徐伟
Owner TENCENT TECH (BEIJING) 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