WO2017124905A1 - 复合文档的上传方法、装置及系统 - Google Patents

复合文档的上传方法、装置及系统 Download PDF

Info

Publication number
WO2017124905A1
WO2017124905A1 PCT/CN2016/113255 CN2016113255W WO2017124905A1 WO 2017124905 A1 WO2017124905 A1 WO 2017124905A1 CN 2016113255 W CN2016113255 W CN 2016113255W WO 2017124905 A1 WO2017124905 A1 WO 2017124905A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
list
uploaded
index list
composite document
Prior art date
Application number
PCT/CN2016/113255
Other languages
English (en)
French (fr)
Inventor
陈民敬
Original Assignee
广州视睿电子科技有限公司
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 广州视睿电子科技有限公司 filed Critical 广州视睿电子科技有限公司
Publication of WO2017124905A1 publication Critical patent/WO2017124905A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • G06F16/134Distributed indices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a method, device and system for uploading a composite document.
  • Composite documents contain not only text but also graphics, spreadsheet data, sound, video images, and other information. It is a zip archive containing several files, consisting of content files and resource files.
  • the traditional way to upload a composite document to the cloud is to upload the entire composite document in one go, or to split the composite document into several file blocks and upload them in blocks. Uploading the entire document at once or uploading the document in chunks will cause excessive bandwidth due to excessively large uploaded documents. At the same time, due to repeated uploading of some documents, the uploading speed is too slow and the cloud resources are wasted.
  • the embodiment of the invention provides a method, a device and a system for uploading a composite document, which can improve the uploading speed of the composite document and reduce the occupation of the network bandwidth.
  • An aspect of the present invention provides a method for uploading a composite document, which specifically includes:
  • the delta list is a list of files that exist in the list of uploaded files and do not exist in the file index list stored on the server;
  • the method further includes:
  • the server sends an index list obtaining instruction to the server, so that the server obtains a second file index list of the compound document from the file index list stored by the server according to the index list obtaining instruction;
  • the index list The obtaining instruction includes an identification code of the composite document;
  • first file index list and the second file index list respectively include hash values of respective files listed therein; the hash values of the respective files are according to the identifier of the file and the Generated from the contents of the file;
  • Another aspect of the present invention further provides a method for uploading a composite document, which specifically includes:
  • the method further includes:
  • the index list obtaining instruction includes an identifier of the compound document
  • the client compares the second file index list with the first file index list stored by the composite file on the client, to obtain a And a list of uploaded files of the composite document; wherein the uploaded file list is a list of files existing in the first file index list and not in the second file index list.
  • the uploaded file list and the locally stored file index list respectively include hash values of respective files listed therein; the hash value of each file is based on the identification code of the file and the file Generated by the content;
  • the comparing the uploaded file list with the locally stored file index list to obtain an incremental file uploading list specifically including:
  • the delta list is a list of files that exist in the list of uploaded files and do not exist in the locally stored list of file indexes.
  • the method further includes:
  • an aspect of the embodiment of the present invention further provides a device for uploading a composite document, which specifically includes:
  • the uploading file list sending module is configured to send the upload file list of the compound document to the server, so that the server obtains the upload file increment by comparing the uploaded file list of the composite document with the file index list stored by the server. a list; wherein the upload file delta list is a list of files existing in the upload file list and not in a file index list stored by the server;
  • An upload file delta list receiving module configured to receive the upload file delta list fed back by the server
  • a file uploading module configured to upload a file in the incremental file list of the uploaded file.
  • the uploading device of the composite document further includes:
  • An instruction sending module configured to send an index list obtaining instruction to the server, so that the server obtains a second file index of the compound document from a file index list stored by the server according to the index list obtaining instruction a list; the index list obtaining instruction includes an identification code of the composite document;
  • a second file index list receiving module configured to receive the second file index list fed back by the server
  • An upload file list obtaining module configured to compare the second file index list with a first file index list stored locally by the composite document, to obtain an uploaded file list of the composite document; wherein the upload file list A list of files that exist in the first file index list and not in the second file index list.
  • first file index list and the second file index list respectively include hash values of respective files listed therein; the hash values of the respective files are according to the identifier of the file and the Generated from the contents of the file;
  • the uploading file list obtaining module is specifically configured to compare a hash value of each file in the second file index list with a hash value of each file in the first file index list to obtain the composite document.
  • a list of uploaded files is a list of files that exist in the first file index list and not in the second file index list.
  • Another aspect of the present invention further provides a device for uploading a composite document, which specifically includes:
  • An upload file list receiving module configured to receive a list of uploaded files of the compound document sent by the client
  • An upload file increment list obtaining module configured to compare the uploaded file list with a locally stored file index list to obtain an uploaded file delta list; wherein the upload file delta list is present in the upload file list a list of files that do not exist in the locally stored list of file indexes; and,
  • the uploading file incremental list sending module is configured to send the uploaded file incremental list to the client, so that the client uploads the file in the uploaded file incremental list.
  • the uploading device of the composite document further includes:
  • An instruction receiving module configured to receive an index list obtaining instruction sent by the client; the index list obtaining instruction includes an identifier of the composite document;
  • a second file index list obtaining module configured to acquire, according to the identifier of the composite document, a second file index list of the composite document from a locally stored file index list;
  • a second file index list feedback module configured to feed back the second file index list to the client, so that the client stores the second file index list and the composite document in the client
  • the first file index list is compared to obtain a list of uploaded files of the composite document; wherein the uploaded file list is a file that exists in the first file index list and does not exist in the second file index list. list of.
  • the uploaded file list and the locally stored file index list respectively include hash values of respective files listed therein; the hash value of each file is based on the identification code of the file and the file Generated by the content;
  • the upload file delta list obtaining module is specifically configured to compare a hash value of each file in the uploaded file list with a hash value of each file in the locally stored file index list to obtain the composite An upload file delta list of documents; the upload file delta list is a list of files that exist in the upload file list and do not exist in a locally stored file index list.
  • the uploading device of the composite document further includes:
  • a file receiving module configured to receive a file uploaded by the client
  • a second file index list update module configured to update the second file index list to the first file index list according to the uploaded file list.
  • the embodiment of the present invention further provides a composite document uploading system, including a client and a server:
  • the client is a uploading device of the composite document provided by the embodiment of the foregoing aspect, and is not described in detail herein;
  • the server is the uploading device of the composite document provided by the embodiment of the other aspect, and is not described in detail herein.
  • the method, device, and system for uploading a composite document provided by the embodiment of the present invention filter the upload file list of the composite document on the server, so that the client only needs to upload the file that does not exist in the server in the composite document, thereby greatly reducing the network.
  • the bandwidth is occupied, and the upload speed of the composite document is improved, and the second transmission is realized, and the repeated uploading of the same file is avoided, thereby greatly reducing the waste of the server resources.
  • the compound document is filtered on the file index list stored on the client, and the uploaded file generated after filtering is filtered.
  • the list is sent to the server for filtering, which improves the filtering efficiency of the server and further increases the upload speed of the composite document.
  • FIG. 1 is a schematic flow chart of a first embodiment of a method for uploading a composite document according to the present invention
  • FIG. 2 is a schematic flow chart of a second embodiment of a method for uploading a composite document according to the present invention
  • FIG. 3 is a schematic structural diagram of a first embodiment of a uploading apparatus for a composite document according to the present invention
  • FIG. 4 is a schematic structural diagram of a second embodiment of a uploading apparatus for a composite document according to the present invention.
  • FIG. 5 is a schematic structural diagram of an embodiment of a composite document uploading system provided by the present invention.
  • FIG. 1 is a schematic flowchart of a first embodiment of a method for uploading a composite document according to the present invention, including steps S11 to S13, as follows:
  • S11 Send a list of uploaded files of the composite document to the server, so that the server obtains an uploaded file delta list by comparing the uploaded file list of the composite document with the file index list stored by the server;
  • the upload file delta list is a list of files existing in the list of uploaded files and not present in the file index list stored on the server;
  • the uploading method of the composite document is performed by the client.
  • the composite document contains not only text but also graphics, spreadsheet data, sound, video images and other information. It is a zip archive containing several files, consisting of content files and resource files.
  • Each composite document corresponds to a file index list, and the index list includes information such as an identification code, a storage path, and a hash value of each file in the composite document.
  • the client saves a list of each compound document and its file index
  • the server saves the files in each compound document and the file index list corresponding to the compound documents.
  • the client updates its file index list according to the modified compound document, and uses the updated file index list as a list.
  • the uploaded file list of the composite document is uploaded to the server.
  • the server will list the uploaded file with all the files in the server.
  • the index list is compared, and the files already existing in the server are filtered to obtain a list of files that do not exist in the server, that is, an upload file increment list.
  • the server feeds back the uploaded file increment list to the client, and the client uploads the files corresponding to the identifiers of the files in the uploaded file delta list one by one.
  • the server receives the file uploaded by the client, and updates the file index list stored in the server according to the previously received file list, that is, the second file index list, and updates the second file index list to the first file. Index list. Since the client only uploads files that do not exist on the server in the composite document, the number of files that need to be uploaded in the composite document can be greatly reduced, thereby greatly reducing the occupation of network bandwidth, and improving the uploading speed of the composite document and reducing the server resources. Waste.
  • the method before sending the list of uploaded files of the composite document to the server, the method further includes:
  • the server sends an index list obtaining instruction to the server, so that the server obtains a second file index list of the compound document from the file index list stored by the server according to the index list obtaining instruction;
  • the index list The obtaining instruction includes an identification code of the composite document;
  • the client modifies the file of the compound document located in the client
  • the client updates its file index list according to the modified compound document, that is, the first file index list, and then sends the file to the server.
  • the index list of the identification code of the composite document acquires an instruction, so that the server finds the file index list stored in the server by the composite document, that is, the second file index list.
  • the server feeds back the second file index list to the client.
  • the client receives the second file index list, compares the first file index list stored in the client with the received second file index list, and filters the files that already exist in the second file index list. , thereby obtaining a list of files modified by the user and serving as a list of uploaded files of the composite document.
  • the list of files modified by the user is sent to the server as a list of uploaded files for comparison and filtering, thereby improving the filtering efficiency of the server, thereby further increasing the uploading speed of the composite document.
  • a composite document stored by the client includes content1.xml, video1.mp4, and image1.png files, and correspondingly, the first file index list of the composite document has files content1.xml, video1.mp4, and image1.png. Information such as identification code, storage path, and hash value.
  • the server stores the content1.xml, video1.mp4, and image1.png files in the composite document, and a second file index list stored by the composite document on the server, the second file index list having files content1.xml, video1 .mp4 and image1.png identification code, storage path, hash value and other information.
  • the user changes the file content1.xml in the composite document to content1'.xml on the client side, and after deleting the file image1.png, the file image2.png and the file image3.png are added.
  • the user repairs the files in the compound document
  • the client modifies the first file index list to a list of information such as identification codes, storage paths, hash values, and the like of the files content1'.xml, video1.mp4, image2.png, and image3.png.
  • the client uploads the modified composite document, it first sends a file index list obtaining instruction including the identification code of the composite document to the server. After receiving the instruction, the server finds the second file index list according to the identification code of the composite document therein, and feeds back to the client.
  • the client compares the first file index list with the second file index list, filters the video1.mp4 file already existing in the second file index list, and the user modified content1'.xml, image2.png, and image3.
  • the list of png files is used as a list of uploaded files for the composite document. Then, the client uploads the uploaded file list to the server, and the server compares the uploaded file list with all the file index lists located in the server, and filters the image3.png file already existing in the server, thereby A list of content1'.xml and image2.png files that do not exist in the server as a list of uploaded file increments.
  • the server feeds back the upload file increment list to the client, and the client uploads the corresponding content1'.xml and image2.png files according to the uploaded file delta list.
  • the server receives the content1'.xml and image2.png files uploaded by the client, and updates the second file index list to have content1'.xml, video.mp4, image2.png, and image3 according to the previously received upload file list.
  • a list of information such as png's identification code, storage path, and hash value.
  • first file index list and the second file index list respectively include hash values of respective files listed therein; the hash values of the respective files are according to the identifier of the file and the Generated from the contents of the file;
  • the first file index list and the second file index list respectively include information such as an identification code, a storage path, a hash value, and the like of each file listed therein.
  • the hash value of the file changes accordingly.
  • the client compares the hash value of the file in the first file index list with the hash value of the file in the second file index list to obtain the user in the composite document.
  • a list of modified files that is, a list of uploaded files.
  • FIG. 2 is a schematic flowchart of a second embodiment of a method for uploading a composite document according to the present invention, including steps S21 to S23, as follows:
  • the upload file delta list is a list of files that exist in the uploaded file list and do not exist in the locally stored file index list;
  • S23 Send the uploaded file delta list to the client, so that the client uploads the file in the upload file delta list.
  • the method for uploading the composite document provided by the embodiment of the present invention is performed by the server.
  • the client updates the file index list according to the modified compound document, and uses the updated file index list as the The list of uploaded files of the compound document is uploaded to the server.
  • the server compares the uploaded file list with all the file index lists located in the server, and filters the files that already exist in the server, thereby obtaining a list of files that do not exist in the server. That is, upload a file delta list and send the upload file delta list to the client.
  • the client uploads the file corresponding to the identifier of each file according to the incremental list of the uploaded file.
  • the client Since the client only uploads files that do not exist on the server in the composite document, the number of files that need to be uploaded in the composite document can be greatly reduced, thereby greatly reducing the occupation of network bandwidth, and improving the uploading speed of the composite document and reducing the server resources. Waste.
  • the method before the receiving the file list of the composite document sent by the client, the method further includes:
  • the index list obtaining instruction includes an identifier of the compound document
  • the client compares the second file index list with the first file index list stored by the composite file on the client, to obtain a And a list of uploaded files of the composite document; wherein the uploaded file list is a list of files existing in the first file index list and not in the second file index list.
  • the client modifies the file in the composite document located in the client
  • the client updates its file index list according to the modified compound document, that is, the first file index list, and then sends the file to the server.
  • An index list acquisition instruction having an identification code of the composite document.
  • the server receives the index list obtaining instruction sent by the client, and finds the file index list stored in the server by the composite document in the file index list of the server according to the identifier of the composite document therein, that is, the second file index list.
  • the second file index list is sent to the client.
  • the client receives the second file index list, compares the first file index list stored in the client with the received second file index list, and filters the files that already exist in the second file index list.
  • a list of modified files and a list of uploaded files for the composite document is sent to the server as a list of uploaded files for comparison and filtering, thereby improving the filtering efficiency of the server, thereby further increasing the uploading speed of the composite document.
  • the uploaded file list and the locally stored file index list respectively include hash values of respective files listed therein; the hash value of each file is based on the identification code of the file and the file Generated by the content;
  • the comparing the uploaded file list with the locally stored file index list to obtain an incremental file uploading list specifically including:
  • the delta list is a list of files that exist in the list of uploaded files and do not exist in the locally stored list of file indexes.
  • the upload file list and the file index list stored by the server respectively include information such as an identification code, a storage path, and a hash value of each file listed therein.
  • the hash value of the file changes accordingly.
  • the server compares the list of uploaded files with the hash value of the files in the file index list stored by all servers, so as to obtain a list of files that do not exist in the server in the composite document. , that is, upload a list of file increments.
  • the method further includes:
  • the client uploads the file corresponding to the identifier of each file according to the upload delta list.
  • the server receives the file uploaded by the client, and modifies the second file index list according to the previously received upload file list, and completes the update of the identifier of the file in the second file index list, the storage path of the file, and the hash value of the file. So that the second file index list is updated to the first file index list, and the uploading and saving of the client's compound document is completed.
  • the method for uploading a composite document provided by the embodiment of the present invention, by filtering the list of uploaded files of the composite document on the server, so that the client only needs to upload the file that does not exist in the server in the composite document, thereby greatly reducing the occupation of the network bandwidth. And improve the upload speed of the composite document, to achieve second transmission, while avoiding the repeated upload of the same file, greatly reducing the waste of server resources.
  • the composite document is filtered on the file index list stored by the client, and then the filtered file list generated by the filtering is sent to the server for filtering, thereby improving the filtering efficiency of the server and further improving the uploading speed of the composite document.
  • the present invention also provides a composite document uploading device and system, which can implement the composite in the above embodiment. All processes for uploading documents.
  • FIG. 3 is a schematic structural diagram of a first embodiment of a device for uploading a composite document according to the present invention, which specifically includes:
  • the uploading file list sending module 31 is configured to send the uploading file list of the composite document to the server, so that the server obtains the uploaded file by comparing the uploaded file list of the composite document with the file index list stored by the server. a list of the uploaded files; wherein the uploaded file delta list is a list of files that exist in the uploaded file list and are not present in the file index list stored by the server;
  • the upload file delta list receiving module 32 is configured to receive the upload file delta list fed back by the server.
  • the file uploading module 33 is configured to upload the file in the uploaded file delta list.
  • the uploading device of the composite document further includes:
  • An instruction sending module configured to send an index list obtaining instruction to the server, so that the server obtains a second file index of the compound document from a file index list stored by the server according to the index list obtaining instruction a list; the index list obtaining instruction includes an identification code of the composite document;
  • a second file index list receiving module configured to receive the second file index list fed back by the server
  • An upload file list obtaining module configured to compare the second file index list with a first file index list stored locally by the composite document, to obtain an uploaded file list of the composite document; wherein the upload file list A list of files that exist in the first file index list and not in the second file index list.
  • first file index list and the second file index list respectively include hash values of respective files listed therein; the hash values of the respective files are according to the identifier of the file and the Generated from the contents of the file;
  • the uploading file list obtaining module is specifically configured to compare a hash value of each file in the second file index list with a hash value of each file in the first file index list to obtain the composite document.
  • a list of uploaded files is a list of files that exist in the first file index list and not in the second file index list.
  • FIG. 4 is a schematic structural diagram of a second embodiment of a device for uploading a composite document according to the present invention, which specifically includes:
  • the upload file list receiving module 41 is configured to receive a list of uploaded files of the compound document sent by the client;
  • the upload file delta list obtaining module 42 is configured to compare the uploaded file list with a locally stored file index list to obtain an upload file delta list, where the upload file delta list exists in the upload file. a list of files in the list of file indexes that do not exist in the local store; and,
  • the upload file delta list sending module 43 is configured to send the upload file delta list to the client, so that the client uploads the file in the upload file delta list.
  • the uploading device of the composite document further includes:
  • An instruction receiving module configured to receive an index list obtaining instruction sent by the client; the index list obtaining instruction includes an identifier of the composite document;
  • a second file index list obtaining module configured to acquire, according to the identifier of the composite document, a second file index list of the composite document from a locally stored file index list;
  • a second file index list feedback module configured to feed back the second file index list to the client, so that the client stores the second file index list and the composite document in the client
  • the first file index list is compared to obtain a list of uploaded files of the composite document; wherein the uploaded file list is a file that exists in the first file index list and does not exist in the second file index list. list of.
  • the uploaded file list and the locally stored file index list respectively include hash values of respective files listed therein; the hash value of each file is based on the identification code of the file and the file Generated by the content;
  • the upload file delta list obtaining module is specifically configured to compare a hash value of each file in the uploaded file list with a hash value of each file in the locally stored file index list to obtain the composite An upload file delta list of documents; the upload file delta list is a list of files that exist in the upload file list and do not exist in a locally stored file index list.
  • the uploading device of the composite document further includes:
  • a file receiving module configured to receive a file uploaded by the client
  • a second file index list update module configured to update the second file index list to the first file index list according to the uploaded file list.
  • FIG. 5 is a schematic structural diagram of an embodiment of a composite document uploading system provided by the present invention, which specifically includes a client 51 and a server 52:
  • the client 51 is a uploading device of the composite document provided by the first embodiment, and is not described in detail herein;
  • the server 52 is a uploading device of the composite document provided by the second embodiment, and is not described in detail herein.
  • the uploading device and system for the composite document provided by the embodiment of the present invention filter the upload file list of the composite document on the server, so that the client only needs to upload the file that does not exist in the server in the composite document, thereby greatly reducing the network bandwidth. Occupy, and improve the upload speed of composite documents, achieve second transmission, while avoiding repeated uploads of the same file, greatly reducing the waste of server resources.
  • the composite document is filtered on the file index list stored by the client, and then the filtered file list generated by the filtering is sent to the server for filtering, thereby improving the filtering efficiency of the server and further improving the uploading speed of the composite document.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

