CN105577712A - File uploading method, file uploading device, and file uploading system - Google Patents

File uploading method, file uploading device, and file uploading system Download PDF

Info

Publication number
CN105577712A
CN105577712A CN201410531294.0A CN201410531294A CN105577712A CN 105577712 A CN105577712 A CN 105577712A CN 201410531294 A CN201410531294 A CN 201410531294A CN 105577712 A CN105577712 A CN 105577712A
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.)
Granted
Application number
CN201410531294.0A
Other languages
Chinese (zh)
Other versions
CN105577712B (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 invention discloses a file uploading method, a file uploading device, and a file uploading system, and belongs to the Internet technology field. The file uploading method is characterized in that an uploading instruction of a target file can be received, and the data size of the target file can be detected; when the data size does not exceed the preset threshold value, the characteristic value of the whole content of the target file can be determined; when the data size exceeds the preset threshold value, the characteristic value of the content of the preset position of the target file can be determined, and then the determined characteristic value can be transmitted to a server; when the uploading notification transmitted by the server is received, the target file can be uploaded to the server; when the notification related to the successful uploading transmitted by the server is received, the prompting information related to the successful uploading can be displayed. The file uploading efficiency can be improved.

Description

A kind of file uploading method, device and system
Technical field
The present invention relates to Internet technical field, particularly a kind of file uploading method, device and system.
Background technology
Along with the development of Internet technology, from strength to strength, transfer of data is one of critical function of the Internet to the function of the Internet.User can by the Internet to files such as other user's transferring documents, picture and videos, if the target account of carrying out file transfer is in off-line state, this file can first be uploaded onto the server by user, and after this target account is reached the standard grade, this file is sent to target account by server again.
Before terminal to server upload file, need the characteristic value (as cryptographic Hash) of the full content of calculation document, i.e. full text characteristic value, and send characteristic value in full to server, server can carry out record to full text characteristic value, after terminal completes files passe, server can characteristic value and file carry out corresponding stored in full by this, when other users follow-up upload same file, after server receives the full text characteristic value of this file, inquire the full text characteristic value self having stored this file, then send to terminal and upload successful message, file is sent without the need to terminal.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
When the file data amount that user uploads is larger, the time calculating characteristic value in full can be very long, like this, files passe efficiency can be caused lower.
Summary of the invention
In order to solve the problem of prior art, embodiments provide a kind of file uploading method, device and system.Described technical scheme is as follows:
First aspect, provides a kind of file uploading method, and described method comprises:
The uploading instructions of receiving target file, detects the data volume of described file destination;
If described data volume does not exceed predetermined threshold value, then determine the characteristic value of the full content of described file destination; If described data volume exceedes predetermined threshold value, then determine the characteristic value of the content of the predeterminated position of described file destination;
The characteristic value determined is sent to server;
If receive the upload notifications that described server sends, then upload described file destination to described server;
If what receive the transmission of described server uploads success notification, then information is uploaded successfully in display.
Second aspect, provides a kind of file uploading method, and described method comprises:
The characteristic value that receiving terminal sends; Wherein, described characteristic value is that described terminal is at the uploading instructions of receiving target file and after detecting the data volume of described file destination, described data volume is not exceeded to the situation of predetermined threshold value, the characteristic value of the full content of the described file destination determined, or, described data volume is exceeded to the situation of predetermined threshold value, the characteristic value of the content of the predeterminated position of the described file destination determined;
Whether inquiry is local stores the characteristic value and corresponding file that receive;
If this locality stores the characteristic value and corresponding file that receive, then recording described file is the file that described terminal is uploaded, and uploads success notification to described terminal transmission; Otherwise, send upload notifications to described terminal, receive the file destination that described terminal is uploaded, described characteristic value is carried out corresponding storage with described file destination.
The third aspect, provides a kind of terminal, and described terminal comprises:
Detection module, for the uploading instructions of receiving target file, detects the data volume of described file destination;
Determination module, if do not exceed predetermined threshold value for described data volume, then determines the characteristic value of the full content of described file destination; If described data volume exceedes predetermined threshold value, then determine the characteristic value of the content of the predeterminated position of described file destination;
Sending module, for sending the characteristic value determined to server;
Upper transmission module, if for receiving the upload notifications that described server sends, then upload described file destination to described server;
Display module, if for receive described server send upload success notification, then display upload successfully information.
Fourth aspect, provides a kind of server, and described server comprises:
Receiver module, for the characteristic value that receiving terminal sends; Wherein, described characteristic value is that described terminal is at the uploading instructions of receiving target file and after detecting the data volume of described file destination, described data volume is not exceeded to the situation of predetermined threshold value, the characteristic value of the full content of the described file destination determined, or, described data volume is exceeded to the situation of predetermined threshold value, the characteristic value of the content of the predeterminated position of the described file destination determined;
Enquiry module, for inquiring about the local file whether storing characteristic value and the correspondence received;
Sending module, if store the characteristic value and corresponding file that receive for this locality, then recording described file is the file that described terminal is uploaded, and uploads success notification to described terminal transmission; Otherwise, send upload notifications to described terminal, receive the file destination that described terminal is uploaded, described characteristic value is carried out corresponding storage with described file destination.
5th aspect, provides a kind of file uploading system, and described system comprises terminal and server, wherein:
Described terminal, for the uploading instructions of receiving target file, detects the data volume of described file destination; If described data volume does not exceed predetermined threshold value, then determine the characteristic value of the full content of described file destination; If described data volume exceedes predetermined threshold value, then determine the characteristic value of the content of the predeterminated position of described file destination; The characteristic value determined is sent to described server; If receive the upload notifications that described server sends, then upload described file destination to described server; If what receive the transmission of described server uploads success notification, then information is uploaded successfully in display;
Described server, for receiving the characteristic value that described terminal sends; Whether inquiry is local stores the characteristic value and corresponding file that receive; If this locality stores the characteristic value and corresponding file that receive, then recording described file is the file that described terminal is uploaded, and uploads success notification to described terminal transmission; Otherwise, send upload notifications to described terminal, receive the file destination that described terminal is uploaded, described characteristic value is carried out corresponding storage with described file destination.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
In the embodiment of the present invention, the uploading instructions of receiving target file, detects the data volume of file destination, if this data volume does not exceed predetermined threshold value, then determines the characteristic value of the full content of file destination; If this data volume exceedes predetermined threshold value, then determine the characteristic value of the content of the predeterminated position of file destination, the characteristic value determined is sent to server, if receive the upload notifications that server sends, then upload file destination to server, if what receive server transmission uploads success notification, then information is uploaded successfully in display.Like this, when the file data amount that user uploads is larger, can the partial feature value of calculation document, thus, files passe efficiency can be improved.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of file uploading method flow chart that the embodiment of the present invention provides;
Fig. 2 is a kind of file uploading method flow chart that the embodiment of the present invention provides;
Fig. 3 is a kind of file uploading method flow chart that the embodiment of the present invention provides;
Fig. 4 is the structural representation of a kind of terminal that the embodiment of the present invention provides;
Fig. 5 is the structural representation of a kind of server that the embodiment of the present invention provides;
Fig. 6 is the structural representation of a kind of terminal that the embodiment of the present invention provides;
Fig. 7 is the structural representation of a kind of server that the embodiment of the present invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment one
Embodiments provide a kind of file uploading method, the method can be realized jointly by terminal and server.
As shown in Figure 1, in the method, the handling process of terminal can comprise following step:
Step 101, the uploading instructions of receiving target file, detects the data volume of file destination.
Step 102, if this data volume does not exceed predetermined threshold value, then determines the characteristic value of the full content of file destination; If this data volume exceedes predetermined threshold value, then determine the characteristic value of the content of the predeterminated position of file destination.
Step 103, sends the characteristic value determined to server.
Step 104, if the upload notifications receiving server transmission, then uploads file destination to server;
Step 105, if receive server send upload success notification, then display upload successfully information.
As shown in Figure 2, in the method, the handling process of server can comprise following step:
Step 201, the characteristic value that receiving terminal sends; Wherein, this characteristic value is that this terminal is at the uploading instructions of receiving target file and after detecting the data volume of file destination, this data volume is not exceeded to the situation of predetermined threshold value, the characteristic value of the full content of the file destination determined, or, this data volume is exceeded to the situation of predetermined threshold value, the characteristic value of the content of the predeterminated position of the file destination determined.
Step 202, whether inquiry is local stores the characteristic value and corresponding file that receive.
Step 203, if this locality stores the characteristic value and corresponding file that receive, then recording this file is the file that terminal is uploaded, and uploads success notification to terminal transmission; Otherwise send upload notifications to terminal, the file destination that receiving terminal is uploaded, carries out corresponding storage by this characteristic value with file destination.
In the embodiment of the present invention, the uploading instructions of receiving target file, detects the data volume of file destination, if this data volume does not exceed predetermined threshold value, then determines the characteristic value of the full content of file destination; If this data volume exceedes predetermined threshold value, then determine the characteristic value of the content of the predeterminated position of file destination, the characteristic value determined is sent to server, if receive the upload notifications that server sends, then upload file destination to server, if what receive server transmission uploads success notification, then information is uploaded successfully in display.Like this, when the file data amount that user uploads is larger, can the partial feature value of calculation document, thus, files passe efficiency can be improved.
Embodiment two
Embodiments provide a kind of file uploading method, the method can be realized jointly by terminal and server.Wherein, terminal can be the terminal with files passe function, and server can be the destination server of files passe.Widely, in the present embodiment, carry out the detailed description of scheme for the application scenarios uploading off-line files, other situation is similar with it, is not repeated in the present embodiment for the application scenarios of files passe.
As shown in Figure 3, the handling process of the method can comprise following step:
Step 301, the uploading instructions of terminal receiving target file, detects the data volume of file destination.
In force, when certain user needs to other user's transmitting offline files, the application program (as certain instant messaging application program) with file transmitting function can be opened in terminal, after user logs in the account of oneself, the icon of the good friend's account wanting transfer files can be clicked in buddy list, terminal then can show the dialog box with this good friend's account, user can click transmitting offline file button in dialog box, terminal then can show the window for selecting transfer files, user can select certain file (file destination) that will transmit in the window, then click and open button, terminal then can receive uploading instructions, now terminal can detect this file, determine the data volume of this file.
Step 302, if this data volume does not exceed predetermined threshold value, then the characteristic value of the full content of terminal determination file destination; If this data volume exceedes predetermined threshold value, then the characteristic value of the content of the predeterminated position of terminal determination file destination.
Wherein, characteristic value is the code for uniquely tagged one piece of data content, can think the identity information of this segment data content.Based on the characteristic value algorithm preset, characteristic value can be calculated to this segment data content.Characteristic value in the present embodiment can be cryptographic Hash, and corresponding characteristic value algorithm is hash algorithm.
In force, the threshold value (as 50M) of data volume can be pre-set in above-mentioned application program, and the data volume of file above-mentioned steps determined and this threshold value contrast, if the data volume of file is less than or equal to this threshold value, then terminal can obtain the full content of file, the characteristic value (as full text cryptographic Hash) of calculation document full content, if the data volume of file is greater than this threshold value, then terminal can obtain the content of file predeterminated position, the characteristic value of the content of calculation document predeterminated position.Predeterminated position can be the one or more positions in the data content of preassigned file, each position can be a scope, to having one piece of data, such as, the scope of preset data length (as 3M, 10M etc.) backward from the stem of file, or from the afterbody of file the scope of preset data length forward, or the scope etc. of preset data length in the middle of file.The characteristic value of the content of file predeterminated position also can be called local content characteristic value, and predeterminated position can be arranged arbitrarily according to demand.Such as, obtain each 10M data in this file header, afterbody and middle part, and calculate the characteristic value of the 30M data got, the local content characteristic value that this calculates can be called three sections of characteristic values (as three sections of cryptographic Hash).
Step 303, terminal to server sends the characteristic value determined.
In force, after terminal calculates the characteristic value of file destination, upload request message can be sent to server, upload request message be terminal for the message to server application upload file, the information such as the account identification of the characteristic value of file destination and the account of the current login of terminal can be carried in upload request message.In application program, the type (i.e. the characteristic value of the characteristic value of full content and the content of predeterminated position) of characteristic value and the corresponding relation of host-host protocol can be prestored, after then terminal determines the characteristic value of file destination, corresponding host-host protocol can be used to transmit.Such as, if the characteristic value that terminal is determined is the characteristic value of the full content of file destination, agreement 1 or agreement 2 then can be used to transmit, if the characteristic value that terminal is determined is the characteristic value of the content of the predeterminated position of file destination, then agreement 3 or agreement 4 can be used to transmit.
Step 304, the characteristic value that server receiving terminal sends.
In force, server can the upload request message that sends of receiving terminal, then resolves upload request message, obtain the characteristic value of file wherein.
Step 305, whether server lookup this locality stores the characteristic value and corresponding file that receive, if this locality stores the characteristic value and corresponding file that receive, then performs step 306, otherwise, perform step 308.
In force, the characteristic value of heap file and each file can be previously stored with in service, and set up the index relative table of file, corresponding with the characteristic value of file for each file can be stored in the index relative table of file by server, and the characteristic value of file is this file index in the server.After server obtains the characteristic value of file destination, can inquire about whether store this characteristic value in index relative table, this characteristic value is stored if inquired, then whether can store file corresponding to this characteristic value in querying server, if inquire corresponding file, then step 306 can be performed, if do not inquire the characteristic value received, or do not inquire the file that this characteristic value is corresponding, then can perform step 308.
Optionally, predetermined threshold value is not exceeded for file destination, the situation of the characteristic value of the full content of terminal determination file destination, accordingly, the processing procedure of step 305 can be as follows: when the characteristic value received is the characteristic value of the full content of file destination, then according to the characteristic value that the prestores corresponding relation with file, the local file whether storing characteristic value and the correspondence received of inquiry.
In force, after server receives upload request message, can according to the corresponding relation of the type of above-mentioned characteristic value and host-host protocol, determine the type of the host-host protocol characteristic of correspondence value that upload request message uses, if this characteristic value is the characteristic value of the full content of file, i.e. full text characteristic value, then server can inquire about whether store this characteristic value in index relative table, this characteristic value is stored if inquired, then whether can store file corresponding to this characteristic value in querying server, if inquire corresponding file, then step 306 can be performed, if do not inquire the characteristic value received, or do not inquire the file that this characteristic value is corresponding, then step 308 can be performed.
Optionally, predetermined threshold value is exceeded for file destination, the situation of the characteristic value of the content of the predeterminated position of terminal determination file destination, accordingly, the processing procedure of step 305 can be as follows: when the characteristic value received is the characteristic value of the content of the predeterminated position of file destination, according to the corresponding relation of the local content characteristic value prestored with full text characteristic value, the first full text characteristic value that the characteristic value that inquire-receive arrives is corresponding; If inquire the first characteristic value in full that the characteristic value that receives is corresponding, then inquire about in the corresponding relation of characteristic value and the file prestored and whether comprise the first full text characteristic value, if, then judge the local file storing characteristic value and the correspondence received, otherwise, judge the local file simultaneously not storing characteristic value and the correspondence received; Or, if do not inquire the first characteristic value in full corresponding to the characteristic value that receives, then according to the corresponding relation of the characteristic value prestored with file, the local file whether storing characteristic value and the correspondence received of inquiry.
In force, in the index relative table of server, except the characteristic value of upload file that this server receives and file can be stored, the characteristic value of file and the file obtained from other servers can also be stored, wherein, the characteristic value of the file obtained from other server generally is the full text characteristic value of file.For this reason, this server can set up the local content characteristic value of file and the mapping table (can be called fast table) of full text characteristic value, searching with convenience file.
After server receives upload request message, if determine the characteristic value of the content that the characteristic value of wherein carrying is predeterminated position according to the host-host protocol of upload request message use, then can inquire about the characteristic value whether storing and receive in fast table.If server inquires this characteristic value in fast table, then can determine the full text characteristic value (i.e. the first full text characteristic value) that this characteristic value is corresponding, and then can inquire about whether store this full text characteristic value in index relative table, if stored this full text characteristic value in index relative table, then server can judge that this locality stores the characteristic value and corresponding file received, if server does not inquire this full text characteristic value in index relative table, then server can judge the local file simultaneously not storing characteristic value and the correspondence received.If server does not inquire the characteristic value received in fast table, then server can inquire about whether store this characteristic value in index relative table, this characteristic value is stored if inquired, then whether can store file corresponding to this characteristic value in querying server, if inquire corresponding file, then step 306 can be performed, if do not inquire the characteristic value received, or do not inquire the file that this characteristic value is corresponding, then can perform step 308.
Step 306, this file of server record is the file that terminal is uploaded, and uploads success notification to terminal transmission.
In force, after server receives upload request message, the account identification in upload request message can be obtained, then determine the account of account mark correspondence.If after server detects, judge local to store the characteristic value and corresponding file that receive, then the file identification of file that can will inquire, adds in the upload file list of the account, and send this file to terminal upload success notification.
Step 307, terminal receive server send upload success notification, display upload successfully information.
In force, terminal receive server send upload success notification after, can to user display upload successful information, and not to server send file.
It should be noted that, after step 307 is finished, flow process terminates.
Step 308, server sends upload notifications to terminal.
In force, if after server detection, judge the local file simultaneously not storing characteristic value and the correspondence received, then can send upload notifications to terminal.
Step 309, terminal receives the upload notifications that server sends, and uploads file destination to server.
In force, if terminal receives the upload notifications that server sends, then can send the file of user's selection to server, after file is sent completely, terminal can send to server upload complete notice.
Optionally, terminal to server is sent to the situation of local content characteristic values, terminal, can the characteristic value of full content of calculation document in the process of server up transfer file, corresponding processing procedure can be as follows: the characteristic value determining the full content of file destination, sends to server.
In force, in the process of terminal to server upload file, can the characteristic value of full content of calculation document.If terminal, in the process of server up transfer file, completes the process of the characteristic value of the full content of calculation document, then can send the characteristic value of the full content of file to server.
Optionally, if terminal is when files passe completes, do not complete the process of the characteristic value of the full content of calculation document, then can stop this process, corresponding processing procedure can be as follows: determine file destination full content characteristic value process in, if file destination is uploaded complete, then stop the process determining the characteristic value of the full content of file destination.
Step 310, the file destination that server receiving terminal is uploaded, carries out corresponding storage by this characteristic value with file destination.
In force, server can the file destination uploaded of receiving terminal, when receive that terminal sends upload complete notice after, corresponding with the characteristic value of this file for the file received can be stored in index relative table.
Optionally, for above-mentioned terminal in the process of server up transfer file, calculate the characteristic value of the full content of file destination, send to the situation of server, accordingly, the process of step 310 server can be as follows: the file destination that receiving terminal is uploaded; In the process of the file destination uploaded at receiving terminal, receive the characteristic value of the full content of the file destination that terminal sends; Then, following two kinds of situation process are divided:
Situation one, if the file that the characteristic value prestored is corresponding with the characteristic value comprising the full content of the file destination received in the corresponding relation of file, the file that then characteristic value of the full content of record object file is corresponding is the file that terminal is uploaded, send to terminal and upload expiry notification, and by the characteristic value of the characteristic value of the content of the predeterminated position of file destination and the full content of file destination, the corresponding local content characteristic value that is stored into is with the corresponding relation of characteristic value in full.
In force, terminal to server is sent to the situation of carrying the upload request message of local content characteristic value, in the process of the file destination that subsequent server is uploaded at receiving terminal, the characteristic value of the full content of the file that terminal sends can be received, then can inquire about in above-mentioned index relative table, if store this characteristic value in index relative table, then whether can store file corresponding to this characteristic value in querying server, if store the file that this characteristic value is corresponding, then can by the file identification of this file, add in the upload file list of the account, and send this file to terminal upload expiry notification, server can be stored into corresponding for the characteristic value of the content of the characteristic value of this file full content and predeterminated position in above-mentioned fast table (i.e. the mapping table of local content characteristic value and characteristic value in full).If do not comprise the file of this characteristic value or correspondence in index relative table, the reception to file destination can be kept, not do the process stopping uploading.
Accordingly, the process of end side can be as follows: if receive server send upload expiry notification, then stop upload file destination, and display upload successfully information.
In force, if terminal is in the process of upload file, what receive server transmission uploads expiry notification, then terminal stops upload file, and upload successful information to user's display, the process resource of terminal can be saved like this, improve files passe efficiency.
Situation two, if the file that the characteristic value prestored is corresponding with the characteristic value not comprising the full content of the file destination received in the corresponding relation of file, then after file destination is uploaded, by the characteristic value of the full content of file destination and file destination corresponding be stored in the corresponding relation of characteristic value and file, and by the characteristic value of the characteristic value of the content of the predeterminated position of file destination and the full content of file destination, the corresponding local content characteristic value that is stored into is with the corresponding relation of characteristic value in full.
In force, if after server lookup, determine the file not storing this characteristic value or correspondence in index relative table, then can continue the file that receiving terminal is uploaded, when receive terminal send upload complete notice after, server can by the file identification of this file, add in the upload file list of account corresponding to the account identification of carrying in upload request message, and send this file to terminal upload success notification, then can by the characteristic value of the full content of this file and file corresponding be stored in index relative table, and corresponding for the characteristic value of the characteristic value of the full content of this file and the content of predeterminated position is stored in fast table, so that follow-up use.
In the embodiment of the present invention, the uploading instructions of receiving target file, detects the data volume of file destination, if this data volume does not exceed predetermined threshold value, then determines the characteristic value of the full content of file destination; If this data volume exceedes predetermined threshold value, then determine the characteristic value of the content of the predeterminated position of file destination, the characteristic value determined is sent to server, if receive the upload notifications that server sends, then upload file destination to server, if what receive server transmission uploads success notification, then information is uploaded successfully in display.Like this, when the file data amount that user uploads is larger, can the partial feature value of calculation document, thus, files passe efficiency can be improved.
Embodiment three
Based on identical technical conceive, the embodiment of the present invention additionally provides a kind of terminal, and as shown in Figure 4, this terminal comprises:
Detection module 410, for the uploading instructions of receiving target file, detects the data volume of described file destination;
Determination module 420, if do not exceed predetermined threshold value for described data volume, then determines the characteristic value of the full content of described file destination; If described data volume exceedes predetermined threshold value, then determine the characteristic value of the content of the predeterminated position of described file destination;
Sending module 430, for sending the characteristic value determined to server;
Upper transmission module 440, if for receiving the upload notifications that described server sends, then upload described file destination to described server;
Display module 450, if receive described server send upload success notification, then display upload successfully information.
Optionally, described determination module 420, also for:
If described data volume exceedes predetermined threshold value, then described receive described server send upload notifications after, determine the characteristic value of the full content of described file destination, send to described server.
Optionally, described upper transmission module 440, also for:
The described characteristic value determining the full content of described file destination, after sending to described server, if receive described server send upload expiry notification, then stop upload described file destination, and display upload successfully information.
Optionally, described determination module 420, also for:
Determine in the process of the characteristic value of the full content of described file destination described, if described file destination is uploaded complete, then stop the process determining the characteristic value of the full content of described file destination.
Based on identical technical conceive, the embodiment of the present invention additionally provides a kind of server, and as shown in Figure 5, described server comprises:
Receiver module 510, for the characteristic value that receiving terminal sends; Wherein, described characteristic value is that described terminal is at the uploading instructions of receiving target file and after detecting the data volume of described file destination, described data volume is not exceeded to the situation of predetermined threshold value, the characteristic value of the full content of the described file destination determined, or, described data volume is exceeded to the situation of predetermined threshold value, the characteristic value of the content of the predeterminated position of the described file destination determined;
Enquiry module 520, for inquiring about the local file whether storing characteristic value and the correspondence received;
Sending module 530, if store the characteristic value and corresponding file that receive for this locality, then recording described file is the file that described terminal is uploaded, and uploads success notification to described terminal transmission; Otherwise, send upload notifications to described terminal, receive the file destination that described terminal is uploaded, described characteristic value is carried out corresponding storage with described file destination.
Optionally, described enquiry module 520, for:
When the characteristic value received is the characteristic value of the full content of described file destination, then according to the characteristic value that the prestores corresponding relation with file, inquiry is local whether store described in the file of the characteristic value that receives and correspondence.
Optionally, described enquiry module 520, for:
When the characteristic value received is the characteristic value of the content of the predeterminated position of described file destination, according to the corresponding relation of the local content characteristic value prestored with full text characteristic value, the first full text characteristic value that the characteristic value received described in inquiry is corresponding;
If the first full text characteristic value that the characteristic value received described in inquiring is corresponding, then inquire about in the corresponding relation of characteristic value and the file prestored and whether comprise described first full text characteristic value, if, then judge the file of characteristic value and the correspondence received described in local storing, otherwise, the characteristic value received described in judgement this locality does not store simultaneously and corresponding file; Or,
If the first in full characteristic value that the characteristic value received described in not inquiring is corresponding, then according to the corresponding relation of the characteristic value prestored with file, inquiry is local whether store described in the file of the characteristic value that receives and correspondence.
Optionally, described sending module 530, for:
Receive the file destination that described terminal is uploaded;
In the process of the file destination uploaded in the described terminal of described reception, receive the characteristic value of the full content of the described file destination that described terminal sends;
If described in the characteristic value that the prestores file corresponding with the characteristic value of the full content comprising the described file destination received in the corresponding relation of file, the file then recording the characteristic value of the full content of described file destination corresponding is the file that described terminal is uploaded, send to described terminal and upload expiry notification, and by the characteristic value of the full content of the characteristic value of the content of the predeterminated position of described file destination and described file destination, corresponding be stored into described local content characteristic value with the corresponding relation of characteristic value in full;
If described in the characteristic value that the prestores file corresponding with the characteristic value of the full content not comprising the described file destination received in the corresponding relation of file, then after described file destination is uploaded, by the characteristic value of the full content of described file destination and described file destination corresponding be stored in the corresponding relation of described characteristic value and file, and by the characteristic value of the full content of the characteristic value of the content of the predeterminated position of described file destination and described file destination, corresponding be stored into described local content characteristic value with the corresponding relation of characteristic value in full.
In the embodiment of the present invention, the uploading instructions of receiving target file, detects the data volume of file destination, if this data volume does not exceed predetermined threshold value, then determines the characteristic value of the full content of file destination; If this data volume exceedes predetermined threshold value, then determine the characteristic value of the content of the predeterminated position of file destination, the characteristic value determined is sent to server, if receive the upload notifications that server sends, then upload file destination to server, if what receive server transmission uploads success notification, then information is uploaded successfully in display.Like this, when the file data amount that user uploads is larger, can the partial feature value of calculation document, thus, files passe efficiency can be improved.
Embodiment four
Based on identical technical conceive, the embodiment of the present invention additionally provides a kind of file uploading system, and described system comprises terminal and server, wherein:
Described terminal, for the uploading instructions of receiving target file, detects the data volume of described file destination; If described data volume does not exceed predetermined threshold value, then determine the characteristic value of the full content of described file destination; If described data volume exceedes predetermined threshold value, then determine the characteristic value of the content of the predeterminated position of described file destination; The characteristic value determined is sent to described server; If receive the upload notifications that described server sends, then upload described file destination to described server; If what receive the transmission of described server uploads success notification, then information is uploaded successfully in display;
Described server, for receiving the characteristic value that described terminal sends; Whether inquiry is local stores the characteristic value and corresponding file that receive; If this locality stores the characteristic value and corresponding file that receive, then recording described file is the file that described terminal is uploaded, and uploads success notification to described terminal transmission; Otherwise, send upload notifications to described terminal, receive the file destination that described terminal is uploaded, described characteristic value is carried out corresponding storage with described file destination.
In the embodiment of the present invention, the uploading instructions of receiving target file, detects the data volume of file destination, if this data volume does not exceed predetermined threshold value, then determines the characteristic value of the full content of file destination; If this data volume exceedes predetermined threshold value, then determine the characteristic value of the content of the predeterminated position of file destination, the characteristic value determined is sent to server, if receive the upload notifications that server sends, then upload file destination to server, if what receive server transmission uploads success notification, then information is uploaded successfully in display.Like this, when the file data amount that user uploads is larger, can the partial feature value of calculation document, thus, files passe efficiency can be improved.
Embodiment five
Please refer to Fig. 6, it illustrates the terminal structure schematic diagram with Touch sensitive surface involved by the embodiment of the present invention, this terminal may be used for the file uploading method implementing to provide in above-described embodiment.Specifically:
Terminal 900 can comprise RF (RadioFrequency, radio frequency) circuit 110, the memory 120 including one or more computer-readable recording mediums, input unit 130, display unit 140, transducer 150, voicefrequency circuit 160, WiFi (wirelessfidelity, Wireless Fidelity) module 170, include the parts such as processor 180 and power supply 190 that more than or processes core.It will be understood by those skilled in the art that the restriction of the not structure paired terminal of the terminal structure shown in Fig. 6, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.Wherein:
RF circuit 110 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, transfer to more than one or one processor 180 to process; In addition, base station is sent to by relating to up data.Usually, RF circuit 110 includes but not limited to antenna, at least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM) card, transceiver, coupler, LNA (LowNoiseAmplifier, low noise amplifier), duplexer etc.In addition, RF circuit 110 can also by radio communication and network and other devices communicatings.Described radio communication can use arbitrary communication standard or agreement, include but not limited to GSM (GlobalSystemofMobilecommunication, global system for mobile communications), GPRS (GeneralPacketRadioService, general packet radio service), CDMA (CodeDivisionMultipleAccess, code division multiple access), WCDMA (WidebandCodeDivisionMultipleAccess, Wideband Code Division Multiple Access (WCDMA)), LTE (LongTermEvolution, Long Term Evolution), Email, SMS (ShortMessagingService, Short Message Service) etc.
Memory 120 can be used for storing software program and module, and processor 180 is stored in software program and the module of memory 120 by running, thus performs the application of various function and data processing.Memory 120 mainly can comprise storage program district and store data field, and wherein, storage program district can storage operation system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of terminal 900.In addition, memory 120 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 120 can also comprise Memory Controller, to provide the access of processor 180 and input unit 130 pairs of memories 120.
Input unit 130 can be used for the numeral or the character information that receive input, and produces and to arrange with user and function controls relevant keyboard, mouse, action bars, optics or trace ball signal and inputs.Particularly, input unit 130 can comprise Touch sensitive surface 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on Touch sensitive surface 131 or near Touch sensitive surface 131 such as finger, stylus) thereon, and drive corresponding jockey according to the formula preset.Optionally, Touch sensitive surface 131 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 180, and the order that energy receiving processor 180 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize Touch sensitive surface 131.Except Touch sensitive surface 131, input unit 130 can also comprise other input equipments 132.Particularly, other input equipments 132 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
Display unit 140 can be used for the various graphical user interface showing information or the information being supplied to user and the terminal 900 inputted by user, and these graphical user interface can be made up of figure, text, icon, video and its combination in any.Display unit 140 can comprise display floater 141, optionally, the form such as LCD (LiquidCrystalDisplay, liquid crystal display), OLED (OrganicLight-EmittingDiode, Organic Light Emitting Diode) can be adopted to configure display floater 141.Further, Touch sensitive surface 131 can cover display floater 141, when Touch sensitive surface 131 detects thereon or after neighbouring touch operation, send processor 180 to determine the type of touch event, on display floater 141, provide corresponding vision to export with preprocessor 180 according to the type of touch event.Although in figure 6, Touch sensitive surface 131 and display floater 141 be as two independently parts realize input and input function, in certain embodiments, can by Touch sensitive surface 131 and display floater 141 integrated and realize input and output function.
Terminal 900 also can comprise at least one transducer 150, such as optical sensor, motion sensor and other transducers.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display floater 141, proximity transducer when terminal 900 moves in one's ear, can cut out display floater 141 and/or backlight.As the one of motion sensor, Gravity accelerometer can detect the size of all directions (are generally three axles) acceleration, size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as pedometer, knock) etc.; As for terminal 900 also other transducers such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 160, loud speaker 161, microphone 162 can provide the audio interface between user and terminal 900.Voicefrequency circuit 160 can by receive voice data conversion after the signal of telecommunication, be transferred to loud speaker 161, by loud speaker 161 be converted to voice signal export; On the other hand, the voice signal of collection is converted to the signal of telecommunication by microphone 162, voice data is converted to after being received by voicefrequency circuit 160, after again voice data output processor 180 being processed, through RF circuit 110 to send to such as another terminal, or export voice data to memory 120 to process further.Voicefrequency circuit 160 also may comprise earphone jack, to provide the communication of peripheral hardware earphone and terminal 900.
WiFi belongs to short range wireless transmission technology, and by WiFi module 170, terminal 900 can help that user sends and receive e-mail, browsing page and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Fig. 6 shows WiFi module 170, be understandable that, it does not belong to must forming of terminal 900, can omit in the scope of essence not changing invention as required completely.
Processor 180 is control centres of terminal 900, utilize the various piece of various interface and the whole mobile phone of connection, software program in memory 120 and/or module is stored in by running or performing, and call the data be stored in memory 120, perform various function and the deal with data of terminal 900, thus integral monitoring is carried out to mobile phone.Optionally, processor 180 can comprise one or more process core; Preferably, processor 180 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 180.
Terminal 900 also comprises the power supply 190 (such as battery) of powering to all parts, preferably, power supply can be connected with processor 180 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 190 can also comprise one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
Although not shown, terminal 900 can also comprise camera, bluetooth module etc., does not repeat them here.Specifically in the present embodiment, the display unit of terminal 900 is touch-screen displays, terminal 900 also includes memory, and one or more than one program, one of them or more than one program are stored in memory, and are configured to be performed by more than one or one processor state more than one or one program package containing the instruction for carrying out following operation:
The uploading instructions of receiving target file, detects the data volume of described file destination;
If described data volume does not exceed predetermined threshold value, then determine the characteristic value of the full content of described file destination; If described data volume exceedes predetermined threshold value, then determine the characteristic value of the content of the predeterminated position of described file destination;
The characteristic value determined is sent to server;
If receive the upload notifications that described server sends, then upload described file destination to described server;
If what receive the transmission of described server uploads success notification, then information is uploaded successfully in display.
Optionally, if described data volume exceedes predetermined threshold value, then, after receiving the upload notifications of described server transmission described in, also comprise:
Determine the characteristic value of the full content of described file destination, send to described server.
Optionally, the described characteristic value determining the full content of described file destination, after sending to described server, also comprises:
If what receive the transmission of described server uploads expiry notification, then stop uploading described file destination, and information is uploaded successfully in display.
Optionally, described method also comprises:
Determine in the process of the characteristic value of the full content of described file destination described, if described file destination is uploaded complete, then stop the process determining the characteristic value of the full content of described file destination.
In the embodiment of the present invention, the uploading instructions of receiving target file, detects the data volume of file destination, if this data volume does not exceed predetermined threshold value, then determines the characteristic value of the full content of file destination; If this data volume exceedes predetermined threshold value, then determine the characteristic value of the content of the predeterminated position of file destination, the characteristic value determined is sent to server, if receive the upload notifications that server sends, then upload file destination to server, if what receive server transmission uploads success notification, then information is uploaded successfully in display.Like this, when the file data amount that user uploads is larger, can the partial feature value of calculation document, thus, files passe efficiency can be improved.
Embodiment six
Fig. 7 is the structural representation of the server that the embodiment of the present invention provides.This server 1900 can produce larger difference because of configuration or performance difference, one or more central processing units (centralprocessingunits can be comprised, CPU) 1922 (such as, one or more processors) and memory 1932, one or more store the storage medium 1930 (such as one or more mass memory units) of application program 1942 or data 1944.Wherein, memory 1932 and storage medium 1930 can be of short duration storages or store lastingly.The program being stored in storage medium 1930 can comprise one or more modules (diagram does not mark), and each module can comprise a series of command operatings in server.Further, central processing unit 1922 can be set to communicate with storage medium 1930, and server 1900 performs a series of command operatings in storage medium 1930.
Server 1900 can also comprise one or more power supplys 1926, one or more wired or wireless network interfaces 1950, one or more input/output interfaces 1958, one or more keyboards 1956, and/or, one or more operating systems 1941, such as WindowsServerTM, MacOSXTM, UnixTM, LinuxTM, FreeBSDTM etc.
Server 1900 can include memory, and one or more than one program, one of them or more than one program are stored in memory, and are configured to perform described more than one or one program package containing the instruction for carrying out following operation by more than one or one processor:
The characteristic value that receiving terminal sends; Wherein, described characteristic value is that described terminal is at the uploading instructions of receiving target file and after detecting the data volume of described file destination, described data volume is not exceeded to the situation of predetermined threshold value, the characteristic value of the full content of the described file destination determined, or, described data volume is exceeded to the situation of predetermined threshold value, the characteristic value of the content of the predeterminated position of the described file destination determined;
Whether inquiry is local stores the characteristic value and corresponding file that receive;
If this locality stores the characteristic value and corresponding file that receive, then recording described file is the file that described terminal is uploaded, and uploads success notification to described terminal transmission; Otherwise, send upload notifications to described terminal, receive the file destination that described terminal is uploaded, described characteristic value is carried out corresponding storage with described file destination.
Optionally, whether described inquiry is local stores the characteristic value and corresponding file that receive, comprising:
When the characteristic value received is the characteristic value of the full content of described file destination, then according to the characteristic value that the prestores corresponding relation with file, inquiry is local whether store described in the file of the characteristic value that receives and correspondence.
Optionally, whether described inquiry is local stores the characteristic value and corresponding file that receive, comprising:
When the characteristic value received is the characteristic value of the content of the predeterminated position of described file destination, according to the corresponding relation of the local content characteristic value prestored with full text characteristic value, the first full text characteristic value that the characteristic value received described in inquiry is corresponding;
If the first full text characteristic value that the characteristic value received described in inquiring is corresponding, then inquire about in the corresponding relation of characteristic value and the file prestored and whether comprise described first full text characteristic value, if, then judge the file of characteristic value and the correspondence received described in local storing, otherwise, the characteristic value received described in judgement this locality does not store simultaneously and corresponding file; Or,
If the first in full characteristic value that the characteristic value received described in not inquiring is corresponding, then according to the corresponding relation of the characteristic value prestored with file, inquiry is local whether store described in the file of the characteristic value that receives and correspondence.
Optionally, the file destination that the described terminal of described reception is uploaded, carries out corresponding storage by described characteristic value with described file destination, comprising:
Receive the file destination that described terminal is uploaded;
In the process of the file destination uploaded in the described terminal of described reception, receive the characteristic value of the full content of the described file destination that described terminal sends;
If described in the characteristic value that the prestores file corresponding with the characteristic value of the full content comprising the described file destination received in the corresponding relation of file, the file then recording the characteristic value of the full content of described file destination corresponding is the file that described terminal is uploaded, send to described terminal and upload expiry notification, and by the characteristic value of the full content of the characteristic value of the content of the predeterminated position of described file destination and described file destination, corresponding be stored into described local content characteristic value with the corresponding relation of characteristic value in full;
If described in the characteristic value that the prestores file corresponding with the characteristic value of the full content not comprising the described file destination received in the corresponding relation of file, then after described file destination is uploaded, by the characteristic value of the full content of described file destination and described file destination corresponding be stored in the corresponding relation of described characteristic value and file, and by the characteristic value of the full content of the characteristic value of the content of the predeterminated position of described file destination and described file destination, corresponding be stored into described local content characteristic value with the corresponding relation of characteristic value in full.
In the embodiment of the present invention, the uploading instructions of receiving target file, detects the data volume of file destination, if this data volume does not exceed predetermined threshold value, then determines the characteristic value of the full content of file destination; If this data volume exceedes predetermined threshold value, then determine the characteristic value of the content of the predeterminated position of file destination, the characteristic value determined is sent to server, if receive the upload notifications that server sends, then upload file destination to server, if what receive server transmission uploads success notification, then information is uploaded successfully in display.Like this, when the file data amount that user uploads is larger, can the partial feature value of calculation document, thus, files passe efficiency can be improved.
It should be noted that: the files passe device that above-described embodiment provides is when upload file, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by equipment is divided into different functional modules, to complete all or part of function described above.In addition, the files passe device that above-described embodiment provides and file uploading method embodiment belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (17)

