CN105577712B - A kind of file uploading method, device and system - Google Patents

A kind of file uploading method, device and system Download PDF

Info

Publication number
CN105577712B
CN105577712B CN201410531294.0A CN201410531294A CN105577712B CN 105577712 B CN105577712 B CN 105577712B CN 201410531294 A CN201410531294 A CN 201410531294A CN 105577712 B CN105577712 B CN 105577712B
Authority
CN
China
Prior art keywords
characteristic value
file
file destination
terminal
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410531294.0A
Other languages
Chinese (zh)
Other versions
CN105577712A (en
Inventor
王文涛
何剑锋
顾况
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410531294.0A priority Critical patent/CN105577712B/en
Publication of CN105577712A publication Critical patent/CN105577712A/en
Application granted granted Critical
Publication of CN105577712B publication Critical patent/CN105577712B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a kind of file uploading methods, device and system, belong to Internet technical field.The described method includes: receiving the uploading instructions of file destination, detect the data volume of the file destination, if the data volume is less than preset threshold, then determine the characteristic value of the full content of the file destination, if the data volume is more than preset threshold, then determine the characteristic value of the content of the predeterminated position of the file destination, the characteristic value determined is sent to server, if receiving the upload notifications that the server is sent, then the file destination is uploaded to the server, if receiving the upload success notification that the server is sent, it then shows and uploads successfully prompt information.Using the present invention, transfer efficiency on file can be improved.

Description

A kind of file uploading method, device and system
Technical field
The present invention relates to Internet technical field, in particular to a kind of file uploading method, device and system.
Background technique
With the development of internet technology, the function of internet is stronger and stronger, and data transmission is the important function of internet One of can.User can be by internet to files such as other users transferring documents, picture and videos, if carrying out file transmission Target account be in off-line state, user can first upload onto the server this document, after this target account is online, service Device sends the file to target account again.
On terminal to server before transmitting file, the characteristic value (such as cryptographic Hash) of the full content of calculation document is needed, i.e., Full text characteristic value, and full text characteristic value is sent to server, server can record full text characteristic value, and terminal completes text After part uploads, this full text characteristic value can be carried out corresponding storage with file by server, and subsequent other users upload same file When, after server receives the full text characteristic value of this document, the full text characteristic value for itself being stored with this document is inquired, then It is sent to terminal and uploads successful message, send file without terminal.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
When the file data amount that user uploads is larger, the time for calculating full text characteristic value can be very long, in this way, will lead to text Transfer efficiency is lower on part.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of file uploading methods, device and system. The technical solution is as follows:
In a first aspect, providing a kind of file uploading method, which comprises
The uploading instructions for receiving file destination, detect the data volume of the file destination;
If the data volume is less than preset threshold, it is determined that the characteristic value of the full content of the file destination;Such as Data volume described in fruit is more than preset threshold, it is determined that the characteristic value of the content of the predeterminated position of the file destination;
The characteristic value determined is sent to server;
If receiving the upload notifications that the server is sent, the file destination is uploaded to the server;
If receiving the upload success notification that the server is sent, shows and upload successfully prompt information.
Second aspect provides a kind of file uploading method, which comprises
Receive the characteristic value that terminal is sent;Wherein, the characteristic value is that the terminal refers in the upload for receiving file destination After the data volume for enabling and detecting the file destination, the case where preset threshold is less than for the data volume, the institute determined The characteristic value of the full content of file destination is stated, alternatively, for the case where data volume is more than preset threshold, the institute that determines State the characteristic value of the content of the predeterminated position of file destination;
Whether inquiry is local is stored with the characteristic value received and corresponding file;
If the characteristic value received and corresponding file is locally stored, the file is recorded as terminal upload File, and to the terminal send upload success notification;Otherwise, Xiang Suoshu terminal sends upload notifications, receives the terminal The file destination of upload, by characteristic value storage corresponding with file destination progress.
The third aspect, provides a kind of terminal, and the terminal includes:
Detection module detects the data volume of the file destination for receiving the uploading instructions of file destination;
Determining module, if being less than preset threshold for the data volume, it is determined that in the whole of the file destination The characteristic value of appearance;If the data volume is more than preset threshold, it is determined that the spy of the content of the predeterminated position of the file destination Value indicative;
Sending module, for sending the characteristic value determined to server;
Uploading module uploads institute to the server if the upload notifications sent for receiving the server State file destination;
Display module shows to upload and successfully mentions if the upload success notification sent for receiving the server Show information.
Fourth aspect, provides a kind of server, and the server includes:
Receiving module, for receiving the characteristic value of terminal transmission;Wherein, the characteristic value is that the terminal is receiving target Uploading instructions of file and after detecting the data volume of the file destination, are less than the data volume feelings of preset threshold Condition, the characteristic value of the full content for the file destination determined, alternatively, being more than the feelings of preset threshold for the data volume Condition, the characteristic value of the content of the predeterminated position for the file destination determined;
Whether enquiry module is locally stored with the characteristic value received and corresponding file for inquiring;
Sending module, if recording the file for the characteristic value received and corresponding file to be locally stored For the terminal upload file, and to the terminal send upload success notification;Otherwise, Xiang Suoshu terminal sends to upload and lead to Know, the file destination that the terminal uploads is received, by characteristic value storage corresponding with file destination progress.
5th aspect, provides a kind of file uploading system, the system comprises terminal and servers, in which:
The terminal detects the data volume of the file destination for receiving the uploading instructions of file destination;If described Data volume is less than preset threshold, it is determined that the characteristic value of the full content of the file destination;If the data volume is more than Preset threshold, it is determined that the characteristic value of the content of the predeterminated position of the file destination;It is determined to server transmission Characteristic value;If receiving the upload notifications that the server is sent, the file destination is uploaded to the server;If The upload success notification that the server is sent is received, then shows and uploads successfully prompt information;
The server, the characteristic value sent for receiving the terminal;Whether inquiry is local is stored with the spy received Value indicative and corresponding file;If the characteristic value received and corresponding file is locally stored, the file is recorded as institute The file of terminal upload is stated, and is sent to the terminal and uploads success notification;Otherwise, Xiang Suoshu terminal sends upload notifications, connects The file destination that the terminal uploads is received, by characteristic value storage corresponding with file destination progress.
Technical solution provided in an embodiment of the present invention has the benefit that
In the embodiment of the present invention, the uploading instructions of file destination are received, detect the data volume of file destination, if the data Amount is less than preset threshold, it is determined that the characteristic value of the full content of file destination;If the data volume is more than preset threshold, The characteristic value for determining the content of the predeterminated position of file destination sends the characteristic value determined to server, if receiving clothes The upload notifications that business device is sent, then upload file destination to server, if receiving the upload success notification of server transmission, It then shows and uploads successfully prompt information.In this way, when the file data amount that user uploads is larger, it can be special with the part of calculation document Value indicative, it is thus possible to improve transfer efficiency on file.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of file uploading method flow chart provided in an embodiment of the present invention;
Fig. 2 is a kind of file uploading method flow chart provided in an embodiment of the present invention;
Fig. 3 is a kind of file uploading method flow chart provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of server provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of server provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Embodiment one
The embodiment of the invention provides a kind of file uploading method, this method can be realized jointly by terminal and server.
As shown in Figure 1, the process flow of terminal may include following step in this method:
Step 101, the uploading instructions for receiving file destination detect the data volume of file destination.
Step 102, if the data volume is less than preset threshold, it is determined that the characteristic value of the full content of file destination; If the data volume is more than preset threshold, it is determined that the characteristic value of the content of the predeterminated position of file destination.
Step 103, the characteristic value determined is sent to server.
Step 104, if receiving the upload notifications of server transmission, file destination is uploaded to server;
Step 105, it if receiving the upload success notification of server transmission, shows and uploads successfully prompt information.
As shown in Fig. 2, the process flow of server may include following step in this method:
Step 201, the characteristic value that terminal is sent is received;Wherein, this feature value is that the terminal is receiving the upper of file destination Teletype command and after detecting the data volume of file destination, the case where preset threshold is less than for the data volume, the target determined The characteristic value of the full content of file, alternatively, for the case where data volume is more than preset threshold, the file destination determined The characteristic value of the content of predeterminated position.
Step 202, whether inquiry is local is stored with the characteristic value received and corresponding file.
Step 203, if the characteristic value received and corresponding file is locally stored, recording this document is in terminal The file of biography, and sent to terminal and upload success notification;Otherwise, upload notifications are sent to terminal, receives the target that terminal uploads File, by the storage corresponding with file destination progress of this feature value.
In the embodiment of the present invention, the uploading instructions of file destination are received, detect the data volume of file destination, if the data Amount is less than preset threshold, it is determined that the characteristic value of the full content of file destination;If the data volume is more than preset threshold, The characteristic value for determining the content of the predeterminated position of file destination sends the characteristic value determined to server, if receiving clothes The upload notifications that business device is sent, then upload file destination to server, if receiving the upload success notification of server transmission, It then shows and uploads successfully prompt information.In this way, when the file data amount that user uploads is larger, it can be special with the part of calculation document Value indicative, it is thus possible to improve transfer efficiency on file.
Embodiment two
The embodiment of the invention provides a kind of file uploading method, this method can be realized jointly by terminal and server. Wherein, terminal can be the terminal with file upload function, and server can be the destination server of file upload.On file The application scenarios of biography are very extensive, in the present embodiment, are conducted away from for the application scenarios of line file above and carry out scheme specifically Bright, other situations are similar therewith, are not repeated in the present embodiment.
As shown in figure 3, the process flow of this method may include following step:
Step 301, terminal receives the uploading instructions of file destination, detects the data volume of file destination.
In an implementation, when certain user needs to other users transmitting offline file, can open in terminal has file The application program (such as certain instant messaging application program) of transfer function, can be in buddy list after user logs in the account of oneself Middle click will transmit the icon of good friend's account of file, and terminal can then show the dialog box with good friend's account, and user can be with Click transmitting offline file button in dialog box, terminal can then show the window for select to transmit file, and user can be with Certain that be transmitted file (file destination) is selected in the window, then clicks and opens key, terminal can then receive uploading instructions, Terminal can detect this document at this time, determine the data volume of this document.
Step 302, if the data volume is less than preset threshold, terminal determines the feature of the full content of file destination Value;If the data volume is more than preset threshold, terminal determines the characteristic value of the content of the predeterminated position of file destination.
Wherein, characteristic value is the code for uniquely tagged one piece of data content, it is believed that is this segment data content Identity information.Based on preset feature value-based algorithm, this segment data content can be carried out that characteristic value is calculated.In the present embodiment Characteristic value can be cryptographic Hash, corresponding feature value-based algorithm be hash algorithm.
In an implementation, the threshold value (such as 50M) of data volume can be preset in above-mentioned application program, and by above-mentioned steps The data volume for the file determined is compared with the threshold value, if the data volume of file is less than or equal to the threshold value, terminal The full content of available file, the characteristic value (such as full text cryptographic Hash) of calculation document full content, if the data of file Amount is greater than the threshold value, then the content of the available file predeterminated position of terminal, the characteristic value of the content of calculation document predeterminated position. Predeterminated position can be one or more positions in the data content of preassigned file, and each position can be a model It encloses, is corresponding with one piece of data, for example, the range of preset data length (such as 3M, 10M) backward since the stem of file, or The range etc. of the range of preset data length or the preset data length among file forward since the tail portion of file.File The characteristic value of the content of predeterminated position is also referred to as local content characteristic value, and predeterminated position can be arbitrarily arranged according to demand.Example Such as, this document stem, each 10M data in tail portion and middle part are obtained, and calculates the characteristic value of the 30M data got, this is calculated Local content characteristic value can be referred to as three sections of characteristic values (such as three sections of cryptographic Hash).
Step 303, terminal to server sends the characteristic value determined.
In an implementation, after the characteristic value of file destination is calculated in terminal, upload request message can be sent to server, Upload request message is message of the terminal for the transmitting file in server application, can carry target in upload request message The information such as the account identification of account that the characteristic value and terminal of file currently log in.In application program, feature can be stored in advance The corresponding relationship of type (i.e. the characteristic value of the content of the characteristic value and predeterminated position of full content) and transport protocol of value, then eventually After the characteristic value of file destination is determined at end, corresponding transport protocol can be used and transmitted.For example, if the terminal determine that Characteristic value is the characteristic value of the full content of file destination, then agreement 1 can be used or agreement 2 is transmitted, if terminal is true Fixed characteristic value is the characteristic value of the content of the predeterminated position of file destination, then agreement 3 can be used or agreement 4 is transmitted.
Step 304, the characteristic value that server receiving terminal is sent.
In an implementation, server can receive the upload request message of terminal transmission, then carry out to upload request message Parsing, obtains the characteristic value of file therein.
Step 305, whether server inquiry is local is stored with the characteristic value received and corresponding file, if local deposit The characteristic value received and corresponding file are contained, thens follow the steps 306, otherwise, executes step 308.
In an implementation, it can be previously stored with the characteristic value of heap file and each file in service, and establish file Index relative table, server can by each file it is corresponding with the characteristic value of file storage arrive file index relative table In, the characteristic value of file is the index of this document in the server.It, can be in rope after server obtains the characteristic value of file destination Draw to inquire in relation table and whether be stored with this feature value, has been stored with this feature value if inquired, it can be with query service device In whether be stored with the corresponding file of this feature value, if inquiring corresponding file, step 306 can be executed, such as Fruit does not inquire the characteristic value received, or does not inquire the corresponding file of this feature value, then can execute step 308.
Optionally, preset threshold is less than for file destination, terminal determines the characteristic value of the full content of file destination The case where, correspondingly, the treatment process of step 305 can be such that when the full content that the characteristic value received is file destination Characteristic value when, then the corresponding relationship of characteristic value according to the pre-stored data and file, whether inquiry is local, which is stored with, receives Characteristic value and corresponding file.
In an implementation, it after server receives upload request message, can be assisted according to the type and transmission of features described above value The corresponding relationship of view determines the type for the corresponding characteristic value of transport protocol that upload request message uses, if this feature value is The characteristic value of the full content of file, i.e. full text characteristic value, then whether server can be inquired in index relative table and be stored with This feature value has been stored with this feature value if inquired, can be whether to be stored with this feature value in query service device Corresponding file can execute step 306 if inquiring corresponding file, if not inquiring the characteristic value received, Or do not inquire the corresponding file of this feature value, then it can execute step 308.
It optionally, is more than preset threshold for file destination, terminal determines the spy of the content of the predeterminated position of file destination The case where value indicative, correspondingly, the treatment process of step 305 can be such that when the characteristic value received is the default of file destination When the characteristic value of the content of position, the corresponding relationship of local content characteristic value and full text characteristic value according to the pre-stored data, inquiry The corresponding first full text characteristic value of the characteristic value received;If inquiring the corresponding first full text feature of the characteristic value received Whether value then inquires comprising the first full text characteristic value in the corresponding relationship of pre-stored characteristic value and file, if it is, sentencing Surely the characteristic value received and corresponding file is locally stored, otherwise, it is determined that local be not stored with the feature received simultaneously Value and corresponding file;Alternatively, if not inquiring the corresponding first full text characteristic value of characteristic value received, according in advance The characteristic value of storage and the corresponding relationship of file, whether inquiry is local is stored with the characteristic value received and corresponding file.
In an implementation, in the index relative table of server, in addition to can store upper transmitting file that the server receives and The characteristic value of file can also store the characteristic value of the file and file that obtain from other servers, wherein from other servers The characteristic value of the file of acquisition generally is the full text characteristic value of file.For this purpose, the server can establish in the part of file Hold the mapping table (can be referred to as fast table) of characteristic value and full text characteristic value, with the lookup of convenience file.
After server receives upload request message, if determined wherein according to the transport protocol that upload request message uses The characteristic value of carrying is the characteristic value of the content of predeterminated position, then the spy for whether being stored with and having received can be inquired in fast table Value indicative.If server inquires this feature value in fast table, the corresponding full text characteristic value of this feature value (i.e. can be determined One full text characteristic value), and then can be inquired in index relative table and whether be stored with the full text characteristic value, if index relative table In be stored with the full text characteristic value, then server, which can be determined that, is locally stored the characteristic value received and corresponding file, If server does not inquire the full text characteristic value in index relative table, server can be determined that local not while be stored with The characteristic value received and corresponding file.If server does not inquire the characteristic value received, server in fast table It can be inquired in index relative table and whether be stored with this feature value, be stored with this feature value if inquired, can look into It askes in server and whether has been stored with the corresponding file of this feature value, if inquiring corresponding file, step can be executed Rapid 306, if not inquiring the characteristic value received, or the corresponding file of this feature value is not inquired, then can execute step Rapid 308.
Step 306, it is the file that terminal uploads that server, which records this document, and sends to terminal and upload success notification.
In an implementation, after server receives upload request message, account identification in available upload request message, Then determine that the account identifies corresponding account.If after server detection, determine to be locally stored the characteristic value that receives and The file identification of the file inquired can then be added in the upload listed files of the account by corresponding file, and to end End sends the upload success notification of this document.
Step 307, terminal receives the upload success notification of server transmission, and display uploads successfully prompt information.
In an implementation, after terminal receives the upload success notification that server is sent, it can show and uploaded successfully to user Prompt information, and not to server send file.
It should be noted that process terminates after step 307 is finished.
Step 308, server sends upload notifications to terminal.
In an implementation, if after server detection, determine the local characteristic value received and corresponding of not being stored with simultaneously File then can send upload notifications to terminal.
Step 309, terminal receives the upload notifications of server transmission, uploads file destination to server.
In an implementation, if terminal receives the upload notifications of server transmission, user's choosing can be sent to server The file selected, after file is sent completely, terminal, which can send to upload to server, finishes notice.
Optionally, the case where sending local content characteristic values for terminal to server, terminal are uploading text to server During part, determining file destination can be such that with the characteristic value of the full content of calculation document, corresponding treatment process Full content characteristic value, be sent to server.
It in an implementation, can be with the characteristic value of the full content of calculation document on terminal to server during transmitting file. If terminal during to server up transfer file, completes the processing of the characteristic value of the full content of calculation document, then may be used To send the characteristic value of the full content of file to server.
Optionally, if terminal does not complete the place of the characteristic value of the full content of calculation document when file uploads completion Reason, then can stop the processing, and corresponding treatment process can be such that the characteristic value in the full content for determining file destination In the process, if file destination upload finishes, stop the processing for determining the characteristic value of the full content of file destination.
Step 310, the file destination that server receiving terminal uploads is deposited this feature value is corresponding with file destination progress Storage.
In an implementation, server can receive the file destination of terminal upload, when the upload for receiving terminal transmission finishes It, can be by the file received storage corresponding with the characteristic value of this document into index relative table after notice.
Optionally, for above-mentioned terminal during to server up transfer file, the full content of file destination is calculated Characteristic value, the case where being sent to server, correspondingly, the processing of step 310 server, which can be such that, receives what terminal uploaded File destination;During receiving the file destination that terminal uploads, the full content of the file destination of terminal transmission is received Characteristic value;Then, following two situation is divided to handle:
Situation one, if in the corresponding relationship of pre-stored characteristic value and file including the complete of the file destination received The corresponding file of the characteristic value of portion's content records the corresponding file of characteristic value of the full content of file destination then as terminal upload File, sent to terminal and upload expiry notification, and by the characteristic value and file destination of the content of the predeterminated position of file destination Full content characteristic value, corresponding storage is into the corresponding relationship of local content characteristic value and full text characteristic value.
In an implementation, the case where upload request message for carrying local content characteristic value being sent for terminal to server, Subsequent server can receive the full content of the file of terminal transmission during receiving the file destination that terminal uploads Characteristic value, then can be inquired in above-mentioned index relative table, if being stored with this feature value in index relative table, Can whether to be stored with the corresponding file of this feature value in query service device, if being stored with the corresponding file of this feature value, The file identification of this document can be added in the upload listed files of the account, and the upload of this document is sent to terminal Expiry notification, server can be by the corresponding storages of the characteristic value of the characteristic value of this document full content and the content of predeterminated position Into above-mentioned fast table (i.e. the mapping table of local content characteristic value and full text characteristic value).If do not included in index relative table This feature value or corresponding file, can keep the reception to file destination, not do the processing for stopping uploading.
Correspondingly, the processing of terminal side can be such that if receiving the upload expiry notification of server transmission, stop File destination is uploaded, and shows and uploads successfully prompt information.
In an implementation, if terminal is during upper transmitting file, the upload expiry notification of server transmission is received, then Terminal stops upper transmitting file, and shows to user and upload successful prompt information, can save the process resource of terminal in this way, mention Transfer efficiency on high file.
Situation two, if in the corresponding relationship of pre-stored characteristic value and file not including the file destination received The corresponding file of the characteristic value of full content, then after file destination uploads, by the feature of the full content of file destination Value and file destination is corresponding stores into the corresponding relationship of characteristic value and file, and by the content of the predeterminated position of file destination Characteristic value and file destination full content characteristic value, corresponding storage to local content characteristic value and full text characteristic value In corresponding relationship.
In an implementation, if determining not stored in index relative table has this feature value or corresponding text after server inquiry Part then will continue to receive the file that terminal uploads, and after the upload for receiving terminal transmission finishes notice, server can should The file identification of file is added in the upload listed files of the corresponding account of the account identification carried in upload request message, And the upload success notification of this document is sent to terminal, it then can be corresponding by the characteristic value of the full content of this document and file Storage into index relative table, and it is the characteristic value of the characteristic value of the full content of this document and the content of predeterminated position is corresponding Storage into fast table, so as to subsequent use.
In the embodiment of the present invention, the uploading instructions of file destination are received, detect the data volume of file destination, if the data Amount is less than preset threshold, it is determined that the characteristic value of the full content of file destination;If the data volume is more than preset threshold, The characteristic value for determining the content of the predeterminated position of file destination sends the characteristic value determined to server, if receiving clothes The upload notifications that business device is sent, then upload file destination to server, if receiving the upload success notification of server transmission, It then shows and uploads successfully prompt information.In this way, when the file data amount that user uploads is larger, it can be special with the part of calculation document Value indicative, it is thus possible to improve transfer efficiency on file.
Embodiment three
Based on the same technical idea, the embodiment of the invention also provides a kind of terminals, as shown in figure 4, the terminal includes:
Detection module 410 detects the data volume of the file destination for receiving the uploading instructions of file destination;
Determining module 420, if being less than preset threshold for the data volume, it is determined that the whole of the file destination The characteristic value of content;If the data volume is more than preset threshold, it is determined that the content of the predeterminated position of the file destination Characteristic value;
Sending module 430, for sending the characteristic value determined to server;
Uploading module 440, if the upload notifications sent for receiving the server, upload to the server The file destination;
Display module 450 shows to upload and successfully prompts if receiving the upload success notification that the server is sent Information.
Optionally, the determining module 420, is also used to:
If the data volume is more than preset threshold, it is described receive upload notifications that the server is sent it Afterwards, the characteristic value for determining the full content of the file destination is sent to the server.
Optionally, the uploading module 440, is also used to:
The characteristic value of the full content of the determination file destination, is sent to after the server, if received The upload expiry notification sent to the server, then stop uploading the file destination, and show and upload successfully prompt information.
Optionally, the determining module 420, is also used to:
During the characteristic value of the full content of the determination file destination, if the file destination uploads It finishes, then stops the processing for determining the characteristic value of the full content of the file destination.
Based on the same technical idea, the embodiment of the invention also provides a kind of servers, as shown in figure 5, the service Device includes:
Receiving module 510, for receiving the characteristic value of terminal transmission;Wherein, the characteristic value is that the terminal is receiving Uploading instructions of file destination and after detecting the data volume of the file destination, are less than preset threshold for the data volume Situation, the characteristic value of the full content for the file destination determined, alternatively, being more than preset threshold for the data volume Situation, the characteristic value of the content of the predeterminated position for the file destination determined;
Whether enquiry module 520 is locally stored with the characteristic value received and corresponding file for inquiring;
Sending module 530, if recording the text for the characteristic value received and corresponding file to be locally stored Part is the file that the terminal uploads, and sends to the terminal and upload success notification;Otherwise, Xiang Suoshu terminal sends to upload and lead to Know, the file destination that the terminal uploads is received, by characteristic value storage corresponding with file destination progress.
Optionally, the enquiry module 520, is used for:
When the characteristic value for the full content that the characteristic value received is the file destination, then spy according to the pre-stored data The corresponding relationship of value indicative and file, whether inquiry is local is stored with the characteristic value received and corresponding file.
Optionally, the enquiry module 520, is used for:
When the characteristic value of the content for the predeterminated position that the characteristic value received is the file destination, according to being stored in advance Local content characteristic value and full text characteristic value corresponding relationship, corresponding first full text of the characteristic value received described in inquiry is special Value indicative;
If inquiring the corresponding first full text characteristic value of characteristic value received, pre-stored feature is inquired It whether include the first full text characteristic value in the corresponding relationship of value and file, if it is, determining that described connect has been locally stored The characteristic value received and corresponding file, otherwise, it is determined that the local characteristic value received and corresponding of not being stored with simultaneously File;Alternatively,
If not inquiring the corresponding first full text characteristic value of characteristic value received, spy according to the pre-stored data The corresponding relationship of value indicative and file, whether inquiry is local is stored with the characteristic value received and corresponding file.
Optionally, the sending module 530, is used for:
Receive the file destination that the terminal uploads;
During the file destination for receiving the terminal upload, the target that the terminal is sent is received The characteristic value of the full content of file;
If in the corresponding relationship of the pre-stored characteristic value and file including the file destination received The corresponding file of the characteristic value of full content, then the corresponding file of characteristic value for recording the full content of the file destination is institute The file of terminal upload is stated, Xiang Suoshu terminal, which is sent, uploads expiry notification, and by the content of the predeterminated position of the file destination Characteristic value and the file destination full content characteristic value, it is corresponding storage to the local content characteristic value and full text In the corresponding relationship of characteristic value;
If in the corresponding relationship of the pre-stored characteristic value and file not including the file destination received Full content the corresponding file of characteristic value, then the file destination upload after, by the whole of the file destination The characteristic value of content and the corresponding storage of the file destination are into the corresponding relationship of the characteristic value and file, and by the mesh The characteristic value of the characteristic value of the content of the predeterminated position of file and the full content of the file destination is marked, institute is arrived in corresponding storage In the corresponding relationship for stating local content characteristic value and full text characteristic value.
In the embodiment of the present invention, the uploading instructions of file destination are received, detect the data volume of file destination, if the data Amount is less than preset threshold, it is determined that the characteristic value of the full content of file destination;If the data volume is more than preset threshold, The characteristic value for determining the content of the predeterminated position of file destination sends the characteristic value determined to server, if receiving clothes The upload notifications that business device is sent, then upload file destination to server, if receiving the upload success notification of server transmission, It then shows and uploads successfully prompt information.In this way, when the file data amount that user uploads is larger, it can be special with the part of calculation document Value indicative, it is thus possible to improve transfer efficiency on file.
Example IV
Based on the same technical idea, the embodiment of the invention also provides a kind of file uploading system, the system comprises Terminal and server, in which:
The terminal detects the data volume of the file destination for receiving the uploading instructions of file destination;If described Data volume is less than preset threshold, it is determined that the characteristic value of the full content of the file destination;If the data volume is more than Preset threshold, it is determined that the characteristic value of the content of the predeterminated position of the file destination;It is determined to server transmission Characteristic value;If receiving the upload notifications that the server is sent, the file destination is uploaded to the server;If The upload success notification that the server is sent is received, then shows and uploads successfully prompt information;
The server, the characteristic value sent for receiving the terminal;Whether inquiry is local is stored with the spy received Value indicative and corresponding file;If the characteristic value received and corresponding file is locally stored, the file is recorded as institute The file of terminal upload is stated, and is sent to the terminal and uploads success notification;Otherwise, Xiang Suoshu terminal sends upload notifications, connects The file destination that the terminal uploads is received, by characteristic value storage corresponding with file destination progress.
In the embodiment of the present invention, the uploading instructions of file destination are received, detect the data volume of file destination, if the data Amount is less than preset threshold, it is determined that the characteristic value of the full content of file destination;If the data volume is more than preset threshold, The characteristic value for determining the content of the predeterminated position of file destination sends the characteristic value determined to server, if receiving clothes The upload notifications that business device is sent, then upload file destination to server, if receiving the upload success notification of server transmission, It then shows and uploads successfully prompt information.In this way, when the file data amount that user uploads is larger, it can be special with the part of calculation document Value indicative, it is thus possible to improve transfer efficiency on file.
Embodiment five
Referring to FIG. 6, it illustrates, with the terminal structure schematic diagram of touch sensitive surface, be somebody's turn to do involved in the embodiment of the present invention Terminal can be used for implementing the file uploading method provided in above-described embodiment.Specifically:
Terminal 900 may include RF (Radio Frequency, radio frequency) circuit 110, include one or more meter The memory 120 of calculation machine readable storage medium storing program for executing, input unit 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (wireless fidelity, Wireless Fidelity) module 170, the processing for including one or more than one processing core The components such as device 180 and power supply 190.It will be understood by those skilled in the art that terminal structure shown in Fig. 6 is not constituted pair The restriction of terminal may include perhaps combining certain components or different component cloth than illustrating more or fewer components It sets.Wherein:
RF circuit 110 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, one or the processing of more than one processor 180 are transferred to;In addition, the data for being related to uplink are sent to Base station.In general, RF circuit 110 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, uses Family identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplex Device etc..In addition, RF circuit 110 can also be communicated with network and other equipment by wireless communication.The wireless communication can make With any communication standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirely Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), Email, SMS (Short Messaging Service, short message service) etc..
Memory 120 can be used for storing software program and module, and processor 180 is stored in memory 120 by operation Software program and module, thereby executing various function application and data processing.Memory 120 can mainly include storage journey Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function Such as sound-playing function, image player function) etc.;Storage data area, which can be stored, uses created number according to terminal 900 According to (such as audio data, phone directory etc.) etc..In addition, memory 120 may include high-speed random access memory, can also wrap Include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts. Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input unit 130 to memory 120 access.
Input unit 130 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, input unit 130 may include touching Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad are collected and are used Family on it or nearby touch operation (such as user using any suitable object or attachment such as finger, stylus in touch-sensitive table Operation on face 131 or near touch sensitive surface 131), and corresponding attachment device is driven according to preset formula.It is optional , touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and touch operation bring signal is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection device, and is converted into contact coordinate, then gives processor 180, and can receive processor 180 The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch sensitive surface 131.In addition to touch sensitive surface 131, input unit 130 can also include other input equipments 132.Specifically, Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), One of trace ball, mouse, operating stick etc. are a variety of.
Display unit 140 can be used for showing information input by user or the information and terminal 900 that are supplied to user Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof. Display unit 140 may include display panel 141, optionally, can use LCD (Liquid Crystal Display, liquid crystal Show device), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel 141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 detects touching on it or nearby After touching operation, processor 180 is sent to determine the type of touch event, is followed by subsequent processing device 180 according to the type of touch event Corresponding visual output is provided on display panel 141.Although touch sensitive surface 131 and display panel 141 are conducts in Fig. 6 Two independent components realize input and input function, but in some embodiments it is possible to by touch sensitive surface 131 and display Panel 141 is integrated and realizes and outputs and inputs function.
Terminal 900 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 141, and proximity sensor can close display when terminal 900 is moved in one's ear Panel 141 and/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions (generally Three axis) acceleration size, can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Extremely In other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared sensors that terminal 900 can also configure, herein It repeats no more.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the audio interface between user and terminal 900.Audio Electric signal after the audio data received conversion can be transferred to loudspeaker 161, be converted to sound by loudspeaker 161 by circuit 160 Sound signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, after being received by voicefrequency circuit 160 Audio data is converted to, then by after the processing of audio data output processor 180, such as another end is sent to through RF circuit 110 End, or audio data is exported to memory 120 to be further processed.Voicefrequency circuit 160 is also possible that earphone jack, To provide the communication of peripheral hardware earphone Yu terminal 900.
WiFi belongs to short range wireless transmission technology, and terminal 900 can help user's transceiver electronics by WiFi module 170 Mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 6 is shown WiFi module 170, but it is understood that, and it is not belonging to must be configured into for terminal 900, it can according to need completely Do not change in the range of the essence of invention and omits.
Processor 180 is the control centre of terminal 900, utilizes each portion of various interfaces and connection whole mobile phone Point, by running or execute the software program and/or module that are stored in memory 120, and calls and be stored in memory 120 Interior data execute the various functions and processing data of terminal 900, to carry out integral monitoring to mobile phone.Optionally, processor 180 may include one or more processing cores;Preferably, processor 180 can integrate application processor and modem processor, Wherein, the main processing operation system of application processor, user interface and application program etc., modem processor mainly handles nothing Line communication.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal 900 further includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 180 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 190 can also include one or more direct current or AC power source, recharging system, power supply event Hinder the random components such as detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown, terminal 900 can also include camera, bluetooth module etc., and details are not described herein.Specifically in this reality It applies in example, the display unit of terminal 900 is touch-screen display, and terminal 900 further includes having memory and one or one Above program, one of them perhaps more than one program be stored in memory and be configured to by one or one with Upper processor execution states one or more than one program includes the instruction for performing the following operation:
The uploading instructions for receiving file destination, detect the data volume of the file destination;
If the data volume is less than preset threshold, it is determined that the characteristic value of the full content of the file destination;Such as Data volume described in fruit is more than preset threshold, it is determined that the characteristic value of the content of the predeterminated position of the file destination;
The characteristic value determined is sent to server;
If receiving the upload notifications that the server is sent, the file destination is uploaded to the server;
If receiving the upload success notification that the server is sent, shows and upload successfully prompt information.
Optionally, if the data volume is more than preset threshold, the upload for receiving the server transmission is logical After knowing, further includes:
The characteristic value for determining the full content of the file destination is sent to the server.
Optionally, the characteristic value of the full content of the determination file destination, is sent to after the server, also Include:
If receiving the upload expiry notification that the server is sent, stop uploading the file destination, and show Upload successfully prompt information.
Optionally, the method also includes:
During the characteristic value of the full content of the determination file destination, if the file destination uploads It finishes, then stops the processing for determining the characteristic value of the full content of the file destination.
In the embodiment of the present invention, the uploading instructions of file destination are received, detect the data volume of file destination, if the data Amount is less than preset threshold, it is determined that the characteristic value of the full content of file destination;If the data volume is more than preset threshold, The characteristic value for determining the content of the predeterminated position of file destination sends the characteristic value determined to server, if receiving clothes The upload notifications that business device is sent, then upload file destination to server, if receiving the upload success notification of server transmission, It then shows and uploads successfully prompt information.In this way, when the file data amount that user uploads is larger, it can be special with the part of calculation document Value indicative, it is thus possible to improve transfer efficiency on file.
Embodiment six
Fig. 7 is the structural schematic diagram of server provided in an embodiment of the present invention.The server 1900 can be because of configuration or performance It is different and generate bigger difference, it may include one or more central processing units (central processing Units, CPU) 1922 (for example, one or more processors) and memory 1932, one or more storage applications The storage medium 1930 (such as one or more mass memory units) of program 1942 or data 1944.Wherein, memory 1932 and storage medium 1930 can be of short duration storage or persistent storage.The program for being stored in storage medium 1930 may include one A or more than one module (diagram does not mark), each module may include to the series of instructions operation in server.More into One step, central processing unit 1922 can be set to communicate with storage medium 1930, execute storage medium on server 1900 Series of instructions operation in 1930.
Server 1900 can also include one or more power supplys 1926, one or more wired or wireless nets Network interface 1950, one or more input/output interfaces 1958, one or more keyboards 1956, and/or, one or More than one operating system 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM Etc..
Server 1900 may include have memory and one perhaps more than one program one of them or one A procedure above is stored in memory, and is configured to execute one or one by one or more than one processor A procedure above includes the instruction for performing the following operation:
Receive the characteristic value that terminal is sent;Wherein, the characteristic value is that the terminal refers in the upload for receiving file destination After the data volume for enabling and detecting the file destination, the case where preset threshold is less than for the data volume, the institute determined The characteristic value of the full content of file destination is stated, alternatively, for the case where data volume is more than preset threshold, the institute that determines State the characteristic value of the content of the predeterminated position of file destination;
Whether inquiry is local is stored with the characteristic value received and corresponding file;
If the characteristic value received and corresponding file is locally stored, the file is recorded as terminal upload File, and to the terminal send upload success notification;Otherwise, Xiang Suoshu terminal sends upload notifications, receives the terminal The file destination of upload, by characteristic value storage corresponding with file destination progress.
Optionally, whether the inquiry is locally stored with the characteristic value received and corresponding file, comprising:
When the characteristic value for the full content that the characteristic value received is the file destination, then spy according to the pre-stored data The corresponding relationship of value indicative and file, whether inquiry is local is stored with the characteristic value received and corresponding file.
Optionally, whether the inquiry is locally stored with the characteristic value received and corresponding file, comprising:
When the characteristic value of the content for the predeterminated position that the characteristic value received is the file destination, according to being stored in advance Local content characteristic value and full text characteristic value corresponding relationship, corresponding first full text of the characteristic value received described in inquiry is special Value indicative;
If inquiring the corresponding first full text characteristic value of characteristic value received, pre-stored feature is inquired It whether include the first full text characteristic value in the corresponding relationship of value and file, if it is, determining that described connect has been locally stored The characteristic value received and corresponding file, otherwise, it is determined that the local characteristic value received and corresponding of not being stored with simultaneously File;Alternatively,
If not inquiring the corresponding first full text characteristic value of characteristic value received, spy according to the pre-stored data The corresponding relationship of value indicative and file, whether inquiry is local is stored with the characteristic value received and corresponding file.
Optionally, the file destination for receiving the terminal and uploading, the characteristic value and the file destination are carried out Corresponding storage, comprising:
Receive the file destination that the terminal uploads;
During the file destination for receiving the terminal upload, the target that the terminal is sent is received The characteristic value of the full content of file;
If in the corresponding relationship of the pre-stored characteristic value and file including the file destination received The corresponding file of the characteristic value of full content, then the corresponding file of characteristic value for recording the full content of the file destination is institute The file of terminal upload is stated, Xiang Suoshu terminal, which is sent, uploads expiry notification, and by the content of the predeterminated position of the file destination Characteristic value and the file destination full content characteristic value, it is corresponding storage to the local content characteristic value and full text In the corresponding relationship of characteristic value;
If in the corresponding relationship of the pre-stored characteristic value and file not including the file destination received Full content the corresponding file of characteristic value, then the file destination upload after, by the whole of the file destination The characteristic value of content and the corresponding storage of the file destination are into the corresponding relationship of the characteristic value and file, and by the mesh The characteristic value of the characteristic value of the content of the predeterminated position of file and the full content of the file destination is marked, institute is arrived in corresponding storage In the corresponding relationship for stating local content characteristic value and full text characteristic value.
In the embodiment of the present invention, the uploading instructions of file destination are received, detect the data volume of file destination, if the data Amount is less than preset threshold, it is determined that the characteristic value of the full content of file destination;If the data volume is more than preset threshold, The characteristic value for determining the content of the predeterminated position of file destination sends the characteristic value determined to server, if receiving clothes The upload notifications that business device is sent, then upload file destination to server, if receiving the upload success notification of server transmission, It then shows and uploads successfully prompt information.In this way, when the file data amount that user uploads is larger, it can be special with the part of calculation document Value indicative, it is thus possible to improve transfer efficiency on file.
It should be understood that file provided by the above embodiment uploads device in upper transmitting file, only with above-mentioned each function The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds Block is completed, i.e., the internal structure of equipment is divided into different functional modules, to complete all or part of function described above Energy.In addition, file provided by the above embodiment uploads device and file uploading method embodiment belongs to same design, it is specific real Existing process is detailed in embodiment of the method, and which is not described herein again.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (17)