一种复合文档的上传方法、装置及系统。所述复合文档的上传方法包括:向服务端发送复合文档的上传文件列表,使所述服务端通过对比所述复合文档的上传文件列表和所述服务端存储的文件索引列表而获得上传文件增量列表;其中,所述上传文件增量列表为存在于所述上传文件列表中而不存在于服务端存储的文件索引列表中的文件的列表(S11);接收所述服务端反馈的所述上传文件增量列表(S12);将所述上传文件增量列表中的文件进行上传(S13)。该方法能够提高复合文档的上传速度,且减少网络带宽的占用。

Description

复合文档的上传方法、装置及系统 技术领域
本发明涉及计算机技术领域,尤其涉及一种复合文档的上传方法、装置及系统。
背景技术
随着计算机科学和信息技术的发展,云端存储已经被越来越广泛地应用,而复合文档的云端存储是其中的重要组成部分。复合文档不仅包含文本而且包括图形、电子表格数据、声音、视频图像以及其它信息。它是一个zip压缩包,包含若干文件,由内容文件和资源文件组成。传统的将复合文档上传至云端的方法是将整个复合文档完整地一次性上传,或者是将复合文档分割成若干的文件块,分块上传。将整个文档一次性上传或者将文档分块上传都会因为上传的文档过多过大而造成占用过多带宽,同时由于一些文档被重复上传,导致上传速度过慢和云端资源的浪费。
发明内容
本发明实施例提出一种复合文档的上传方法、装置及系统,能够提高复合文档的上传速度,且减少网络带宽的占用。
本发明实施例的一个方面提供一种复合文档的上传方法,具体包括:
向服务端发送复合文档的上传文件列表,使所述服务端通过对比所述复合文档的上传文件列表和所述服务端存储的文件索引列表而获得上传文件增量列表;其中,所述上传文件增量列表为存在于所述上传文件列表中而不存在于服务端存储的文件索引列表中的文件的列表;
接收所述服务端反馈的所述上传文件增量列表;
将所述上传文件增量列表中的文件进行上传。
进一步地,在向服务端发送复合文档的上传文件列表之前,还包括:
向所述服务端发送索引列表获取指令,使所述服务端根据所述索引列表获取指令从所述服务端存储的文件索引列表中获取所述复合文档的第二文件索引列表;所述索引列表获取指令包括所述复合文档的识别码;
接收所述服务端反馈的所述第二文件索引列表;
将所述第二文件索引列表与所述复合文档在本地存储的第一文件索引列表进行对比,获得所述复合文档的上传文件列表;其中,所述上传文件列表为存在于所述第一文件索引列表 中而不存在于所述第二文件索引列表中的文件的列表。
进一步地,所述第一文件索引列表和所述第二文件索引列表分别包括其列出的各个文件的哈希值;所述各个文件的哈希值是根据所述文件的识别码和所述文件的内容而生成的;
所述将所述第二文件索引列表与所述复合文档在本地存储的第一文件索引列表进行对比,获得所述复合文档的上传文件列表,具体包括:
将所述第二文件索引列表中的各个文件的哈希值与所述第一文件索引列表中的各个文件的哈希值进行对比,获得所述复合文档的上传文件列表;所述上传文件列表为存在于所述第一文件索引列表中而不存在于所述第二文件索引列表中的文件的列表。
本发明实施例的另一个方面还提供了一种复合文档的上传方法,具体包括:
接收客户端发送的复合文档的上传文件列表;
将所述上传文件列表与本地存储的文件索引列表进行对比,获得上传文件增量列表;其中,所述上传文件增量列表为存在于所述上传文件列表中而不存在于本地存储的文件索引列表中的文件的列表;
将所述上传文件增量列表发送至所述客户端,使所述客户端将所述上传文件增量列表中的文件进行上传。
进一步地,在所述接收客户端发送的复合文档的上传文件列表之前,还包括:
接收所述客户端发送的索引列表获取指令;所述索引列表获取指令包括所述复合文档的识别码;
根据所述复合文档的识别码从本地存储的文件索引列表中获取所述复合文档的第二文件索引列表;
将所述第二文件索引列表反馈给所述客户端,使所述客户端将所述第二文件索引列表与所述复合文档在所述客户端存储的第一文件索引列表进行对比,获得所述复合文档的上传文件列表;其中,所述上传文件列表为存在于所述第一文件索引列表中而不存在于所述第二文件索引列表中的文件的列表。
进一步地,所述上传文件列表和所述本地存储的文件索引列表分别包括其列出的各个文件的哈希值;所述各个文件的哈希值是根据所述文件的识别码和所述文件的内容而生成的;
所述将所述上传文件列表与本地存储的文件索引列表进行对比,获得上传文件增量列表,具体包括:
将所述上传文件列表中的各个文件的哈希值与所述本地存储的文件索引列表中的各个文件的哈希值进行对比,获得所述复合文档的上传文件增量列表;所述上传文件增量列表为存在于所述上传文件列表中而不存在于本地存储的文件索引列表中的文件的列表。
再进一步地,在所述将所述上传增量文件列表发送至所述客户端,使所述客户端将所述上传文件增量列表中的文件进行上传之后,还包括:
接收所述客户端上传的文件;
根据所述上传文件列表将所述第二文件索引列表更新为所述第一文件索引列表。
相应地,本发明实施例的一个方面还提供了一种复合文档的上传装置,具体包括:
上传文件列表发送模块,用于向服务端发送复合文档的上传文件列表,使所述服务端通过对比所述复合文档的上传文件列表和所述服务端存储的文件索引列表而获得上传文件增量列表;其中,所述上传文件增量列表为存在于所述上传文件列表中而不存在于服务端存储的文件索引列表中的文件的列表;
上传文件增量列表接收模块,用于接收所述服务端反馈的所述上传文件增量列表;以及,
文件上传模块,用于将所述上传文件增量列表中的文件进行上传。
进一步地,所述复合文档的上传装置还包括:
指令发送模块,用于向所述服务端发送索引列表获取指令,使所述服务端根据所述索引列表获取指令从所述服务端存储的文件索引列表中获取所述复合文档的第二文件索引列表;所述索引列表获取指令包括所述复合文档的识别码;
第二文件索引列表接收模块,用于接收所述服务端反馈的所述第二文件索引列表;以及,
上传文件列表获得模块,用于将所述第二文件索引列表与所述复合文档在本地存储的第一文件索引列表进行对比,获得所述复合文档的上传文件列表;其中,所述上传文件列表为存在于所述第一文件索引列表中而不存在于所述第二文件索引列表中的文件的列表。
进一步地,所述第一文件索引列表和所述第二文件索引列表分别包括其列出的各个文件的哈希值;所述各个文件的哈希值是根据所述文件的识别码和所述文件的内容而生成的;
所述上传文件列表获得模块具体用于将所述第二文件索引列表中的各个文件的哈希值与所述第一文件索引列表中的各个文件的哈希值进行对比,获得所述复合文档的上传文件列表;所述上传文件列表为存在于所述第一文件索引列表中而不存在于所述第二文件索引列表中的文件的列表。
本发明实施例的另一个方面还提供了一种复合文档的上传装置,具体包括:
上传文件列表接收模块,用于接收客户端发送的复合文档的上传文件列表;
上传文件增量列表获得模块,用于将所述上传文件列表与本地存储的文件索引列表进行对比,获得上传文件增量列表;其中,所述上传文件增量列表为存在于所述上传文件列表中而不存在于本地存储的文件索引列表中的文件的列表;以及,
上传文件增量列表发送模块,用于将所述上传文件增量列表发送至所述客户端,使所述客户端将所述上传文件增量列表中的文件进行上传。
进一步地,所述复合文档的上传装置还包括:
指令接收模块,用于接收所述客户端发送的索引列表获取指令;所述索引列表获取指令包括所述复合文档的识别码;
第二文件索引列表获取模块,根据所述复合文档的识别码从本地存储的文件索引列表中获取所述复合文档的第二文件索引列表;以及,
第二文件索引列表反馈模块,用于将所述第二文件索引列表反馈给所述客户端,使所述客户端将所述第二文件索引列表与所述复合文档在所述客户端存储的第一文件索引列表进行对比,获得所述复合文档的上传文件列表;其中,所述上传文件列表为存在于所述第一文件索引列表中而不存在于所述第二文件索引列表中的文件的列表。
进一步地,所述上传文件列表和所述本地存储的文件索引列表分别包括其列出的各个文件的哈希值;所述各个文件的哈希值是根据所述文件的识别码和所述文件的内容而生成的;
所述上传文件增量列表获得模块具体用于将所述上传文件列表中的各个文件的哈希值与所述本地存储的文件索引列表中的各个文件的哈希值进行对比,获得所述复合文档的上传文件增量列表;所述上传文件增量列表为存在于所述上传文件列表中而不存在于本地存储的文件索引列表中的文件的列表。
再进一步地,所述复合文档的上传装置还包括:
文件接收模块,用于接收所述客户端上传的文件;以及,
第二文件索引列表更新模块,用于根据所述上传文件列表将所述第二文件索引列表更新为所述第一文件索引列表。
相应地,本发明实施例还提供一种复合文档的上传系统,包括客户端和服务端:
所述客户端是上述一个方面的实施例所提供的复合文档的上传装置,在此不再详细描述;
所述服务端是上述另一个方面的实施例所提供的复合文档的上传装置,在此不再详细描述。
实施本发明实施例,具有如下有益效果:
本发明实施例提供的复合文档的上传方法、装置及系统,通过在服务端对复合文档的上传文件列表进行过滤,使客户端仅需要上传复合文档中不存在于服务端的文件,从而大大减少网络带宽的占用,且提高复合文档的上传速度,实现秒传,同时避免了相同文件的重复上传,大幅减少服务端资源的浪费。
另外,将复合文档在客户端存储的文件索引列表进行过滤,再将过滤后产生的上传文件 列表发送给服务端进行过滤,提高服务端的过滤效率,进一步提高复合文档的上传速度。
附图说明
图1是本发明提供的复合文档的上传方法的第一实施例的流程示意图;
图2是本发明提供的复合文档的上传方法的第二实施例的流程示意图;
图3是本发明提供的复合文档的上传装置的第一实施例的结构示意图;
图4是本发明提供的复合文档的上传装置的第二实施例的结构示意图;
图5是本发明提供的复合文档的上传系统的一个实施例的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
参见图1,是本发明提供的复合文档的上传方法的第一实施例的流程示意图,包括步骤S11至S13,具体如下:
S11:向服务端发送复合文档的上传文件列表,使所述服务端通过对比所述复合文档的上传文件列表和所述服务端存储的文件索引列表而获得上传文件增量列表;其中,所述上传文件增量列表为存在于所述上传文件列表中而不存在于服务端存储的文件索引列表中的文件的列表;
S 12:接收所述服务端反馈的所述上传文件增量列表;
S13:将所述上传文件增量列表中的文件进行上传。
需要说明的是,本发明实施例提供的复合文档的上传方法由客户端执行。其中,复合文档不仅包含文本而且包括图形、电子表格数据、声音、视频图像以及其它信息。它是一个zip压缩包,包含若干文件,由内容文件和资源文件组成。每个复合文档对应一个文件索引列表,该索引列表中包含该复合文档中各个文件的标识码、存储路径、哈希值等信息。客户端保存有各个复合文档及其文件索引列表,服务端保存有各个复合文档中的文件和这些复合文档所对应的文件索引列表。
在一个优选地实施方式中,用户在客户端对位于客户端中的复合文档中的文件进行修改后,客户端根据修改后的复合文档更新其文件索引列表,并将更新后的文件索引列表作为该复合文档的上传文件列表上传至服务端。服务端将该上传文件列表与位于服务端中的所有文 件索引列表进行对比,过滤其中已经存在于服务端中的文件,从而获得服务端中不存在的文件的列表,即上传文件增量列表。服务端将该上传文件增量列表反馈给客户端,客户端将该上传文件增量列表中的各个文件的识别码所对应的文件一一上传。服务端接收客户端上传的文件,并根据此前接收到的上传文件列表更新该复合文档在服务端中存储的文件索引列表,即第二文件索引列表,将第二文件索引列表更新为第一文件索引列表。由于客户端仅上传该复合文档中不存在于服务端的文件,因此可以大大减少复合文档中需要上传的文件的数量,从而大大减少网络带宽的占用,同时提高复合文档的上传速度和减少服务端资源的浪费。
在另一个优选地实施方式中,在向服务端发送复合文档的上传文件列表之前,还包括:
向所述服务端发送索引列表获取指令,使所述服务端根据所述索引列表获取指令从所述服务端存储的文件索引列表中获取所述复合文档的第二文件索引列表;所述索引列表获取指令包括所述复合文档的识别码;
接收所述服务端反馈的所述第二文件索引列表;
将所述第二文件索引列表与所述复合文档在本地存储的第一文件索引列表进行对比,获得所述复合文档的上传文件列表;其中,所述上传文件列表为存在于所述第一文件索引列表中而不存在于所述第二文件索引列表中的文件的列表。
需要说明的是,用户在客户端对位于客户端中的复合文档的文件进行修改后,客户端根据修改后的复合文档更新其文件索引列表,即第一文件索引列表,再向服务端发送具有该复合文档的识别码的索引列表获取指令,以使服务端查找到该复合文档在服务端中存储的文件索引列表,即第二文件索引列表。服务端在查找到第二文件索引列表后,将该第二文件索引列表反馈给客户端。客户端接收该第二文件索引列表,并将该复合文档在客户端存储的第一文件索引列表与接收到的第二文件索引列表进行对比,过滤其中已经存在于第二文件索引列表中的文件,从而获得用户修改的文件的列表,并作为该复合文档的上传文件列表。将用户修改的文件的列表作为上传文件列表发送给服务端进行对比过滤,提高服务端的过滤效率,从而进一步提高复合文档的上传速度。
例如,客户端存储的一个复合文档包含有content1.xml、video1.mp4和image1.png文件,相应的,该复合文档的第一文件索引列表具有文件content1.xml、video1.mp4和image1.png的标识码、存储路径、哈希值等信息。服务端存储有该复合文档中的content1.xml、video1.mp4和image1.png文件,以及该复合文档在服务端存储的第二文件索引列表,该第二文件索引列表具有文件content1.xml、video1.mp4和image1.png的标识码、存储路径、哈希值等信息。用户在客户端将该复合文档中的文件content1.xml修改为content1’.xml,并在删除了文件image1.png后,增加文件image2.png和文件image3.png。用户对该复合文档中的文件进行修 改后,客户端将第一文件索引列表修改为具有文件content1’.xml、video1.mp4、image2.png和image3.png的标识码、存储路径、哈希值等信息的列表。在客户端将修改后的复合文档进行上传时,先向服务端发送包含有该复合文档的识别码的文件索引列表获取指令。服务端接收该指令后,根据其中的复合文档的识别码查找到第二文件索引列表,并反馈给客户端。客户端将第一文件索引列表与第二文件索引列表进行对比,过滤其中已经存在于第二文件索引列表中的video1.mp4文件,并将用户修改的content1’.xml、image2.png和image3.png文件的列表作为该复合文档的上传文件列表。随后,客户端将该上传文件列表上传至服务端,服务端将该上传文件列表与位于服务端中的所有文件索引列表进行对比,过滤其中已经存在于服务端中的image3.png文件,从而将服务端中不存在的content1’.xml和image2.png文件的列表作为上传文件增量列表。服务端将该上传文件增量列表反馈给客户端,客户端根据该上传文件增量列表上传相应的content1’.xml和image2.png文件。服务端接收客户端上传的content1’.xml和image2.png文件,并根据此前接收到的上传文件列表将第二文件索引列表更新为具有content1’.xml、video.mp4、image2.png和image3.png的标识码、存储路径、哈希值等信息的列表。
进一步地,所述第一文件索引列表和所述第二文件索引列表分别包括其列出的各个文件的哈希值;所述各个文件的哈希值是根据所述文件的识别码和所述文件的内容而生成的;
所述将所述第二文件索引列表与所述复合文档在本地存储的第一文件索引列表进行对比,获得所述复合文档的上传文件列表,具体包括:
将所述第二文件索引列表中的各个文件的哈希值与所述第一文件索引列表中的各个文件的哈希值进行对比,获得所述复合文档的上传文件列表;所述上传文件列表为存在于所述第一文件索引列表中而不存在于所述第二文件索引列表中的文件的列表。
需要说明的是,第一文件索引列表和第二文件索引列表中分别包含其列出的各个文件的识别码、存储路径、哈希值等信息。用户在对复合文档中的某个文件的内容进行修改后,该文件的哈希值也会发生相应的改变。客户端接收服务端反馈的第二文件索引列表后,将第一文件索引列表中的文件的哈希值与第二文件索引列表中的文件的哈希值进行对比,即可获得复合文档中用户修改的文件的列表,即上传文件列表。
参见图2,是本发明提供的复合文档的上传方法的第二实施例的流程示意图,包括步骤S21至S23,具体如下:
S21:接收客户端发送的复合文档的上传文件列表;
S22:将所述上传文件列表与本地存储的文件索引列表进行对比,获得上传文件增量列表; 其中,所述上传文件增量列表为存在于所述上传文件列表中而不存在于本地存储的文件索引列表中的文件的列表;
S23:将所述上传文件增量列表发送至所述客户端,使所述客户端将所述上传文件增量列表中的文件进行上传。
需要说明的是,本发明实施例提供的复合文档的上传方法由服务端执行。
在一个优选地实施方式中,用户在客户端对位于客户端中的复合文档的文件进行修改后,客户端根据修改后的复合文档更新其文件索引列表,并将更新后的文件索引列表作为该复合文档的上传文件列表上传至服务端。服务端接收该上传文件列表后,将该上传文件列表与位于服务端中的所有文件索引列表进行对比,过滤其中已经存在于服务端中的文件,从而获得服务端中不存在的文件的列表,即上传文件增量列表,并将该上传文件增量列表发送至客户端。客户端接收该上传文件增量列表后,根据该上传文件增量列表一一上传其中各个文件的识别码所对应的文件。由于客户端仅上传该复合文档中不存在于服务端的文件,因此可以大大减少复合文档中需要上传的文件的数量,从而大大减少网络带宽的占用,同时提高复合文档的上传速度和减少服务端资源的浪费。
在另一个优选地实施方式中,在所述接收客户端发送的复合文档的上传文件列表之前,还包括:
接收所述客户端发送的索引列表获取指令;所述索引列表获取指令包括所述复合文档的识别码;
根据所述复合文档的识别码从本地存储的文件索引列表中获取所述复合文档的第二文件索引列表;
将所述第二文件索引列表反馈给所述客户端,使所述客户端将所述第二文件索引列表与所述复合文档在所述客户端存储的第一文件索引列表进行对比,获得所述复合文档的上传文件列表;其中,所述上传文件列表为存在于所述第一文件索引列表中而不存在于所述第二文件索引列表中的文件的列表。
需要说明的是,用户在客户端对位于客户端中的复合文档中的文件进行修改后,客户端根据修改后的复合文档更新其文件索引列表,即第一文件索引列表,再向服务端发送具有该复合文档的识别码的索引列表获取指令。服务端接收客户端发送的索引列表获取指令,并根据其中的复合文档的识别码在服务端的所有文件索引列表中查找到该复合文档在服务端中存储的文件索引列表,即第二文件索引列表后,将该第二文件索引列表发送至客户端。客户端接收该第二文件索引列表,并将该复合文档在客户端存储的第一文件索引列表与接收到的第二文件索引列表进行对比,过滤其中已经存在于第二文件索引列表中的文件,从而获得用户 修改的文件的列表,并作为该复合文档的上传文件列表。将用户修改的文件的列表作为上传文件列表发送给服务端进行对比过滤,提高服务端的过滤效率,从而进一步提高复合文档的上传速度。
进一步地,所述上传文件列表和所述本地存储的文件索引列表分别包括其列出的各个文件的哈希值;所述各个文件的哈希值是根据所述文件的识别码和所述文件的内容而生成的;
所述将所述上传文件列表与本地存储的文件索引列表进行对比,获得上传文件增量列表,具体包括:
将所述上传文件列表中的各个文件的哈希值与所述本地存储的文件索引列表中的各个文件的哈希值进行对比,获得所述复合文档的上传文件增量列表;所述上传文件增量列表为存在于所述上传文件列表中而不存在于本地存储的文件索引列表中的文件的列表。
需要说明的是,上传文件列表和服务端存储的文件索引列表中分别包含其列出的各个文件的识别码、存储路径、哈希值等信息。用户在对复合文档中的某个文件的内容进行修改后,该文件的哈希值也会发生相应的改变。服务端接收客户端发送的上传文件列表后,将该上传文件列表与所有服务端存储的文件索引列表中的文件的哈希值进行对比,即可获得复合文档中不存在于服务端的文件的列表,即上传文件增量列表。
再进一步地,在所述将所述上传增量文件列表发送至所述客户端,使所述客户端将所述上传文件增量列表中的文件进行上传之后,还包括:
接收所述客户端上传的文件;
根据所述上传文件列表将所述第二文件索引列表更新为所述第一文件索引列表。
需要说明的是,服务端将上传增量列表发送至客户端后,客户端根据该上传增量列表一一上传其中各个文件的识别码所对应的文件。服务端接收客户端上传的文件,并根据此前接收的上传文件列表修改第二文件索引列表,完成第二文件索引列表中文件的识别码、文件的存储路径和文件的哈希值等信息的更新,从而使第二文件索引列表更新为第一文件索引列表,完成客户端的复合文档的上传和保存。
本发明实施例提供的复合文档的上传方法,通过在服务端对复合文档的上传文件列表进行过滤,使客户端仅需要上传复合文档中不存在于服务端的文件,从而大大减少网络带宽的占用,且提高复合文档的上传速度,实现秒传,同时避免了相同文件的重复上传,大幅减少服务端资源的浪费。另外,将复合文档在客户端存储的文件索引列表进行过滤,再将过滤后产生的上传文件列表发送给服务端进行过滤,提高服务端的过滤效率,进一步提高复合文档的上传速度。
相应地,本发明还提供一种复合文档的上传装置及系统,能够实现上述实施例中的复合 文档的上传方法的所有流程。
参见图3,是本发明提供的复合文档的上传装置的第一实施例的结构示意图,具体包括:
上传文件列表发送模块31,用于向服务端发送复合文档的上传文件列表,使所述服务端通过对比所述复合文档的上传文件列表和所述服务端存储的文件索引列表而获得上传文件增量列表;其中,所述上传文件增量列表为存在于所述上传文件列表中而不存在于服务端存储的文件索引列表中的文件的列表;
上传文件增量列表接收模块32,用于接收所述服务端反馈的所述上传文件增量列表;以及,
文件上传模块33,用于将所述上传文件增量列表中的文件进行上传。
进一步地,所述复合文档的上传装置还包括:
指令发送模块,用于向所述服务端发送索引列表获取指令,使所述服务端根据所述索引列表获取指令从所述服务端存储的文件索引列表中获取所述复合文档的第二文件索引列表;所述索引列表获取指令包括所述复合文档的识别码;
第二文件索引列表接收模块,用于接收所述服务端反馈的所述第二文件索引列表;以及,
上传文件列表获得模块,用于将所述第二文件索引列表与所述复合文档在本地存储的第一文件索引列表进行对比,获得所述复合文档的上传文件列表;其中,所述上传文件列表为存在于所述第一文件索引列表中而不存在于所述第二文件索引列表中的文件的列表。
进一步地,所述第一文件索引列表和所述第二文件索引列表分别包括其列出的各个文件的哈希值;所述各个文件的哈希值是根据所述文件的识别码和所述文件的内容而生成的;
所述上传文件列表获得模块具体用于将所述第二文件索引列表中的各个文件的哈希值与所述第一文件索引列表中的各个文件的哈希值进行对比,获得所述复合文档的上传文件列表;所述上传文件列表为存在于所述第一文件索引列表中而不存在于所述第二文件索引列表中的文件的列表。
参见图4,是本发明提供的复合文档的上传装置的第二实施例的结构示意图,具体包括:
上传文件列表接收模块41,用于接收客户端发送的复合文档的上传文件列表;
上传文件增量列表获得模块42,用于将所述上传文件列表与本地存储的文件索引列表进行对比,获得上传文件增量列表;其中,所述上传文件增量列表为存在于所述上传文件列表中而不存在于本地存储的文件索引列表中的文件的列表;以及,
上传文件增量列表发送模块43,用于将所述上传文件增量列表发送至所述客户端,使所述客户端将所述上传文件增量列表中的文件进行上传。
进一步地,所述复合文档的上传装置还包括:
指令接收模块,用于接收所述客户端发送的索引列表获取指令;所述索引列表获取指令包括所述复合文档的识别码;
第二文件索引列表获取模块,根据所述复合文档的识别码从本地存储的文件索引列表中获取所述复合文档的第二文件索引列表;以及,
第二文件索引列表反馈模块,用于将所述第二文件索引列表反馈给所述客户端,使所述客户端将所述第二文件索引列表与所述复合文档在所述客户端存储的第一文件索引列表进行对比,获得所述复合文档的上传文件列表;其中,所述上传文件列表为存在于所述第一文件索引列表中而不存在于所述第二文件索引列表中的文件的列表。
进一步地,所述上传文件列表和所述本地存储的文件索引列表分别包括其列出的各个文件的哈希值;所述各个文件的哈希值是根据所述文件的识别码和所述文件的内容而生成的;
所述上传文件增量列表获得模块具体用于将所述上传文件列表中的各个文件的哈希值与所述本地存储的文件索引列表中的各个文件的哈希值进行对比,获得所述复合文档的上传文件增量列表;所述上传文件增量列表为存在于所述上传文件列表中而不存在于本地存储的文件索引列表中的文件的列表。
再进一步地,所述复合文档的上传装置还包括:
文件接收模块,用于接收所述客户端上传的文件;以及,
第二文件索引列表更新模块,用于根据所述上传文件列表将所述第二文件索引列表更新为所述第一文件索引列表。
参见图5,是本发明提供的复合文档的上传系统的一个实施例的结构示意图,具体包括客户端51和服务端52:
所述客户端51是上述第一个实施例所提供的复合文档的上传装置,在此不再详细描述;
所述服务端52是上述第二个实施例所提供的复合文档的上传装置,在此不再详细描述。
本发明实施例提供的复合文档的上传装置及系统,通过在服务端对复合文档的上传文件列表进行过滤,使客户端仅需要上传复合文档中不存在于服务端的文件,从而大大减少网络带宽的占用,且提高复合文档的上传速度,实现秒传,同时避免了相同文件的重复上传,大幅减少服务端资源的浪费。另外,将复合文档在客户端存储的文件索引列表进行过滤,再将过滤后产生的上传文件列表发送给服务端进行过滤,提高服务端的过滤效率,进一步提高复合文档的上传速度。
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。