1. a file uploading method, is characterized in that, described method comprises:
The uploading instructions of receiving target file, detects the data volume of described file destination;
If described data volume does not exceed predetermined threshold value, then determine the characteristic value of the full content of described file destination; If described data volume exceedes predetermined threshold value, then determine the characteristic value of the content of the predeterminated position of described file destination;
The characteristic value determined is sent to server;
If receive the upload notifications that described server sends, then upload described file destination to described server;
If what receive the transmission of described server uploads success notification, then information is uploaded successfully in display.
2. method according to claim 1, is characterized in that, if described data volume exceedes predetermined threshold value, then, after receiving the upload notifications of described server transmission described in, also comprises:
Determine the characteristic value of the full content of described file destination, send to described server.
3. method according to claim 2, is characterized in that, the described characteristic value determining the full content of described file destination, after sending to described server, also comprises:
If what receive the transmission of described server uploads expiry notification, then stop uploading described file destination, and information is uploaded successfully in display.
4. method according to claim 2, is characterized in that, described method also comprises:
Determine in the process of the characteristic value of the full content of described file destination described, if described file destination is uploaded complete, then stop the process determining the characteristic value of the full content of described file destination.
5. a file uploading method, is characterized in that, described method comprises:
The characteristic value that receiving terminal sends; Wherein, described characteristic value is that described terminal is at the uploading instructions of receiving target file and after detecting the data volume of described file destination, described data volume is not exceeded to the situation of predetermined threshold value, the characteristic value of the full content of the described file destination determined, or, described data volume is exceeded to the situation of predetermined threshold value, the characteristic value of the content of the predeterminated position of the described file destination determined;
Whether inquiry is local stores the characteristic value and corresponding file that receive;
If this locality stores the characteristic value and corresponding file that receive, then recording described file is the file that described terminal is uploaded, and uploads success notification to described terminal transmission; Otherwise, send upload notifications to described terminal, receive the file destination that described terminal is uploaded, described characteristic value is carried out corresponding storage with described file destination.
6. method according to claim 5, is characterized in that, whether described inquiry is local stores the characteristic value and corresponding file that receive, comprising:
When the characteristic value received is the characteristic value of the full content of described file destination, then according to the characteristic value that the prestores corresponding relation with file, inquiry is local whether store described in the file of the characteristic value that receives and correspondence.
7. method according to claim 5, is characterized in that, whether described inquiry is local stores the characteristic value and corresponding file that receive, comprising:
When the characteristic value received is the characteristic value of the content of the predeterminated position of described file destination, according to the corresponding relation of the local content characteristic value prestored with full text characteristic value, the first full text characteristic value that the characteristic value received described in inquiry is corresponding;
If the first full text characteristic value that the characteristic value received described in inquiring is corresponding, then inquire about in the corresponding relation of characteristic value and the file prestored and whether comprise described first full text characteristic value, if, then judge the file of characteristic value and the correspondence received described in local storing, otherwise, the characteristic value received described in judgement this locality does not store simultaneously and corresponding file; Or,
If the first in full characteristic value that the characteristic value received described in not inquiring is corresponding, then according to the corresponding relation of the characteristic value prestored with file, inquiry is local whether store described in the file of the characteristic value that receives and correspondence.
8. method according to claim 5, is characterized in that, the file destination that the described terminal of described reception is uploaded, and described characteristic value is carried out corresponding storage with described file destination, comprising:
Receive the file destination that described terminal is uploaded;
In the process of the file destination uploaded in the described terminal of described reception, receive the characteristic value of the full content of the described file destination that described terminal sends;
If described in the characteristic value that the prestores file corresponding with the characteristic value of the full content comprising the described file destination received in the corresponding relation of file, the file then recording the characteristic value of the full content of described file destination corresponding is the file that described terminal is uploaded, send to described terminal and upload expiry notification, and by the characteristic value of the full content of the characteristic value of the content of the predeterminated position of described file destination and described file destination, corresponding be stored into described local content characteristic value with the corresponding relation of characteristic value in full;
If described in the characteristic value that the prestores file corresponding with the characteristic value of the full content not comprising the described file destination received in the corresponding relation of file, then after described file destination is uploaded, by the characteristic value of the full content of described file destination and described file destination corresponding be stored in the corresponding relation of described characteristic value and file, and by the characteristic value of the full content of the characteristic value of the content of the predeterminated position of described file destination and described file destination, corresponding be stored into described local content characteristic value with the corresponding relation of characteristic value in full.
9. a terminal, is characterized in that, described terminal comprises:
Detection module, for the uploading instructions of receiving target file, detects the data volume of described file destination;
Determination module, if do not exceed predetermined threshold value for described data volume, then determines the characteristic value of the full content of described file destination; If described data volume exceedes predetermined threshold value, then determine the characteristic value of the content of the predeterminated position of described file destination;
Sending module, for sending the characteristic value determined to server;
Upper transmission module, if for receiving the upload notifications that described server sends, then upload described file destination to described server;
Display module, if for receive described server send upload success notification, then display upload successfully information.
10. terminal according to claim 9, is characterized in that, described determination module, also for:
If described data volume exceedes predetermined threshold value, then described receive described server send upload notifications after, determine the characteristic value of the full content of described file destination, send to described server.
11. terminals according to claim 10, is characterized in that, described upper transmission module, also for:
The described characteristic value determining the full content of described file destination, after sending to described server, if receive described server send upload expiry notification, then stop upload described file destination, and display upload successfully information.
12. terminals according to claim 10, is characterized in that, described determination module, also for:
Determine in the process of the characteristic value of the full content of described file destination described, if described file destination is uploaded complete, then stop the process determining the characteristic value of the full content of described file destination.
13. 1 kinds of servers, is characterized in that, described server comprises:
Receiver module, for the characteristic value that receiving terminal sends; Wherein, described characteristic value is that described terminal is at the uploading instructions of receiving target file and after detecting the data volume of described file destination, described data volume is not exceeded to the situation of predetermined threshold value, the characteristic value of the full content of the described file destination determined, or, described data volume is exceeded to the situation of predetermined threshold value, the characteristic value of the content of the predeterminated position of the described file destination determined;
Enquiry module, for inquiring about the local file whether storing characteristic value and the correspondence received;
Sending module, if store the characteristic value and corresponding file that receive for this locality, then recording described file is the file that described terminal is uploaded, and uploads success notification to described terminal transmission; Otherwise, send upload notifications to described terminal, receive the file destination that described terminal is uploaded, described characteristic value is carried out corresponding storage with described file destination.
14. servers according to claim 13, is characterized in that, described enquiry module, for:
When the characteristic value received is the characteristic value of the full content of described file destination, then according to the characteristic value that the prestores corresponding relation with file, inquiry is local whether store described in the file of the characteristic value that receives and correspondence.
15. servers according to claim 13, is characterized in that, described enquiry module, for:
When the characteristic value received is the characteristic value of the content of the predeterminated position of described file destination, according to the corresponding relation of the local content characteristic value prestored with full text characteristic value, the first full text characteristic value that the characteristic value received described in inquiry is corresponding;
If the first full text characteristic value that the characteristic value received described in inquiring is corresponding, then inquire about in the corresponding relation of characteristic value and the file prestored and whether comprise described first full text characteristic value, if, then judge the file of characteristic value and the correspondence received described in local storing, otherwise, the characteristic value received described in judgement this locality does not store simultaneously and corresponding file; Or,
If the first in full characteristic value that the characteristic value received described in not inquiring is corresponding, then according to the corresponding relation of the characteristic value prestored with file, inquiry is local whether store described in the file of the characteristic value that receives and correspondence.
16. servers according to claim 13, is characterized in that, described sending module, for:
Receive the file destination that described terminal is uploaded;
In the process of the file destination uploaded in the described terminal of described reception, receive the characteristic value of the full content of the described file destination that described terminal sends;
If described in the characteristic value that the prestores file corresponding with the characteristic value of the full content comprising the described file destination received in the corresponding relation of file, the file then recording the characteristic value of the full content of described file destination corresponding is the file that described terminal is uploaded, send to described terminal and upload expiry notification, and by the characteristic value of the full content of the characteristic value of the content of the predeterminated position of described file destination and described file destination, corresponding be stored into described local content characteristic value with the corresponding relation of characteristic value in full;
If described in the characteristic value that the prestores file corresponding with the characteristic value of the full content not comprising the described file destination received in the corresponding relation of file, then after described file destination is uploaded, by the characteristic value of the full content of described file destination and described file destination corresponding be stored in the corresponding relation of described characteristic value and file, and by the characteristic value of the full content of the characteristic value of the content of the predeterminated position of described file destination and described file destination, corresponding be stored into described local content characteristic value with the corresponding relation of characteristic value in full.
17. 1 kinds of file uploading systems, is characterized in that, described system comprises terminal and server, wherein:
Described terminal, for the uploading instructions of receiving target file, detects the data volume of described file destination; If described data volume does not exceed predetermined threshold value, then determine the characteristic value of the full content of described file destination; If described data volume exceedes predetermined threshold value, then determine the characteristic value of the content of the predeterminated position of described file destination; The characteristic value determined is sent to described server; If receive the upload notifications that described server sends, then upload described file destination to described server; If what receive the transmission of described server uploads success notification, then information is uploaded successfully in display;
Described server, for receiving the characteristic value that described terminal sends; Whether inquiry is local stores the characteristic value and corresponding file that receive; If this locality stores the characteristic value and corresponding file that receive, then recording described file is the file that described terminal is uploaded, and uploads success notification to described terminal transmission; Otherwise, send upload notifications to described terminal, receive the file destination that described terminal is uploaded, described characteristic value is carried out corresponding storage with described file destination.
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 true CN105577712A (en) 2016-05-11
CN105577712B 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)