1. a kind of file uploading method, which is characterized in that the described method includes:
The uploading instructions for receiving file destination, detect the data volume of the file destination;
If the data volume is less than preset threshold, it is determined that the characteristic value of the full content of the file destination;If institute Data volume is stated more than preset threshold, it is determined that the characteristic value of the content of the predeterminated position of the file destination;
The characteristic value determined is sent to server;
If receiving the upload notifications that the server is sent, the file destination is uploaded to the server;
If receiving the upload success notification that the server is sent, shows and upload successfully prompt information.
2. described to connect the method according to claim 1, wherein if the data volume is more than preset threshold After the upload notifications for receiving the server transmission, further includes:
The characteristic value for determining the full content of the file destination is sent to the server.
3. according to the method described in claim 2, it is characterized in that, the feature of the full content of the determination file destination Value, is sent to after the server, further includes:
If receiving the upload expiry notification that the server is sent, stop uploading the file destination, and show upload Success prompt information.
4. according to the method described in claim 2, it is characterized in that, the method also includes:
During the characteristic value of the full content of the determination file destination, if the file destination has uploaded Finish, then stops the processing for determining the characteristic value of the full content of the file destination.
5. a kind of file uploading method, which is characterized in that the described method includes:
Receive the characteristic value that terminal is sent;Wherein, the characteristic value is that the terminal is receiving the uploading instructions of file destination simultaneously After the data volume for detecting the file destination, the case where preset threshold is less than for the data volume, the mesh determined The characteristic value of the full content of file is marked, alternatively, for the case where data volume is more than preset threshold, the mesh determined Mark the characteristic value of the content of the predeterminated position of file;
Whether inquiry is local is stored with the characteristic value received and corresponding file;
If the characteristic value received and corresponding file is locally stored, recording the file is the text that the terminal uploads Part, and sent to the terminal and upload success notification;Otherwise, Xiang Suoshu terminal sends upload notifications, receives the terminal and uploads File destination, by characteristic value storage corresponding with file destination progress.
6. according to the method described in claim 5, it is characterized in that, whether the inquiry is locally stored with the characteristic value received With corresponding file, comprising:
When the characteristic value for the full content that the characteristic value received is the file destination, then characteristic value according to the pre-stored data With the corresponding relationship of file, whether inquiry is local is stored with the characteristic value received and corresponding file.
7. according to the method described in claim 5, it is characterized in that, whether the inquiry is locally stored with the characteristic value received With corresponding file, comprising:
When the characteristic value of the content for the predeterminated position that the characteristic value received is the file destination, office according to the pre-stored data The corresponding relationship of portion's content characteristic values and full text characteristic value, the corresponding first full text feature of characteristic value received described in inquiry Value;
If inquiring the corresponding first full text characteristic value of characteristic value received, inquire pre-stored characteristic value with It whether include the first full text characteristic value in the corresponding relationship of file, if it is, determining that described receive has been locally stored Characteristic value and corresponding file, otherwise, it is determined that local be not stored with the characteristic value received and corresponding file simultaneously; Alternatively,
If not inquiring the corresponding first full text characteristic value of characteristic value received, characteristic value according to the pre-stored data With the corresponding relationship of file, whether inquiry is local is stored with the characteristic value received and corresponding file.
8. according to the method described in claim 5, it is characterized in that, the file destination for receiving the terminal and uploading, by institute State characteristic value storage corresponding with file destination progress, comprising:
Receive the file destination that the terminal uploads;
During the file destination for receiving the terminal upload, the file destination that the terminal is sent is received Full content characteristic value;
If comprising the full content of the file destination received in the corresponding relationship of pre-stored characteristic value and file The corresponding file of characteristic value, then record the full content of the file destination the corresponding file of characteristic value be the terminal on The file of biography, Xiang Suoshu terminal, which is sent, uploads expiry notification, and by the characteristic value of the content of the predeterminated position of the file destination With the characteristic value of the full content of the file destination, it is corresponding with full text characteristic value that local content characteristic value is arrived in corresponding storage In relationship;
If in the corresponding relationship of the pre-stored characteristic value and file not including the complete of the file destination received The corresponding file of the characteristic value of portion's content, the then after file destination uploads, by the full content of the file destination Characteristic value and the corresponding storage of the file destination into the corresponding relationship of the characteristic value and file, and by target text The office is arrived in the characteristic value of the full content of the characteristic value of the content of the predeterminated position of part and the file destination, corresponding storage In the corresponding relationship of portion's content characteristic values and full text characteristic value.
9. a kind of terminal, which is characterized in that the terminal includes:
Detection module detects the data volume of the file destination for receiving the uploading instructions of file destination;
Determining module, if being less than preset threshold for the data volume, it is determined that the full content of the file destination Characteristic value;If the data volume is more than preset threshold, it is determined that the characteristic value of the content of the predeterminated position of the file destination;
Sending module, for sending the characteristic value determined to server;
Uploading module uploads the mesh to the server if the upload notifications sent for receiving the server Mark file;
Display module shows if the upload success notification sent for receiving the server and uploads successfully prompt letter Breath.
10. terminal according to claim 9, which is characterized in that the determining module is also used to:
If the data volume is more than preset threshold, after the upload notifications for receiving the server transmission, really The characteristic value of the full content of the fixed file destination, is sent to the server.
11. terminal according to claim 10, which is characterized in that the uploading module is also used to:
The characteristic value of the full content of the determination file destination, is sent to after the server, if receiving institute The upload expiry notification for stating server transmission, then stop uploading the file destination, and show and upload successfully prompt information.
12. terminal according to claim 10, which is characterized in that the determining module is also used to:
During the characteristic value of the full content of the determination file destination, if the file destination has uploaded Finish, then stops the processing for determining the characteristic value of the full content of the file destination.
13. a kind of server, which is characterized in that the server includes:
Receiving module, for receiving the characteristic value of terminal transmission;Wherein, the characteristic value is that the terminal is receiving file destination Uploading instructions and after detecting the data volume of the file destination, the case where preset threshold is less than for the data volume, really The characteristic value of the full content for the file destination made, alternatively, for the case where data volume is more than preset threshold, really The characteristic value of the content of the predeterminated position for the file destination made;
Whether enquiry module is locally stored with the characteristic value received and corresponding file for inquiring;
Sending module, if recording the file for the characteristic value received and corresponding file to be locally stored as institute The file of terminal upload is stated, and is sent to the terminal and uploads success notification;Otherwise, Xiang Suoshu terminal sends upload notifications, connects The file destination that the terminal uploads is received, by characteristic value storage corresponding with file destination progress.
14. server according to claim 13, which is characterized in that the enquiry module is used for:
When the characteristic value for the full content that the characteristic value received is the file destination, then characteristic value according to the pre-stored data With the corresponding relationship of file, whether inquiry is local is stored with the characteristic value received and corresponding file.
15. server according to claim 13, which is characterized in that the enquiry module is used for:
When the characteristic value of the content for the predeterminated position that the characteristic value received is the file destination, office according to the pre-stored data The corresponding relationship of portion's content characteristic values and full text characteristic value, the corresponding first full text feature of characteristic value received described in inquiry Value;
If inquiring the corresponding first full text characteristic value of characteristic value received, inquire pre-stored characteristic value with It whether include the first full text characteristic value in the corresponding relationship of file, if it is, determining that described receive has been locally stored Characteristic value and corresponding file, otherwise, it is determined that local be not stored with the characteristic value received and corresponding file simultaneously; Alternatively,
If not inquiring the corresponding first full text characteristic value of characteristic value received, characteristic value according to the pre-stored data With the corresponding relationship of file, whether inquiry is local is stored with the characteristic value received and corresponding file.
16. server according to claim 13, which is characterized in that the sending module is used for:
Receive the file destination that the terminal uploads;
During the file destination for receiving the terminal upload, the file destination that the terminal is sent is received Full content characteristic value;
If comprising the full content of the file destination received in the corresponding relationship of pre-stored characteristic value and file The corresponding file of characteristic value, then record the full content of the file destination the corresponding file of characteristic value be the terminal on The file of biography, Xiang Suoshu terminal, which is sent, uploads expiry notification, and by the characteristic value of the content of the predeterminated position of the file destination With the characteristic value of the full content of the file destination, it is corresponding with full text characteristic value that local content characteristic value is arrived in corresponding storage In relationship;
If in the corresponding relationship of the pre-stored characteristic value and file not including the complete of the file destination received The corresponding file of the characteristic value of portion's content, the then after file destination uploads, by the full content of the file destination Characteristic value and the corresponding storage of the file destination into the corresponding relationship of the characteristic value and file, and by target text The office is arrived in the characteristic value of the full content of the characteristic value of the content of the predeterminated position of part and the file destination, corresponding storage In the corresponding relationship of portion's content characteristic values and full text characteristic value.
17. a kind of file uploading system, which is characterized in that the system comprises terminal and servers, in which:
The terminal detects the data volume of the file destination for receiving the uploading instructions of file destination;If the data Amount is less than preset threshold, it is determined that the characteristic value of the full content of the file destination;If the data volume is more than default Threshold value, it is determined that the characteristic value of the content of the predeterminated position of the file destination;The feature determined is sent to the server Value;If receiving the upload notifications that the server is sent, the file destination is uploaded to the server;If received The upload success notification sent to the server, then show and upload successfully prompt information;
The server, the characteristic value sent for receiving the terminal;Whether inquiry is local is stored with the characteristic value received With corresponding file;If the characteristic value received and corresponding file is locally stored, recording the file is the end The file uploaded is held, and is sent to the terminal and uploads success notification;Otherwise, Xiang Suoshu terminal sends upload notifications, receives institute The file destination for stating terminal upload, by characteristic value storage corresponding with file destination progress.
CN201410531294.0A 2014-10-10 2014-10-10 A kind of file uploading method, device and system Active CN105577712B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410531294.0A CN105577712B (en) 2014-10-10 2014-10-10 A kind of file uploading method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410531294.0A CN105577712B (en) 2014-10-10 2014-10-10 A kind of file uploading method, device and system