Claims (15)

  1. 一种复合文档的上传方法,其特征在于,包括:
    向服务端发送复合文档的上传文件列表,使所述服务端通过对比所述复合文档的上传文件列表和所述服务端存储的文件索引列表获得上传文件增量列表;其中,所述上传文件增量列表为存在于所述上传文件列表中而不存在于服务端存储的文件索引列表中的文件的列表;
    接收所述服务端反馈的所述上传文件增量列表;
    将所述上传文件增量列表中的文件进行上传。
  2. 如权利要求1所述的复合文档的上传方法,其特征在于,在向服务端发送复合文档的上传文件列表之前,还包括:
    向所述服务端发送索引列表获取指令,使所述服务端根据所述索引列表获取指令从所述服务端存储的文件索引列表中获取所述复合文档的第二文件索引列表;所述索引列表获取指令包括所述复合文档的识别码;
    接收所述服务端反馈的所述第二文件索引列表;
    将所述第二文件索引列表与所述复合文档在本地存储的第一文件索引列表进行对比,获得所述复合文档的上传文件列表;其中,所述上传文件列表为存在于所述第一文件索引列表中而不存在于所述第二文件索引列表中的文件的列表。
  3. 如权利要求2所述的复合文档的上传方法,其特征在于,所述第一文件索引列表和所述第二文件索引列表分别包括其列出的各个文件的哈希值;所述各个文件的哈希值是根据所述文件的识别码和所述文件的内容而生成的;
    所述将所述第二文件索引列表与所述复合文档在本地存储的第一文件索引列表进行对比,获得所述复合文档的上传文件列表,具体包括:
    将所述第二文件索引列表中的各个文件的哈希值与所述第一文件索引列表中的各个文件的哈希值进行对比,获得所述复合文档的上传文件列表;所述上传文件列表为存在于所述第一文件索引列表中而不存在于所述第二文件索引列表中的文件的列表。
  4. 一种复合文档的上传方法,其特征在于,包括:
    接收客户端发送的复合文档的上传文件列表;
    将所述上传文件列表与本地存储的文件索引列表进行对比,获得上传文件增量列表;其中,所述上传文件增量列表为存在于所述上传文件列表中而不存在于本地存储的文件索引列 表中的文件的列表;
    将所述上传文件增量列表发送至所述客户端,使所述客户端将所述上传文件增量列表中的文件进行上传。
  5. 如权利要求4所述的复合文档的上传方法,其特征在于,在所述接收客户端发送的复合文档的上传文件列表之前,还包括:
    接收所述客户端发送的索引列表获取指令;所述索引列表获取指令包括所述复合文档的识别码;
    根据所述复合文档的识别码从本地存储的文件索引列表中获取所述复合文档的第二文件索引列表;
    将所述第二文件索引列表反馈给所述客户端,使所述客户端将所述第二文件索引列表与所述复合文档在所述客户端存储的第一文件索引列表进行对比,获得所述复合文档的上传文件列表;其中,所述上传文件列表为存在于所述第一文件索引列表中而不存在于所述第二文件索引列表中的文件的列表。
  6. 如权利要求4或5所述的复合文档的上传方法,其特征在于,所述上传文件列表和所述本地存储的文件索引列表分别包括其列出的各个文件的哈希值;所述各个文件的哈希值是根据所述文件的识别码和所述文件的内容而生成的;
    所述将所述上传文件列表与本地存储的文件索引列表进行对比,获得上传文件增量列表,具体包括:
    将所述上传文件列表中的各个文件的哈希值与所述本地存储的文件索引列表中的各个文件的哈希值进行对比,获得所述复合文档的上传文件增量列表;所述上传文件增量列表为存在于所述上传文件列表中而不存在于本地存储的文件索引列表中的文件的列表。
  7. 如权利要求5所述的复合文档的上传方法,其特征在于,在所述将所述上传增量文件列表发送至所述客户端,使所述客户端将所述上传文件增量列表中的文件进行上传之后,还包括:
    接收所述客户端上传的文件;
    根据所述上传文件列表将所述第二文件索引列表更新为所述第一文件索引列表。
  8. 一种复合文档的上传装置,其特征在于,包括:
    上传文件列表发送模块,用于向服务端发送复合文档的上传文件列表,使所述服务端通过对比所述复合文档的上传文件列表和所述服务端存储的文件索引列表而获得上传文件增量列表;其中,所述上传文件增量列表为存在于所述上传文件列表中而不存在于服务端存储的文件索引列表中的文件的列表;
    上传文件增量列表接收模块,用于接收所述服务端反馈的所述上传文件增量列表;以及,
    文件上传模块,用于将所述上传文件增量列表中的文件进行上传。
  9. 如权利要求8所述的复合文档的上传装置,其特征在于,所述复合文档的上传装置还包括:
    指令发送模块,用于向所述服务端发送索引列表获取指令,使所述服务端根据所述索引列表获取指令从所述服务端存储的文件索引列表中获取所述复合文档的第二文件索引列表;所述索引列表获取指令包括所述复合文档的识别码;
    第二文件索引列表接收模块,用于接收所述服务端反馈的所述第二文件索引列表;以及,
    上传文件列表获得模块,用于将所述第二文件索引列表与所述复合文档在本地存储的第一文件索引列表进行对比,获得所述复合文档的上传文件列表;其中,所述上传文件列表为存在于所述第一文件索引列表中而不存在于所述第二文件索引列表中的文件的列表。
  10. 如权利要求9所述的复合文档的上传装置,其特征在于,所述第一文件索引列表和所述第二文件索引列表分别包括其列出的各个文件的哈希值;所述各个文件的哈希值是根据所述文件的识别码和所述文件的内容而生成的;
    所述上传文件列表获得模块具体用于将所述第二文件索引列表中的各个文件的哈希值与所述第一文件索引列表中的各个文件的哈希值进行对比,获得所述复合文档的上传文件列表;所述上传文件列表为存在于所述第一文件索引列表中而不存在于所述第二文件索引列表中的文件的列表。
  11. 一种复合文档的上传装置,其特征在于,包括:
    上传文件列表接收模块,用于接收客户端发送的复合文档的上传文件列表;
    上传文件增量列表获得模块,用于将所述上传文件列表与本地存储的文件索引列表进行对比,获得上传文件增量列表;其中,所述上传文件增量列表为存在于所述上传文件列表中而不存在于本地存储的文件索引列表中的文件的列表;以及,
    上传文件增量列表发送模块,用于将所述上传文件增量列表发送至所述客户端,使所述 客户端将所述上传文件增量列表中的文件进行上传。
  12. 如权利要求11所述的复合文档的上传装置,其特征在于,所述复合文档的上传装置还包括:
    指令接收模块,用于接收所述客户端发送的索引列表获取指令;所述索引列表获取指令包括所述复合文档的识别码;
    第二文件索引列表获取模块,根据所述复合文档的识别码从本地存储的文件索引列表中获取所述复合文档的第二文件索引列表;以及,
    第二文件索引列表反馈模块,用于将所述第二文件索引列表反馈给所述客户端,使所述客户端将所述第二文件索引列表与所述复合文档在所述客户端存储的第一文件索引列表进行对比,获得所述复合文档的上传文件列表;其中,所述上传文件列表为存在于所述第一文件索引列表中而不存在于所述第二文件索引列表中的文件的列表。
  13. 如权利要求11或12所述的复合文档的上传装置,其特征在于,所述上传文件列表和所述本地存储的文件索引列表分别包括其列出的各个文件的哈希值;所述各个文件的哈希值是根据所述文件的识别码和所述文件的内容而生成的;
    所述上传文件增量列表获得模块具体用于将所述上传文件列表中的各个文件的哈希值与所述本地存储的文件索引列表中的各个文件的哈希值进行对比,获得所述复合文档的上传文件增量列表;所述上传文件增量列表为存在于所述上传文件列表中而不存在于本地存储的文件索引列表中的文件的列表。
  14. 如权利要求12所述的复合文档的上传装置,其特征在于,所述复合文档的上传装置还包括:
    文件接收模块,用于接收所述客户端上传的文件;以及,
    第二文件索引列表更新模块,用于根据所述上传文件列表将所述第二文件索引列表更新为所述第一文件索引列表。
  15. 一种复合文档的上传系统,其特征在于,包括客户端和服务端:
    所述客户端是如权利要求8至10任一项所述的复合文档的上传装置;
    所述服务端是如权利要求11至14任一项所述的复合文档的上传装置。