Cited By (4)

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

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090222557A1 (en) * 2008-02-29 2009-09-03 Raymond Harry Putra Rudy Analysis system, information processing apparatus, activity analysis method and program product
US20110182518A1 (en) * 2010-01-26 2011-07-28 Samsung Electronics Co., Ltd. Method and apparatus for searching for image
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

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090222557A1 (en) * 2008-02-29 2009-09-03 Raymond Harry Putra Rudy Analysis system, information processing apparatus, activity analysis method and program product
US20110182518A1 (en) * 2010-01-26 2011-07-28 Samsung Electronics Co., Ltd. Method and apparatus for searching for image
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

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302641A (en) * 2016-07-27 2017-01-04 北京小米移动软件有限公司 A kind of methods, devices and systems of upper transmitting file
CN106302641B (en) * 2016-07-27 2019-10-01 北京小米移动软件有限公司 A kind of methods, devices and systems of upper transmitting file
US10694001B2 (en) 2016-07-27 2020-06-23 Beijing Xiaomi Mobile Software Co., Ltd. Method, apparatus and system for uploading a file
US10383083B2 (en) 2016-09-18 2019-08-13 Beijing Xiaomi Mobile Software Co., Ltd. Wireless local area network based positioning method and device
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

Also Published As

Publication number Publication date
CN105577712B (en) 2019-06-11

Similar Documents

Publication Publication Date Title
CN104142862B (en) The overload protection method of server and device
CN104869468A (en) Method and apparatus for displaying screen information
CN103442330A (en) Position notification method and device
CN104135728B (en) Method for connecting network and device
CN104967896A (en) Method for displaying bulletscreen comment information, and apparatus thereof
CN103347003B (en) A kind of Voice over Internet method, Apparatus and system
CN104618222A (en) Method and device for matching expression image
CN105490919A (en) Message withdrawal method and device
CN105119806A (en) Message updating method and device
CN104519485A (en) Communication method between terminals, devices and system
CN105243638A (en) Image uploading method and apparatus
CN103179026B (en) Communication means in user interactive system, system and server and client side
CN103294515A (en) Method, device and system for acquiring application programs
CN104301315A (en) Method and device for limiting information access
CN104426963A (en) Terminal associating method and terminal
CN104142868A (en) Connection establishment method and device
CN104657203A (en) Task execution method, device and system
CN104618223A (en) Information recommendation management method, device and system
CN103177217B (en) A kind of file scanning method, system and client and server
CN105491135A (en) Data connection establishing method and device
CN104580177A (en) Resource supplying method, device and system
CN105530239A (en) Multimedia data obtaining method and device
CN105227598A (en) A kind of resource sharing method, device and system stored based on cloud
CN105577712A (en) File uploading method, file uploading device, and file uploading system
CN107317828B (en) File downloading method and device

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