Publications (2)

Publication Number Publication Date
CN105577712A CN105577712A (en) 2016-05-11
CN105577712B true CN105577712B (en) 2019-06-11

Family

ID=55887365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410531294.0A Active CN105577712B (en) 2014-10-10 2014-10-10 A kind of file uploading method, device and system

Country Status (1)

Country Link
CN (1) CN105577712B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302641B (en) 2016-07-27 2019-10-01 北京小米移动软件有限公司 A kind of methods, devices and systems of upper transmitting file
CN106455049B (en) 2016-09-18 2020-03-03 北京小米移动软件有限公司 Positioning method and device based on wireless local area network
CN109460638A (en) * 2018-11-22 2019-03-12 郑州云海信息技术有限公司 A kind of method and apparatus for managing executable program
CN112134781A (en) * 2019-06-25 2020-12-25 广州慧睿思通信息科技有限公司 Mail data processing method, device, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102739791A (en) * 2012-06-28 2012-10-17 奇智软件(北京)有限公司 File downloading and uploading method and device
CN102801813A (en) * 2012-08-27 2012-11-28 广东利为网络科技有限公司 Device and method for automatically uploading audio and video files from terminal equipment
CN102799598A (en) * 2011-05-25 2012-11-28 英业达股份有限公司 Data recovery method for deleting repeated data
CN103246646A (en) * 2012-02-01 2013-08-14 腾讯科技(深圳)有限公司 Network data obtaining method and device
CN103581242A (en) * 2012-07-27 2014-02-12 腾讯科技(深圳)有限公司 Method, client-side equipment, server and system for uploading files
CN103685337A (en) * 2012-08-31 2014-03-26 腾讯科技(深圳)有限公司 File sharing method, terminal equipment and relay server
CN103841170A (en) * 2012-11-27 2014-06-04 联想(北京)有限公司 Cloud storage method and server

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5078674B2 (en) * 2008-02-29 2012-11-21 インターナショナル・ビジネス・マシーンズ・コーポレーション Analysis system, information processing apparatus, activity analysis method, and program
KR101718891B1 (en) * 2010-01-26 2017-03-23 삼성전자주식회사 Method and apparatus for searching image

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799598A (en) * 2011-05-25 2012-11-28 英业达股份有限公司 Data recovery method for deleting repeated data
CN103246646A (en) * 2012-02-01 2013-08-14 腾讯科技(深圳)有限公司 Network data obtaining method and device
CN102739791A (en) * 2012-06-28 2012-10-17 奇智软件(北京)有限公司 File downloading and uploading method and device
CN103581242A (en) * 2012-07-27 2014-02-12 腾讯科技(深圳)有限公司 Method, client-side equipment, server and system for uploading files
CN102801813A (en) * 2012-08-27 2012-11-28 广东利为网络科技有限公司 Device and method for automatically uploading audio and video files from terminal equipment
CN103685337A (en) * 2012-08-31 2014-03-26 腾讯科技(深圳)有限公司 File sharing method, terminal equipment and relay server
CN103841170A (en) * 2012-11-27 2014-06-04 联想(北京)有限公司 Cloud storage method and server