PCT/CN2016/113255 2016-01-20 2016-12-29 复合文档的上传方法、装置及系统 WO2017124905A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610038973.3 2016-01-20
CN201610038973.3A CN105718569A (zh) 2016-01-20 2016-01-20 复合文档的上传方法、装置及系统

Publications (1)

Publication Number Publication Date
WO2017124905A1 true WO2017124905A1 (zh) 2017-07-27

Family

ID=56147535

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/113255 WO2017124905A1 (zh) 2016-01-20 2016-12-29 复合文档的上传方法、装置及系统

Country Status (2)

Country Link
CN (1) CN105718569A (zh)
WO (1) WO2017124905A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718569A (zh) * 2016-01-20 2016-06-29 广州视睿电子科技有限公司 复合文档的上传方法、装置及系统
CN106357816B (zh) * 2016-11-04 2019-06-11 广州视睿电子科技有限公司 一种云端存储复合文档的方法及系统
CN106897260B (zh) * 2017-03-21 2020-04-07 广州视源电子科技股份有限公司 还原复合文档历史版本的系统及方法、存储介质和处理器
CN107122433B (zh) * 2017-04-18 2020-07-24 广州视源电子科技股份有限公司 一种复合文档的合并方法及实现该方法的系统
CN107741889A (zh) * 2017-09-01 2018-02-27 广州视源电子科技股份有限公司 文档恢复方法、系统、可读存储介质及终端

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5802520A (en) * 1996-09-16 1998-09-01 Software Builders International, L.L.C. System and method for manipulating compressed files
CN102857578A (zh) * 2012-09-25 2013-01-02 新浪网技术(中国)有限公司 一种网络硬盘的文件上传方法、系统及网盘客户端
CN103841170A (zh) * 2012-11-27 2014-06-04 联想(北京)有限公司 一种云存储方法和服务器
CN105718569A (zh) * 2016-01-20 2016-06-29 广州视睿电子科技有限公司 复合文档的上传方法、装置及系统

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050086192A1 (en) * 2003-10-16 2005-04-21 Hitach, Ltd. Method and apparatus for improving the integration between a search engine and one or more file servers
CN103309899A (zh) * 2012-03-15 2013-09-18 苏州市国贸电子系统工程有限公司 一种数据保护系统文件索引结构、更新及定位方法
CN103634406A (zh) * 2013-12-11 2014-03-12 北京荣之联科技股份有限公司 文件同步方法及其终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5802520A (en) * 1996-09-16 1998-09-01 Software Builders International, L.L.C. System and method for manipulating compressed files
CN102857578A (zh) * 2012-09-25 2013-01-02 新浪网技术(中国)有限公司 一种网络硬盘的文件上传方法、系统及网盘客户端
CN103841170A (zh) * 2012-11-27 2014-06-04 联想(北京)有限公司 一种云存储方法和服务器
CN105718569A (zh) * 2016-01-20 2016-06-29 广州视睿电子科技有限公司 复合文档的上传方法、装置及系统

Also Published As

Publication number Publication date
CN105718569A (zh) 2016-06-29

Similar Documents

Publication Publication Date Title
WO2017124905A1 (zh) 复合文档的上传方法、装置及系统
CN101166190B (zh) 影音文件的多源下载方法及装置
US9542276B2 (en) Multi stream deduplicated backup of collaboration server data
US20150142742A1 (en) System and method for syncing local directories that enable file access across multiple devices
US8997041B2 (en) Method of managing script, server performing the same and storage media storing the same
US8832042B2 (en) Method and system to scan data from a system that supports deduplication
US9491225B2 (en) Offline download method and system
US11221992B2 (en) Storing data files in a file system
CN110311953B (zh) 一种媒体资料上传与存储系统及方法
WO2016106087A1 (en) Remote metadata extraction and transcoding of files to be stored on a network attached storage (nas)
CN104216957A (zh) 一种视频元数据的查询系统及查询方法
US8370385B2 (en) Media collections service
RU2007143551A (ru) Способ, система и читаемый компьютером носитель информации для синхронизации поддающихся изменению документов для множества клиентов
US9055268B2 (en) Multi-tier recorder to enable seek-back unique copy recording
CN105100195A (zh) 一种数据传输方法及其装置
US20190205413A1 (en) File deduplication using signature information
CN106484821A (zh) 一种云计算架构下的混合云存储方法
DE112017005917T5 (de) Medieninhaltsverwaltungsvorrichtung
CN105069009A (zh) 一种上传、下载文件夹的方法及装置
CN105721520A (zh) 一种文件同步方法及装置
US11720643B2 (en) Methods of website generation
CN107547645B (zh) Linux服务端与windows客户端之间跨平台文件的传输方法
US10133801B2 (en) Providing data aggregated from various sources to a client application
CN112953944A (zh) 基于MapReduce的影音转码方法
CN105847340A (zh) 一种基于hadoop的文件上传方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16886164

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16886164

Country of ref document: EP

Kind code of ref document: A1