Also Published As

Publication number Publication date
CN105577712A (en) 2016-05-11

Similar Documents

Publication Publication Date Title
CN104850434B (en) Multimedia resource method for down loading and device
CN104618217B (en) Share method, terminal, server and the system of resource
CN105278937B (en) A kind of method and device showing pop-up box message
CN103294515B (en) A kind of methods, devices and systems for obtaining application program
CN104426962B (en) Method, binding server, terminal and the system of multiple terminals binding
CN104618222B (en) A kind of method and device for matching facial expression image
CN104142868B (en) Establish the method and device of connection
US20170155521A1 (en) Method and apparatus for processing group chat message
CN105681441B (en) Data transmission method and device
CN104965641B (en) information display method and device
CN104679381B (en) Switch the method and device of chat window
CN103347003B (en) A kind of Voice over Internet method, Apparatus and system
CN105207880B (en) Group recommending method and device
CN103179026B (en) Communication means in user interactive system, system and server and client side
CN103475914A (en) Video playing method, video playing device, terminal equipment and server
CN104516624B (en) A kind of method and device inputting account information
CN106775262A (en) A kind of method and system of mark display management of not interpreting blueprints
CN105577712B (en) A kind of file uploading method, device and system
CN107465802A (en) A kind of methods, devices and systems for showing communication message
CN104660769B (en) A kind of methods, devices and systems for adding associated person information
CN104363590A (en) Access point connection method and device
CN104092657B (en) Method, equipment and the system of information transmission
CN105553718B (en) Guidance information display methods and device
CN104780234B (en) IP attribution inquiry method, apparatus and system
CN109495769A (en) Video communication method, terminal, smart television, server and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant