CN108234539A - A kind of file upload, download, transmission method and device - Google Patents

A kind of file upload, download, transmission method and device Download PDF

Info

Publication number
CN108234539A
CN108234539A CN201611151740.0A CN201611151740A CN108234539A CN 108234539 A CN108234539 A CN 108234539A CN 201611151740 A CN201611151740 A CN 201611151740A CN 108234539 A CN108234539 A CN 108234539A
Authority
CN
China
Prior art keywords
file
blocks
files
management server
request
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
CN201611151740.0A
Other languages
Chinese (zh)
Other versions
CN108234539B (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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology 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 Beijing Kingsoft Cloud Network Technology Co Ltd, Beijing Kingsoft Cloud Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201611151740.0A priority Critical patent/CN108234539B/en
Publication of CN108234539A publication Critical patent/CN108234539A/en
Application granted granted Critical
Publication of CN108234539B publication Critical patent/CN108234539B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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]
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • H04L67/108Resource delivery mechanisms characterised by resources being split in blocks or fragments
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

It is uploaded the embodiment of the invention discloses a kind of file, method for down loading and device, file uploading method include:Receive the upload request for file destination;File destination is divided into blocks of files according to default segmentation rule;Blocks of files to be uploaded is determined in the blocks of files divided;The first request for uploading blocks of files to be uploaded is sent to the management server of cloud storage system, wherein, the first request includes the quantity of blocks of files to be uploaded;Receive the first storage location of management server feedback;According to the first storage location, blocks of files to be uploaded is uploaded;In the case where the blocks of files divided does not upload all, never select file block in the blocks of files uploaded, blocks of files to be uploaded is updated to selected blocks of files, and the step of management server transmission performed to cloud storage system uploads the first request of blocks of files to be uploaded is returned, until the blocks of files divided all complete by upload.Using the embodiment of the present invention, reduce the error probability in file upload procedure.

Description

A kind of file upload, download, transmission method and device
Technical field
The present invention relates to field of data transmission, more particularly to a kind of file upload, download, transmission method and device.
Background technology
In the epoch of current information explosion, all data information is not being generated, while also all the time or not In the transmission for carrying out data information, utilize, it, can be by these data in order to preferably transmit or using these data informations Information preserves.There are many kinds of the modes that data information preserves, and most common mode is exactly that data information is stored in file In, file is preserved.File mentioned here can be video file, audio file, picture file, document files, net Page file etc..
Under normal conditions, file can be preserved into storage medium, but as the file for needing to store is more and more, and The memory capacity of storage medium is limited, and the method for existing storage cannot meet the needs of practical, by the way that file is uploaded It is preserved to solve the problems, such as this to cloud storage system.Cloud storage system is a kind of emerging network based on cloud storage technology Storage system, memory capacity can be with magnanimity dilatations.
It is to send upper transmitting file to the management server of cloud storage system by the method that file is uploaded to cloud storage system File after the storage location of this document of management server feedback is received, is uploaded to the storage location, the storage by request Position is the storage location in storage server of the file in cloud storage system.Due to during upload, being entire text Part uploads, and the time of upload is long, and the probability of error is very big, may result in the damage of file or uploads situations such as failing Occur.
Invention content
The embodiment of the present invention is designed to provide a kind of file upload, download, transmission method and device, to reduce file Error probability in upload procedure.
In a first aspect, in order to achieve the above objectives, the embodiment of the invention discloses a kind of file uploading methods.Method includes:
Receive the upload request for file destination;
The file destination is divided into blocks of files according to default segmentation rule;
Blocks of files to be uploaded is determined in the blocks of files divided;
The first request for uploading the blocks of files to be uploaded is sent to the management server of cloud storage system, wherein, it is described First request includes the quantity of the blocks of files to be uploaded;
The first storage location of the management server feedback is received, wherein, first storage location is treated to be described Storage location of the transmitting file block in the storage server of cloud storage system;
According to first storage location, the blocks of files to be uploaded is uploaded;
In the case where the blocks of files divided does not upload all, select file block in the blocks of files never uploaded, by institute It states blocks of files to be uploaded and is updated to selected blocks of files, and return and perform the management server transmission to cloud storage system The step of uploading the first request of the blocks of files to be uploaded, completes until the blocks of files divided all uploads.
Second aspect, in order to achieve the above objectives, the embodiment of the invention discloses a kind of document down loading methods.Method includes:
The download request for the first file is sent to the management server of cloud storage system, wherein, first file Including at least one blocks of files;
The third information of the management server feedback is received, wherein, the third information includes first file File number of blocks;
Based on the file number of blocks, file to be downloaded block is determined;
The third request for downloading the file to be downloaded block is sent to the management server, wherein the third request bag Quantity containing the file to be downloaded block;
Receive the second storage location of the file to be downloaded block of the management server feedback;
The file to be downloaded block is downloaded from second storage location, does not download situation about finishing in first file Under, the step of returning and perform the block number based on first file, determine file to be downloaded, until under first file It carries and completes.
The third aspect, in order to achieve the above objectives, the embodiment of the invention discloses a kind of files to upload device.Device includes:
First receiving module, for receiving the upload request for file destination;
Divide module, for the file destination to be divided into blocks of files according to default segmentation rule;
First determining module, for determining blocks of files to be uploaded in the blocks of files divided;
First sending module, for sending upload the blocks of files to be uploaded the to the management server of cloud storage system One request, wherein, first request includes the quantity of the blocks of files to be uploaded;
Second receiving module, for receiving the first storage location of the management server feedback, wherein, described first deposits Storage space is set to storage location of the blocks of files to be uploaded in the storage server of cloud storage system;
First uploading module, for the blocks of files to be uploaded to be uploaded to first storage location;
Update module in the case of not uploaded all in the blocks of files divided, is selected in the blocks of files never uploaded Blocks of files is selected, the blocks of files to be uploaded is updated to selected blocks of files, and returns and performs first sending module, directly It all uploads and completes to the blocks of files divided.
Fourth aspect, in order to achieve the above objectives, the embodiment of the invention discloses a kind of file downloading devices.Device includes:
4th sending module, for sending the download request for the first file to the management server of cloud storage system, Wherein, first file includes at least one blocks of files;
5th receiving module, for receiving the third information of the management server feedback, wherein, in the third information Include the file number of blocks of first file;
Second determining module for being based on the file number of blocks, determines file to be downloaded block;
5th sending module, for sending the third request for downloading the file to be downloaded block to the management server, Wherein described third request includes the quantity of the file to be downloaded block;
6th receiving module, for receiving the second storage position of the file to be downloaded block of the management server feedback It puts;
Download module, for downloading the file to be downloaded block from second storage location, in first file not It in the case that download finishes, returns and performs second determining module, until first file download is completed.
5th aspect, in order to achieve the above objectives, the embodiment of the invention discloses a kind of document transmission method, the methods for this Including:
It monitors whether to receive and shows instruction for the third of third file operation panel;
If it is, show the third file operation panel;
It receives and instruction is transmitted by the file that the third file operation panel is sent;
Judge whether the management server of Successful login cloud storage system;
If success, third file management panel is shown in the third predeterminated position apart from the third file operation panel;
If failure, displaying third logs in panel, and logs in panel by the third and log in the management server, into After work(logs in the management server, the second file pipe is shown in the third predeterminated position apart from the second file operation panel Manage panel;
The destination path determined according to the displaying information of the first file management panel is obtained, according to the destination path Instruction, which is transmitted, with the file carries out file transmission.
6th aspect, in order to achieve the above objectives, the embodiment of the invention discloses a kind of file transfer means, described device packets It includes:
Second monitoring modular shows instruction for monitoring whether to receive for the third of third file operation panel;
5th display module, in the monitoring result of second monitoring modular in the case of being, displaying described the Three file operation panels;
Tenth receiving module transmits instruction for receiving by the file that the third file operation panel is sent;
Second judgment module, for judging whether the management server of Successful login cloud storage system;
6th display module, for the second judgment module judging result for successfully in the case of, apart from the third The predeterminated position displaying third file management panel of file operation panel;
7th display module, the judging result for the second judgment module are in the case of failing, and displaying third logs in face Plate, and panel is logged in by the third and logs in the management server, after management server described in Successful login, in distance The predeterminated position of the second file operation panel shows the second file management panel;
Transmission module, for obtaining the destination path determined according to the displaying information of the first file management panel, root File transmission is carried out according to the destination path and file transmission instruction.
As seen from the above technical solution, the embodiment of the present invention provides, a kind of file upload, method for down loading and device, file Method for uploading includes:Obtain the upload request for file destination;The file destination is divided into according to default segmentation rule Blocks of files;Blocks of files to be uploaded is determined in the blocks of files divided;It is sent to the management server of cloud storage system and uploads institute The first request of blocks of files to be uploaded is stated, wherein, first request includes the quantity of the blocks of files to be uploaded;Receive institute The first storage location of management server feedback is stated, wherein, first storage location is the file to be uploaded in cloud storage Storage location in the storage server of system;The blocks of files to be uploaded is uploaded to first storage location;Dividing It is removed in good blocks of files in the alternative document block of blocks of files uploaded, determines blocks of files to be uploaded, and return to execution to cloud The management server of storage system sends the step of the first request for uploading the blocks of files to be uploaded;Until on All Files block It passes and completes.Using the embodiment of the present invention, by being uploaded to file block, the time that each blocks of files uploads is shorter, compares In the prior art, reduce the error probability in file upload procedure.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the first flow diagram of file uploading method provided in an embodiment of the present invention;
Fig. 2 is second of flow diagram of file uploading method provided in an embodiment of the present invention;
Fig. 3 is the design sketch that displaying has the first file management panel in PS;
Fig. 4 is the design sketch that displaying has the first login panel in PS;
Fig. 5 is the third flow diagram of file uploading method provided in an embodiment of the present invention;
Fig. 6 is the 4th kind of flow diagram of file uploading method provided in an embodiment of the present invention;
Fig. 7 is the 5th kind of flow diagram of file uploading method provided in an embodiment of the present invention;
Fig. 8 is the 6th kind of flow diagram of file uploading method provided in an embodiment of the present invention;
Fig. 9 is the 7th kind of flow diagram of file uploading method provided in an embodiment of the present invention;
Figure 10 is the first flow diagram of document down loading method provided in an embodiment of the present invention;
Figure 11 is second of flow diagram of document down loading method provided in an embodiment of the present invention;
Figure 12 is the third flow diagram of document down loading method provided in an embodiment of the present invention;
Figure 13 is the 4th kind of flow diagram of document down loading method provided in an embodiment of the present invention;
Figure 14 is the 5th kind of flow diagram of document down loading method provided in an embodiment of the present invention;
Figure 15 is the structure diagram that file provided in an embodiment of the present invention uploads device;
Figure 16 is the structure diagram of file downloading device provided in an embodiment of the present invention;
Figure 17 is the kind flow diagram of document transmission method provided in an embodiment of the present invention;
Figure 18 is the design sketch that displaying has third file management panel in PS;
Figure 19 is the design sketch that displaying has that third logs in panel in PS;
Figure 20 is the structure diagram of file transfer means provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall within the protection scope of the present invention.
In order to solve prior art problem, an embodiment of the present invention provides a kind of upload of file, download, transmission method and dresses It puts.A kind of file uploading method provided first below the embodiment of the present invention is introduced.
Fig. 1 is the first flow diagram of file uploading method provided in an embodiment of the present invention;Method includes:
S101:Receive the upload request for file destination.
In embodiments of the present invention, can have the client reception of upload function please for the upload of file destination It asks, the client mentioned here with upload function can be the client of proprietary upload function, or with upload The client of function.The client of proprietary upload function can be the client only having with uploading the correlation functions such as download, i.e., Exclusively for uploading the client downloading and customize, and the client with upload function is in addition to upload function, also with it His function can be to editting function of file etc. illustratively.
Client with upload function can be the PS (Adobe with upload function illustratively Photoshop), PS is image processing software, is primarily used to handle the digital picture formed with pixel, you can be interpreted as The method that the embodiment of the present invention is provided is applied in PS, specifically, applied in the plug-in unit that upload function is carried in PS.When So, PS includes different versions, can be CC (Creative Cloud, intention cloud) version of PS illustratively, PS's CS6, CS5 version etc., further, the PS be mounted on Mac systems in, Mac be Apple Inc. from 1984 with The personal consumption type computer that " Macintosh (Macintosh) " starts.Certainly the client with upload function can be with For office software, Video editing software, audio edited software, ocr software etc..In practical applications, with upload function Client can realize the upload of file by the plug-in unit with upload function.Plug-in unit (Plug) is a kind of to follow certain specification The program that application interface is write out, execution is operated under the system platform of the procedure stipulation, and cannot be detached from the platform specified Isolated operation.Implementing to be:By the storage under the installation directory of plug-in unit storage in the client with upload function The file of plug-in unit, this document folder can be referred to as Plug-ins.It should be noted that the plug-in unit is in addition to upload function, There can also be download function.Certainly, the client of upload function mentioned here may be mounted in Mac systems, can also In Windows systems, Windows systems are a kind of operating system of MS's exploitation.
In practical applications, after receiving the upload request for file destination, one file input stream of client terminal start-up, This document inlet flow reads data from file bit by bit, and by the data storage in reading in memory, this is interior to save as Memory space set by transmitting file temporal cache, the above process is it is to be understood that the temporary data block of file destination is cached In memory, certainly, if file destination is smaller, file destination can be cached in memory.Further, if the visitor The upload function at family end is realized with plug-in unit, then the file uploading method that the embodiment of the present invention is provided is realized by plug-in unit 's.
In practical applications, the installation method of plug-in unit is the prior art, herein without repeating.Plug-in unit is opened in client It loads, can also be just loaded in triggering automatically when dynamic.After the completion of plug-in unit loading, upload request can be monitored and will be connect The upload request is received, realizes the upload of file destination.
In embodiments of the present invention, plug-in unit needs linkage that could realize the upper of file with being equipped with the client of the plug-in unit It passes.Specifically, the linked manner between plug-in unit and the client is:
Plug-in unit can monitor that client is utilized in events, the monitoring of these events such as the opening of client, preservation, newly-built Come what is realized, concrete implementation process is SDK (Software Development Kit, Software Development Kit):Lower carrying The SDK at family end, client-based SDK are developed according to required function, can realize the monitoring to event.When this After plug-in unit monitors event, the description of event is created, then, the parameters of change event, according to the difference of event, after conversion Parameter it is different, i.e., alias is different, and conversion parameter can cause plug-in unit to be compatible with various operations;And then event is performed, root According to the transformed parameter of event, response events are enumerated, response events mentioned here of enumerating are that transformed parameter is deposited with event In correspondence, transformed parameter being matched one by one with event, illustratively, it is assumed that transformed parameter is 1234, 1234 corresponding events is preserve, then there are correspondences between 1234 and preservation.Then, event is performed, returned wrong Error code identifies implementing result, and illustratively, error code 0, the event of representative runs succeeded, and error code is non-zero, and the event of representative is held Row failure.Finally, the parameter memory that release is performed used in the event occupies, and returns to implementing result, i.e. error code.
Illustrate the linkage between plug-in unit and client for uploading file destination in PS below:
When needing to upload the file destination edited, need to obtain this status for being currently editing file destination It puts, at this point, when plug-in unit obtains the upload request for file destination, the description of event can be created, specifically, can pass through sPSActionDescriptor->Make creates the event description of the local position to obtaining file destination, sPSActionDescriptor->Make is a kind of event response function of the overall situation;Then, the parameter of transformation event, event Difference needs the parameters converted different, is plug-in unit it will be appreciated that the character string that can simultaneously identify, plug-in unit by the Parameter Switch of event Event can be handled according to the character string of identification, specifically, sPSActionReference- can be passed through> PutEnumerated, by parameter of the Parameter Switch of event for an enumeration type;Pass through sPSActionControl- again> Get performs the upload event, obtains the reference position of file destination, then pass through sPSActionDescriptor-> GetAlias obtains the alias of file, and the reference position of file destination is converted to alias, then by AliasToFullPath, Alias is converted to the readable address of authentic document, and returns to error code, finally by sPSActionReference->Free, The parameter memory that release performs used in the event occupies, and return to true address.
In embodiments of the present invention, plug-in unit can include the page write with JavaScript language and with Objective- The upload logic that C language is write, the two separation, is conducive to decouple.JavaScript (JS) is a kind of literal translation formula script, is A kind of regime type, weak type, the language based on prototype, built-in support type.Objective-C usually writes ObjC or OC It is the Object-Oriented Programming Language for expanding C with less Objective C or Obj-C.It is write with JavaScript language The page can be UI, i.e. the abbreviation of User Interface (user interface), refer to the operation interface of user, and UI designs refer mainly to The pattern at interface, aesthetic measure.And use it is upper, to the human-computer interaction of software, operation logic, beautiful interface global design then It is another gateway of no less important, in embodiments of the present invention, UI is web (webpage) interface.In practical applications, plug-in unit work( The realization of energy, can could be realized with the mutual cooperation of JS language and OC language, need to get through macaronic interaction, that is, realize two The mutual calling of kind language, below illustrates macaronic call method.
First, JS calls OC
Using the redirection principle of web interface, i.e., the value of document.location is specified in JS language again, Document.location is meant that navigates to designated position by content of pages, and the value of document.location is can be with It is not understood as a URL (Uniform Resource Locator, uniform resource locator), URL is to can be from internet On the obtained position of resource and a kind of succinct expression of access method, be standard resource on internet address.Internet On each file there are one unique URL, the information that it is included points out how the position of file and browser should be located Manage it.As long as the required method called in OC is specified in the URL character strings by custom rule, then by OC ShouldStartLoadWithRequest functions go the request of capture processing JS, and OC is called so as to fulfill JS.Need what is illustrated It is that shouldStartLoadWithRequest functions are a functions of OC language, is primarily used to asking for capture JS language It asks.
2nd, OC calls JS
There are one windowScriptObject (window scripting object) attributes in JS language, can directly obtain script Object, OC can call callWebScriptMethod:The method that withArguments forwards messages to object in JS And parameter, it can realize that OC calls JS, such as [self.windowScriptObject callWebScriptMethod:@" login:password:"withArguments:@[@”zhangsan”,@”123456”]]。callWebScriptMethod: WithArguments is the function in OC language, mainly by the message transmission in OC to JS.
Specifically, the interaction between JS language and OC language is the prior art, those skilled in the art can pass through disclosure Data, realize the interaction between JS language and OC language.In embodiments of the present invention, if being realized with plug-in unit to target text The upload of part then needs to establish contacting for plug-in unit and the management server in cloud storage system, specifically, remotely being stepped on by plug-in unit Record management server contacts so as to establish.In Telnet management server, the interaction of JS language and OC language is needed, It could realize.JS language and the interaction of OC language in login process are realized using the above method, herein without superfluous It states.When the identification information and password for detecting user input by user, verified according to the identification information of user and password, It is proved to be successful, then logins successfully.In a particular application, the identification information of user can be user name, mailbox, cell-phone number etc., Certainly, when the information for needing to input includes enterprise's identification information, it is also necessary to input the identification information of enterprise.Implement in the present invention In example, it can be logged in after may also detect that log-on message with automated log on.
S102:File destination is divided into blocks of files according to default segmentation rule.
Default segmentation rule can preset size according to and divide, and illustratively, file destination 15M, default size is File destination block is then divided into the blocks of files of 3 4M and the blocks of files of 1 3M by 4M;Certainly, presetting segmentation rule can also be Divided according to the size of file destination and default block number, illustratively, file destination 15M, default block number is 4 pieces, then can be with File destination is divided into the blocks of files of 1 6M and the blocks of files of 3 3M;Default segmentation rule can preset block number according to Average segmentation, illustratively, file destination 15M, default block number is 5 pieces, then file destination block can be divided into 5 3M's Blocks of files.The embodiment of the present invention is only illustrated for above-mentioned, in practical application, on default segmentation rule is not limited in It states several.
In practical applications, the client with upload function will cache file destination in memory according to default segmentation Rule is split, further, the plug-in unit with upload function that is client will will cache file destination in memory by It is split according to default segmentation rule.
S103:Blocks of files to be uploaded is determined in the blocks of files divided.
When the blocks of files divided only has one piece, this document block is determined as blocks of files to be uploaded, when the text divided When part block is one piece more than, the blocks of files of fixed quantity can be determined as blocks of files to be uploaded, illustratively, it is assumed that fixed Quantity is 16 pieces, and the blocks of files divided has 4 pieces, then is determined as blocks of files to be uploaded by this 4 pieces, if dividing good file has 20 pieces, then it is determined as blocks of files to be uploaded by 16 pieces therein, specifically, 16 pieces can be randomly choosed in 20 blocks of files; In practical applications, each piece of block number for having itself in the blocks of files divided, block number are true according to the sequencing of segmentation Fixed, block number can be number, or be letter, determine that blocks of files to be uploaded can be according to the block for the blocks of files divided Number sequence determine.Illustratively, it is assumed that have 5 pieces, respectively blocks of files 1-5, fixed quantity is two pieces, then can be by file Block 1 and blocks of files 2 are determined as blocks of files to be uploaded.Certainly the above-mentioned method for determining blocks of files to be uploaded is not not limited only to, Here without enumerating.
When the blocks of files divided is one piece more than, the blocks of files of one of them can also be determined as text to be uploaded Multiple blocks of files can also be determined as blocks of files to be uploaded by part block.It should be noted that blocks of files to be uploaded is determined each time Quantity may be the same or different.Specifically, the quantity of determining blocks of files to be uploaded can be according to actual conditions every time Depending on.
S104:The first request for uploading the blocks of files to be uploaded is sent to the management server of cloud storage system, wherein, First request includes the quantity of the blocks of files to be uploaded.
When needing to upload the blocks of files to be uploaded, the first request is sent to management server, is included in first request The quantity of blocks of files to be uploaded, the quantity of blocks of files to be uploaded mentioned here are the numbers of the blocks of files to be uploaded determined in S103 Amount.In practical applications, each blocks of files divided corresponds to a block number, it is determined that blocks of files to be uploaded also have that its is right The block number answered then further includes the block number of each blocks of files to be uploaded in the first request, illustratively, blocks of files to be uploaded is respectively Blocks of files 1, blocks of files 2 and blocks of files 3 are then 3 pieces, respectively blocks of files 1, file comprising blocks of files to be uploaded in the first request The information of block 2 and blocks of files 3.
It should be noted that all requests between management server can be https (Hyper Text Transfer Protocol over Secure Socket Layer) request, https is with safely for the http of target (HyperText Transfer Protocol, hypertext transfer protocol) channel is briefly the safe version of http.Http is A kind of procotol being most widely used on internet.Certainly, all requests between management server may be Http request.
S105:The first storage location of the management server feedback is received, wherein, first storage location is described Storage location of the blocks of files to be uploaded in the storage server of cloud storage system.
Management server determines first after the first request is received, according to the quantity of blocks of files to be uploaded in the first request Storage location.In practical applications, the first storage location of management server feedback can be the quantity with blocks of files to be uploaded It is identical, each storage location in the first storage location and file to be uploaded each blocks of files in the block there are correspondence, It illustratively, can be as shown in table 1.
Table 1
Blocks of files Storage location
1 A
2 B
3 C
4 D
First storage location of management server feedback can be one section storage of the blocks of files to be uploaded in storage server Position, illustratively, the first storage location can be storage location A- storage locations D;Certainly, the first storage location can be to treat Blocks of files start memory location in storage server is uploaded, storage server is by blocks of files to be uploaded from the start memory location Start to store successively.
It should be noted that if management server determines to be uploaded included in the first request according to the first request Blocks of files all uploads, then feeds back the information uploaded, if blocks of files to be uploaded included in the first request has been gone back There is part not upload, then the block number and the first storage location of the blocks of files uploaded are contained in feedack, this first Storage location is determined based on the quantity of the blocks of files not uploaded, in this way can be to avoid repeating resource and effect caused by uploading The waste of rate.
S106:According to first storage location, the blocks of files to be uploaded is uploaded.
In practical applications, if each storage location in the first storage location and file to be uploaded each text in the block There are correspondences for part block, then according to the correspondence, this document block is uploaded to corresponding storage location;If the first storage Position is one section of storage location, then according to the start memory location of this section of storage location and can terminate storage location, successively on Transmitting file block;If the first storage location contains only start memory location, using the start memory location as storage starting point, upload Blocks of files to be uploaded is completed when blocks of files to be uploaded uploads, then can determine the end storage location of blocks of files to be uploaded.
S107:In the case where the blocks of files divided does not upload all, select file block in the blocks of files never uploaded, The blocks of files to be uploaded is updated to selected blocks of files, and returns and performs S104, until the blocks of files divided is whole It uploads and completes.
In S013, determining blocks of files to be uploaded can be one or more of the blocks of files divided blocks of files, After blocks of files to be uploaded uploads, it is also necessary to which select file block continues as blocks of files to be uploaded in the blocks of files not uploaded Blocks of files is uploaded, until all blocks of files divided are uploaded and completed, file destination, which uploads, at this time completes.
In embodiments of the present invention, the file that itself is being edited can be uploaded to by the client with upload function deposits Server is stored up, the file for editing itself is not needed to and first preserves, then upload in storage server, it is air-ground without occupying this Between, the insufficient trouble and worry of thorough liberation local storage space solves and stores file to storage server and must first preserve The problem of, it is also prevented from file corruption or loss.Meanwhile can file destination be directly uploaded to storage server, eliminate peace The step of filling proprietary upload function client also eliminates the step of opening upload function client, simplifies with upload work( The office of the client of energy.In the prior art, storage file is carried out using webpage Dropbox, but since the performance of webpage is bad, Compared to the prior art, user experience of the embodiment of the present invention is more preferable.Storage medium storage file is utilized compared to existing, due to Storage medium may damage at any time, be unfavorable for data safety.File is uploaded to storage server by the embodiment of the present invention, can Realize the safety of data.
In embodiments of the present invention, can file rapidly be uploaded to high in the clouds to store, will be stored compared with by file In local, file is stored to high in the clouds, greatly reduces the possibility that file is lost or damaged.Moreover, in practical applications, it will File is uploaded to high in the clouds, and high in the clouds provides a public space so that sharing files can be given to other people by the public space, It is of course also possible to other people will be shared in the form of file exterior chain.
Using the embodiment of the present invention, by being uploaded to file block, the time that each blocks of files uploads is shorter, compares In the prior art, reduce the error probability in file upload procedure.
In another specific embodiment of the present invention, referring to Fig. 2, second of flow of the method for file upload is provided Schematic diagram, compared with embodiment illustrated in fig. 1, in the present embodiment, piece-root grafting narrowing is to the upload request (S101) of file destination, packet It includes:
S1011:It monitors whether to receive the first displaying instruction for showing the first file operation panel.
In practical applications, the first displaying instruction is for showing the displaying of the first file operation panel instruction, further , it may be said that it is the displaying instruction for showing file operation panel in client, specifically, the plug-in unit in client, which is worked as, monitors text The save file event of part opens file event etc., can be defaulted as receiving the first displaying instruction.Need what is illustrated It is that described client is the client with upload function in embodiments of the present invention, is with upload work(further The client of the plug-in unit of energy.
S1012:Show the first file operation panel.
After the first displaying instruction is received, the first file operation panel is shown in client, in practical applications, this One file operation panel can be the page write by JavaScript language, be UI designs.Specifically, the first file operation face Plate is the one of interface of plug-in unit, and specific methods of exhibiting is that JS interacts realization with OC, herein without repeating.It needs Bright, described plug-in unit is the plug-in unit with upload function in embodiments of the present invention.
S1013:Receive the upload request for file destination sent by the first file operation panel.
In practical applications, connection is established between client and the first file operation panel, client can receive logical It crosses the first file operation panel and sends upload request;Illustratively, " being saved in cloud disk " button on the first file operation panel It is triggered, client is received by the upload request for file destination, it should be noted that cloud disk mentioned here is that cloud is deposited Storage system.
Further, in one particular embodiment of the present invention, the first file operation panel transmission was being received The upload request for file destination after, further include:
Judge whether the management server of Successful login cloud storage system;
If success, the first file management panel is shown in the first predeterminated position apart from the first file operation panel;
If failure, displaying first logs in panel, and logs in panel by described first and log in the management server, into After work(logs in the management server, the first file pipe is shown in the first predeterminated position apart from the first file operation panel Manage panel;
Obtain the target store path determined according to the displaying information of the first file management panel;
It is further included in first request:The target store path;
First storage location for receiving the management server feedback, including:
Receive the first storage location that the management server is determined according to the target store path.
When upper transmitting file, client, which needs to establish with cloud storage system, to be connected, and further, is needed and cloud storage system Management server and storage server in system, which establish connection, could complete the upload of file, it is therefore desirable to judge whether successfully to step on Record management server.
After Successful login management server, then first is shown in the first predeterminated position of distance the first file operation panel File management panel.Illustratively, the first file management panel in PS can be with as shown in figure 3, in figure 3, the first file Management-plane is located at the upside of the first file operation panel.First predeterminated position mentioned here can also be the first file operation The positions such as left side, right side, the downside of panel, it is not limited in the embodiment of the present invention.
In practical applications, if not having Successful login management server, displaying first logs in panel, illustratively, First logs in panel can be with shown in Fig. 4, the log-on message input frame that can be logged in by first on panel inputs log-on message, defeated After entering, click " login " button and think to have sent logging request to management server.In practical applications, management service In the case of device confirms that the log-on message is effective, effectively confirm to client feedback log-on message as a result, specifically, to management It is that JS calls OC that server, which sends logging request, when management service feedback acknowledgment result, is that OC calls JS, shows the first file Operation panel.
After the first file management panel is shown, the target of the first file management panel selection target file can be passed through Store path, client can be by the displaying information acquisition target store paths of the first file management panel, specifically, can be with It is called by JS and OC and obtains target store path.In practical applications, it is included into the first request that management server is sent Target store path, management server can determine the first storage location according to target store path.
It it should be noted that please by the cancellation of the first login panel or the transmission of the first file management panel receiving It asks, then closes corresponding panel, illustratively, if receiving the cancellation request for logging in panel by first and sending, can close The first login panel.
In a preferred embodiment of the invention, according to first storage location, the file to be uploaded is uploaded After block, further include:
Pass through the upload progress of file destination described in the first file management panels show.
In practical applications, after question paper block is uploaded, the first file management Display panel file destination can be passed through Upload progress, upload progress can be shown in the form of percentage, can also be shown with the file size uploaded, specifically , display mode is the prior art, herein without repeating, with reference to the sudden peal of thunder mode that progress is shown when downloading file.
In a preferred embodiment of the invention, method can further include:
First object is sent to the management server by the first file management panel and creates request;
Receive the result information that request is created for first object of the management server feedback;
The first newly-built object is shown in the first file management panel according to the result information.
In practical applications, it can be that file creates request that the first object mentioned here, which creates request, illustratively, Can the first object be sent by " new folder " button in Fig. 3 and create request, the first object creates ask in can be with It carries by information such as the first newly-built object storage location, titles.The first newly-built object of first file management Display panel, Can be the storage location in the first object, display carries the file of the first object oriented.
In a preferred embodiment of the invention, method can further include:
It receives and first logs off request by the way that the first file management panel is sent;
It logs off request according to described first, disconnects the connection between the management server.
Illustratively, can be logged off request by the transmission of " exiting " button in Fig. 3 first, when disconnection management service Connection between device then shows the first file management panel as shown in Figure 4.
Using the embodiment of the present invention, by being uploaded to file block, the time that each blocks of files uploads is shorter, compares In the prior art, reduce the error probability in file upload procedure.Meanwhile in embodiments of the present invention, it provides and is deposited for cloud First operation panel of storage system is for user's operation, in this way without using the client for the cloud storage system being separately provided, letter The step of having changed transmitting file on user is the providing a great convenience property of file in user's operation cloud storage system, saves The time of user, improve user experience.
The third flow diagram for the file uploading method that Fig. 5 is provided by the embodiment of the present invention.It is provided based on Fig. 1 Embodiment, a kind of file uploading method that the embodiment of the present invention is provided, between S101 and S102, further include S108 and S109, wherein,
S108:The acquisition that the identification information for obtaining file destination is sent to the management server is asked.
The storage server same time may store multiple files, because file is deposited in the form of blocks of files Storage, in order to enable the blocks of files uploaded in storage server can be stored correctly, will not deposit with the blocks of files of alternative document Entanglement occurs for storage, needs to obtain the identification information of file destination, when communicating every time with management server or storage server, take Identification information with file destination, this avoid because multiple files simultaneously upload caused by entanglement the occurrence of.
In practical applications, the size of file destination, title and the target in the client are contained in acquisition request The identification information of parent directory where file.Management server determines mark of the file destination in cloud storage system according to request is obtained Know information.
S109:The second information of the management server feedback is received, wherein second information includes the target The identification information of file.
Specifically, the first request further includes:The identification information of the file destination.
First storage location is that the management server is determined according to the identification information of the file destination.
The identification information of file destination is carried in the first request is sent to management server, management server can basis The identification information of file destination determines the first storage location.Management server can be determined according to the identification information of file destination Whether the blocks of files of file destination uploads, if so, determining the first storage according to the storage location for having uploaded blocks of files Position if not provided, according to the identification information of file destination, selects to select storage location in storage server.
Specifically, second information includes the current version information of the file destination.
Management server determines the current version information of file destination according to the title of file destination, if management server In record the file destination title it is corresponding upload record, then there are old versions to have uploaded for the file destination, then should Which version is the current version information of file destination be, illustratively, the title of the file destination corresponds in management server Upload record have 2, then the current version information of file destination for ground the 3rd edition.The version information of file destination is conducive to count According to backup, if the file stored in local or storage server is deleted or is lost, according to the current version of file destination Information, it is known that whether thering is file to have stored in storage server before, if so, can then be obtained in storage server File destination is taken, in practical applications, by checking old version information or recycle bin, obtains file destination, it is ensured that file is not It can lose.Meanwhile pass through current version information, it may be determined that file destination whether there is instance version, if it does, can root It is investigated that seeing old version, the modification content of file destination is checked, while can check whether the file history version of upload uploads Mistake can carry out error correction by current version information.
Using the embodiment of the present invention, by being uploaded to file block, the time that each blocks of files uploads is shorter, compares In the prior art, reduce the error probability in file upload procedure.Meanwhile the identification information based on file destination, ensure It is not in the situation that blocks of files uploads entanglement during upload.
In another specific embodiment of the present invention, referring to Fig. 6, the 4th kind of flow of the method for file upload is provided Schematic diagram compared with embodiment illustrated in fig. 5, in the present embodiment, according to first storage location, uploads the file to be uploaded Block (S106), including:
S1061:A file blocks of files in the block to be uploaded is determined as file destination block.
When blocks of files to be uploaded only has one piece, which is determined as file destination block;On treating When transmitting file block is one piece more than, a blocks of files can be randomly choosed, the blocks of files of selection is determined as file destination block, File to be uploaded blocks of files in the block can also be ranked up, specifically, can be according to file to be uploaded blocks of files in the block Block number be ranked up, sequence near preceding blocks of files is determined as file destination block, can also be by the file after that sorts Block is determined as file destination block.The embodiment of the present invention is only illustrated for above-mentioned, in practical application, determines file destination The mode of block is not limited in above-mentioned several.
S1062:The second request is sent to the storage server.
It should be noted that the request that sends of oriented storage server asked for http request or https.
S1063:According to first storage location, the file destination block is uploaded.
When in the first storage location between storage location and file destination block there are during correspondence, can be by file destination Corresponding storage location is uploaded to, it is of course also possible to a storage location be randomly choosed in the first storage location, by target text Part block is uploaded to the storage location of selection, true according to start memory location when the first storage location only has start memory location The storage location for the blocks of files that sets the goal uploads the file destination block.
S1064:In the case where the blocks of files to be uploaded does not upload all, select file in the blocks of files never uploaded Block, and the file destination block is updated to selected blocks of files, it returns and performs S1062, until the blocks of files to be uploaded It all uploads and completes.
It is singly serially to upload due to uploading when blocks of files to be uploaded is multiple, when a blocks of files uploads It during completion, needs to upload next blocks of files, a blocks of files is selected to be determined as file destination in the blocks of files that can not uploaded Block, the method that the method for specific choice may refer to above-mentioned determining file destination block, herein without repeating.
Using the embodiment of the present invention, by being uploaded to file block, the time that each blocks of files uploads is shorter, file Block is to upload one by one, compared to the prior art, reduces the error probability in file upload procedure.
In another specific embodiment of the present invention, referring to Fig. 7, the 5th kind of flow of the method for file upload is provided Schematic diagram compared with embodiment illustrated in fig. 6, in the present embodiment, according to first storage location, uploads the file destination block (S1063) it after, further includes:
S1065:Under the information state completed in the upload for receiving the storage server feedback, to the management service Device sends inquiry request, wherein, the inquiry request is used to inquire whether the file destination block uploads success.
Specifically, second request includes:First cryptographic Hash of each blocks of files in the blocks of files to be uploaded, wherein, First cryptographic Hash is:Calculate what the Hash of the data of each blocks of files storage in the blocks of files to be uploaded was worth to.
It should be noted that the quantity of the first cryptographic Hash included in the first request and file to be uploaded blocks of files in the block Quantity it is identical, specifically, the first cryptographic Hash is to calculate the Hash stored in file each file in the block to be uploaded to be worth to 's.In practical applications, the first cryptographic Hash can be md5 (Message Digest Algorithm 5, Message Digest 5 the Five editions) value or sha1 (Secure Hash Algorithm 1, Secure Hash Algorithm) value.Md5 is pacified for computer A kind of widely used hash function in full field for ensuring that information transmission is complete consistent, while is also that computer is widely used One of hash algorithm (and translating digest algorithm, hash algorithm).Md5 is exactly that the byte serial of a random length is transformed into centainly Long hexadecimal number word string.The hexadecimal number word string being transformed into is exactly md5 values.Sha1 is by Unite States Standard Technical Board (NIST) national standard promulgated is a kind of hash function algorithm being most widely used and current state-of-the-art encryption skill Art is used for handling sensitive information by government department and private owner, and sha1 can generate the hashed value that length is 160, because This anti-exhaustive (brute-force) property is more preferable, which is sha1 values, and certainly, the first cryptographic Hash can also be (RACE Integrity Primitives Evaluation Message Digest, RACE raw integrity verify RIPEMD Eap-message digest) value, certainly, the first cryptographic Hash is not limited in above-mentioned several.
S1066:Receive the query result of the management server feedback.
After the information that storage server is completed in the upload for determining file destination block feedback, it can be looked into management server transmission Request is ask, when management server will receive the inquiry request, the file destination block is recorded and has uploaded, and to storage server Checking request is sent to, which includes the identification information of file destination and block number, and storage server is according to determining request It determines file destination block, according to the first cryptographic Hash of file destination block, verifies the good working condition of file destination block, and take to management Device feedback validation be engaged in as a result, management server is based on verification result to client query result.It should be noted that according to target First cryptographic Hash of blocks of files, the good working condition of verification file destination block is the prior art, herein without repeating.
S1067:When the query result shows to upload failure, judge whether the upload number of the file destination block surpasses Cross the first preset times;Wherein, the query result is the storage server according to first cryptographic Hash, is treated described in inspection It is determined after the good working condition of upload blocks of files.
Storage server verifies the integrality of file destination block according to the first cryptographic Hash of file destination block, if verification knot Fruit is complete, then query result then performs S1064, if verification result is imperfect, query result is upper to upload successfully Failure is passed, then whether judges the upload number of file destination block more than the first preset times, the first preset times can be according to reality Border situation setting, illustratively, the first preset times can be 3 times.It is provided with the first preset times in embodiments of the present invention, Failure will not be uploaded because of one of a blocks of files, the upload of file destination is caused to fail, reduce upload failure probability. In the embodiment of the present invention, after a blocks of files uploads successfully on determining, next blocks of files can be just uploaded, it is former when there is network When barrier, it can continue to upload unfinished part since the part uploaded, be uploaded from the beginning without necessity It downloads, can realize breakpoint transmission in this way, so as to save the time, improve speed.
S1068:Display uploads the prompting of failure.
When file destination block upload number be more than the first preset times, then show upload failure prompting, specifically, can To show the prompting for uploading failure on the first file management panel, the prompting of display failure mentioned here, is by OC languages Speech interacts what is realized with JS language, in embodiments of the present invention, during upload, can also show the progress of upload, on Degree of coming into can upload in file destination block and complete to increase, and can also increase after the completion of blocks of files to be uploaded uploads, need It is bright, when display uploads the information of failure, upload operation will not be carried out again, only receives the upload of file destination again During request, the upload of file can be just carried out, uploads the corresponding blocks of files of file of failure, storage server can delete.
Using the embodiment of the present invention, by being uploaded to file block, the time that each blocks of files uploads is shorter, file Block is to upload one by one, compared to the prior art, reduces the error probability in file upload procedure.
In another specific embodiment of the present invention, referring to Fig. 8, the 6th kind of flow of the method for file upload is provided Schematic diagram compared with embodiment illustrated in fig. 7, in the present embodiment, according to first storage location, uploads the file destination block (S1063) it before, further includes:
S1069:Using Encryption Algorithm and the first key of self record, the file destination block is encrypted.
Specifically, it is described according to first storage location, the blocks of files to be uploaded is uploaded, including:
According to first storage location, the encrypted file destination block is uploaded.
In practical applications, Encryption Algorithm can be AES (Advanced Encryption Standard, superencipherment Standard) 256 Encryption Algorithm, AES256 Encryption Algorithm is a kind of Encryption Algorithm of US military.AES is that a kind of symmetric key is calculated Method is encrypted and decrypted data using 128,192 or 256 keys, and with the grouping of 128 bit data blocks.AES is to difference The naming method of cipher key size is AES-x, and wherein x is cipher key size.In embodiments of the present invention, first key can be 256 The key of position, then Encryption Algorithm is AES256 Encryption Algorithm.Certainly, Encryption Algorithm is not limited in above-mentioned algorithm, can also be Other can realize encrypted algorithm, herein without enumerating.Utilize Encryption Algorithm and the key-pair file block of record Encrypted specific implementation is the prior art, herein without repeating.Blocks of files is encrypted, ensure that in upload procedure The safety of data.
It should be noted that in practical applications, also comprising encrypted each in blocks of files to be uploaded in the first request The sha1 values of blocks of files and md5 values, management server can store sha1 values and md5 values, for completing the download to file destination.
Using the embodiment of the present invention, by being uploaded to file block, the time that each blocks of files uploads is shorter, file Block is to upload one by one, compared to the prior art, reduces the error probability in file upload procedure.File is added It is close, it ensure that the safety of data in upload procedure.
In another specific embodiment of the present invention, referring to Fig. 9, the 7th kind of flow of the method for file upload is provided Schematic diagram compared with embodiment illustrated in fig. 5, in the present embodiment, after S107, further includes S110, S111 and S112.
S110:Blocks of files, which is sent, to the management server uploads completion confirmation request.
It after the completion of the blocks of files divided all uploads, is sent to management server and determines request, management server exists It receives and determines whether that All Files block all uploads after determining request.
S111:Receive the confirmation result of the management server feedback.
In practical applications, the identification information and block number that include file destination in request are determined, because the same time may Can there are multiple files to upload, need to determine file destination according to identification information, it should be noted that obtaining file destination Identification information after, the request sent to management server or storage server all carries the identification information of file destination.Management Server has determined exhaustively file according to the block number of the block number of file destination and the blocks of files uploaded of self record Block, and feed back definitive result.
S112:Confirm described the result shows that after in the presence of the blocks of files omitted, the blocks of files of the omission is uploaded to institute State the first storage location;And it returns and performs S110.
When confirming that result is omitted for no blocks of files, the All Files block of file destination block is spliced by management server File destination simultaneously shown, specifically, can refer in existing file download process, when file does not download completions, this File is unreadable and does not show the corresponding icon of file, and when file download, to complete file readable, and shows the corresponding icon of file, Mentioned here blocks of files is spliced into file destination is exactly to make file destination readable and the corresponding icon of display target file, tool The joining method of body is the prior art, and splicing may also fail, and there is the upper limit of splicing number in splicing, if splicing time Number reaches the upper limit and does not splice successfully also, then to the information of client feedback splicing failure, client receives the letter of splicing failure After breath, display uploads the prompting of failure.Management server calculates the number stored in spliced file destination after the completion of splicing According to sha1 values, with obtain ask in the sha1 values that carry be compared, sha1 values mentioned here are by calculating target text What the Hash of the data of part storage was worth to, if two sha1 values are different, illustrate that spliced file destination has damaged, The information that notice client objectives file has damaged, after client receives the information, display uploads the prompting of failure.In reality In, the md5 values of file destination are also included in acquisition, md5 values are obtained by calculating the data stored in file destination, It should be noted that sha1 values and md5 are cryptographic Hash, only length is different, and md5 values are 128, and sha1 values are 160.Pipe Reason server can also utilize whether md5 values verification file damages.
In practical applications, confirming the result shows that there are during blocks of files omission, the confirmation result of management server feedback In include the block number of the blocks of files omitted, when only being omitted there are one blocks of files, upload this document block, upload missing file block The step of step is with above-mentioned upload blocks of files is identical, herein without repeating.When not only one piece of the blocks of files of omission, then institute The blocks of files for having omission is blocks of files to be uploaded, and specific method for uploading is identical with the method for above-mentioned upload blocks of files to be uploaded, Herein without repeating.
Using the embodiment of the present invention, by being uploaded to file block, the time that each blocks of files uploads is shorter, file Block is to upload one by one, compared to the prior art, reduces the error probability in file upload procedure.
Figure 10 is the first flow diagram of document down loading method provided in an embodiment of the present invention, and method includes:
S201:The download request for the first file is sent to the management server of cloud storage system, wherein, described first File includes at least one blocks of files.
In embodiments of the present invention, can be that the client with download function is sent out to the management server of cloud storage system The download for the first file is sent to ask, the client mentioned here with download function can be the visitor of proprietary download function Family end, or the client with download function.The client of proprietary download function can be only to have to download with uploading Wait correlation functions client, i.e., exclusively for upload download and customize client, and with download function client in addition to With download function, also there are other, can be to editting function of file etc. illustratively.With download function Client can be realized by the plug-in unit with download function.Client with download function can be band illustratively There is PS, office software of download function etc., in practical applications, the client with download function can be downloaded by having The plug-in unit of function realizes the download of file.It should be noted that the plug-in unit is in addition to that with download function, can also have and upload work( Energy.Certainly, the client of download function mentioned here may be mounted in Mac systems, can also be mounted on Windows systems In, Windows systems are a kind of operating system of MS's exploitation.
In embodiments of the present invention, plug-in unit needs to link and could realize under file with being equipped with the client of the plug-in unit It carries.Specifically, the linkage between plug-in unit and the client is:
Plug-in unit can monitor that client is utilized in events, the monitoring of these events such as the opening of client, preservation, newly-built Come what is realized, concrete implementation process is SDK (Software Development Kit, Software Development Kit):Lower carrying The SDK at family end, client-based SDK are developed according to required function, can realize the monitoring to event.When this After plug-in unit monitors event, the description of event is created, then, the parameters of change event, according to the difference of event, after conversion Parameter it is different, i.e., alias is different, and conversion parameter can cause plug-in unit to be compatible with various operations;And then event is performed, root According to the transformed parameter of event, response events are enumerated, response events mentioned here of enumerating are that transformed parameter is deposited with event In correspondence, transformed parameter being matched one by one with event, illustratively, it is assumed that transformed parameter is 1234, 1234 corresponding events is preserve, then there are correspondences between 1234 and preservation.Then, event is performed, returned wrong Error code identifies implementing result, and illustratively, error code 0, the event of representative runs succeeded, and error code is non-zero, and the event of representative is held Row failure.Finally, the parameter memory that release is performed used in the event occupies, and returns to implementing result, i.e. error code.
Below to illustrate the linkage between plug-in unit and client for the first file that download is opened in PS:
After the first file download is complete, plug-in unit can create the description of event, specifically, can pass through sPSActionDescriptor->Make creates the event description of the local position to obtaining file destination, sPSActionDescriptor->Make is a kind of event response function of the overall situation;Then, the parameter of transformation event, specifically, SPSActionDescriptor- can be passed through>PutAlias carries out the conversion of parameter, passes through given key (key), setting one The behavior alias of a C reference formats, various operations can be compatible with by doing so, and according to different events, alias is different;Pass through again sPSActionDescriptor->PutInteger carries out Transformation Parameters, by given key (key), sets a C reticle The digital ID (identification, identity number) of the behavior of formula;Pass through sPSActionControl- again>Play is performed One of first File Open event simultaneously returns to error code, finally by sPSActionReference->Free, release performs should Parameter memory used in event occupies, and return to error code.
S202:The third information of the management server feedback is received, wherein, the third information includes described first The file number of blocks of file.
It should be noted that downloading the identification information that the first file is contained in request, management server is receiving this After downloading request, according to pair downloaded in request between the information of the identification information of the first file and the first file itself stored It should be related to, feed back third information, third information contains the file number of blocks of the first blocks of files, and client is based on the first file File number of blocks can determine file to be downloaded block, can also determine whether the blocks of files of the first file is all downloaded and complete.
Specifically, the third information further includes:The current version information of first file.
The current version information of first file mentioned here in file uploading method embodiment file destination it is current The effect of version information is identical, herein without being described in detail.
S203:Based on the file number of blocks, file to be downloaded block is determined.
When file number of blocks only has one piece, this document block is determined as file to be downloaded block, when blocks of files book quantity not Only one piece when, the blocks of files of fixed quantity can be determined as file to be downloaded block, illustratively, it is assumed that fixed quantity is 16 pieces, the blocks of files divided has 4 pieces, then is determined as file to be downloaded block by this 4 pieces, if dividing good file has 20 pieces, Then it is determined as file to be downloaded block by 16 pieces therein, specifically, 16 pieces can be randomly choosed in 20 blocks of files;In reality In, block number is carried for each piece in the blocks of files of the first file, block number can be number, or be letter, really Determine what file to be downloaded block can be determined according to the sequence of the block number of blocks of files.Illustratively, it is assumed that have 5 pieces, respectively file Block 1-5, fixed quantity are two pieces, then can blocks of files 1 and blocks of files 2 be determined as file to be downloaded block.Certainly not only It is limited to the method for above-mentioned determining file to be downloaded block, herein without enumerating.
S204:The third request for downloading the file to be downloaded block is sent to the management server, wherein the third Request includes the quantity of the file to be downloaded block.
In practical applications, the quantity of file to be downloaded block is not only included in third request, further comprises file to be downloaded The block number of block further, also includes the identification information of the first file, and management server is receiving third request, according to the Three requests determine the second storage location.
In a preferred embodiment of the invention, the text to be downloaded is downloaded in described sent to the management server After the third request of part block, further include:
The second cryptographic Hash of the management server feedback is received, wherein, second cryptographic Hash is:By described in calculating The Hash of the data of each blocks of files storage is worth in file to be downloaded block.
It should be noted that the second cryptographic Hash quantity of management server feedback and file to be downloaded blocks of files in the block Quantity is identical, and there are one-to-one relationships with file to be downloaded blocks of files in the block for the second cryptographic Hash.Second cryptographic Hash can be with For md5 values, or sha1 values, naturally it is also possible to for other cryptographic Hash.First cryptographic Hash can be with the second cryptographic Hash The cryptographic Hash of same type or different types of cryptographic Hash.When the first cryptographic Hash and the second cryptographic Hash are same types Cryptographic Hash when, management server can also feed back the first cryptographic Hash of file to be downloaded block.
S205:Receive the second storage location of the file to be downloaded block of the management server feedback.
Second storage location is determined by the identification information of the first file, the quantity of file to be downloaded block, if one is treated It downloads blocks of files and has corresponded to a storage location, then contained in the second storage location identical with the quantity of file to be downloaded block Storage location, further, there are correspondence between the block number and storage location of file to be downloaded block, according to the correspondence It can determine the second storage location.
S206:The file to be downloaded block is downloaded from second storage location, does not download and finishes in first file In the case of, it returns and performs S203, until first file download is completed.
In practical applications, it is when the completion of the first file download, the All Files merged block of the first file is readable into one The first file, the method for merging and above-mentioned file upload procedure management server are identical to the merging method of blocks of files, at this In without repeating.Client with upload function judges whether itself can open first file, if it can, then directly It opens, it, then can directly will be on edited first file after the completion of to the first Document Editing to the first file into edlin Reach storage server.It is ordered if it could not, transferring shell (shell), the first file is opened using default program.Shell is basic On be a command interpreter, corresponding application program can be called.
In embodiments of the present invention, the file that the client with download function is edited between can downloading at any time, file Storage server is stored in, without occupying local spatial, the insufficient trouble and worry of thorough liberation local storage space is also prevented from text Part is damaged or is lost.Meanwhile file can be directly downloaded, the time for finding file is eliminated, also eliminates the proprietary upload of installation The step of function client, further also eliminates the step of opening upload function client, simplifies with upload function Client office.Storage file is carried out using webpage Dropbox, but since the performance of webpage is bad, compared to the prior art, User experience of the embodiment of the present invention is more preferable, storage medium storage file is utilized compared to existing, since storage medium at any time may be used It can damage, be unfavorable for backup and the safety of data, also eliminate the time for finding storage medium.In embodiments of the present invention, will File is uploaded to storage server, and multiple client can check this document.
Using the embodiment of the present invention, by being downloaded to file block, the time that each blocks of files is downloaded is shorter, compares In the prior art, reduce the error probability in file download process.
Second of flow diagram of the document down loading method that Figure 11 is provided by the embodiment of the present invention.It is carried based on Figure 10 The embodiment of confession, a kind of document down loading method that the embodiment of the present invention is provided, in the management service to cloud storage system Before device sends the download request (S201) for the first file, further include:
S207:It monitors whether to receive the second displaying instruction for showing the second file operation panel.
It should be noted that the second displaying instruction is for showing the displaying of the second file operation panel instruction, further , it may be said that it is the displaying instruction for showing file operation panel in client, specifically, the plug-in unit in client, which is worked as, monitors text The save file event of part opens file event etc., can be defaulted as receiving the second displaying instruction.Need what is illustrated It is that described client is the client with download function in embodiments of the present invention, is with download work(further The client of the plug-in unit of energy.
S208:Show the second file operation panel.
In practical applications, which can be the page write by JavaScript language, be UI Design.Specifically, the second file operation panel is the one of interface of plug-in unit, specific methods of exhibiting is that JS interacts realization with OC , herein without repeating.Illustratively, the interface of the second file operation panel and the first file operation panel in Fig. 3 It designs similar.It should be noted that described plug-in unit is the plug-in unit with download function in embodiments of the present invention.
S209:Judge whether the management server of Successful login cloud storage system.
In practical applications, when downloading, client, which needs to establish with cloud storage system, to be connected, and could complete first The download of file judges whether to establish connection with cloud storage service device, can be to judge whether Successful login cloud storage system Management server.
S210:The second file management panel is shown in the second predeterminated position apart from the second file operation panel.
In the case of the management server of Successful login cloud storage system, the second of distance the second file operation panel Predeterminated position shows the second file operation panel.Second predeterminated position mentioned here can also be the second file operation panel The positions such as left side, right side, upside, downside, it is not limited in the embodiment of the present invention.
S211:Displaying second logs in panel, and logs in panel by described second and log in the management server, in success After logging in the management server, the second file management is shown in the second predeterminated position apart from the second file operation panel Panel.
In practical applications, if not having Successful login management server, displaying second logs in panel, can be by the Two log in panels on log-on message input frames input log-on message, input finish backward management server have sent login please It asks.In practical applications, it is effective to client feedback log-on message in the case of management server confirms that the log-on message is effective Confirmation as a result, specifically, to management server send logging request be JS call OC, when management service feedback acknowledgment result When, it is that OC calls JS, shows the second file operation panel.Illustratively, second panel and the first login panel in Fig. 4 are logged in Interface it is similar.
S212:Obtain the target download path determined according to the displaying information of the second file management panel.
After the second file management panel is shown, the target of the first file can be selected by the second file management panel Download path, the plug-in unit in client can pass through the displaying information acquisition target store path of the second file management panel.
The management server to cloud storage system sends the download request for the first file, including:
It is sent by the second file management panel to the management server of cloud storage system under the first file Carry request;
Described download further includes in request:The target download path;
Second storage location of the file to be downloaded block for receiving the management server feedback, including:
Receive the second storage location that the management server is determined according to the target download path.
In embodiments of the present invention, the file to be downloaded block is being downloaded from second storage location, method can be with Including:
Pass through the download progress of the first file described in the second file management panels show.
In embodiments of the present invention, method can also include:
Third object is sent to the management server by the second file management panel and creates request;
Receive the result information that request is created for the third object of the management server feedback;
Newly-built third object is shown in the third file management panel according to the result information.
In embodiments of the present invention, method can also include:
The third that sends by the second file management panel is received to log off request;
It is logged off request according to the third, disconnects the connection between the management server.
Using the embodiment of the present invention, by being downloaded to file block, the time that each blocks of files is downloaded is shorter, compares In the prior art, reduce the error probability in file download process.Meanwhile in embodiments of the present invention, it provides and is deposited for cloud Second operation panel of storage system is for user's operation, in this way without using the client for the cloud storage system being separately provided, letter The step of user downloads file is changed, has been the providing a great convenience property of file in user's operation cloud storage system, saves The time of user, improve user experience.
In another specific embodiment of the present invention, referring to Figure 12, the third stream of the method for file download is provided Compared with embodiment illustrated in fig. 10, in the present embodiment, the file to be downloaded is downloaded from second storage location for journey schematic diagram Block (S206), including:
S2061:A file to be downloaded blocks of files in the block is determined as the first blocks of files.
Determine that the mode of the first blocks of files is identical with the mode of determining file destination block, herein without repeating.
S2062:The 4th request sent to the storage server.
In practical applications, the 4th request bag block number of the identification information of the first blocks of files and the first blocks of files, storage Server can determine the specific location of the first blocks of files according to the 4th request.
In a particular application, when the first cryptographic Hash and the second cryptographic Hash are the cryptographic Hash of same type, in the 4th request The second cryptographic Hash comprising the first blocks of files, when the first cryptographic Hash and the second cryptographic Hash are different types of cryptographic Hash, the 4th The first cryptographic Hash of the first blocks of files is included in request.
S2063:First blocks of files to be downloaded is downloaded from second storage location.
Specifically, downloading the first blocks of files from the corresponding storage location of the first blocks of files, contained in the second storage location The corresponding storage location of first blocks of files.
S2064:In the case of being downloaded in the non-whole of file to be downloaded block, text is selected in the blocks of files never downloaded Part block, and first blocks of files is updated to selected blocks of files, it returns and performs to S2062, until the text to be downloaded Part block is all downloaded and is completed.
Never the mode of select file block is identical with the above-mentioned mode for determining the first blocks of files in the blocks of files downloaded, at this In without repeating.
Using the embodiment of the present invention, by being downloaded to file block, the time that each blocks of files is downloaded is shorter, compares In the prior art, reduce the error probability in file download process.
In another specific embodiment of the present invention, referring to Figure 13, the third stream of the method for file download is provided Journey schematic diagram, compared with embodiment illustrated in fig. 10, in the present embodiment, after S2063, further include S2065, S2066 and S2067。
S2065:According to the second cryptographic Hash that the management server is fed back, determine whether first blocks of files is complete, Wherein, second cryptographic Hash is that the management server is fed back when receiving the third request.
Client according to the second cryptographic Hash determine the first blocks of files right complete method and storage server according to first Whether complete cryptographic Hash verification file destination block mode be identical, herein without repeating.It should be noted that according to management Second cryptographic Hash of server feedback determines that the first blocks of files is right complete, in fact, the second Hash of management server feedback There are correspondences between value and the first blocks of files, and the second cryptographic Hash of the first blocks of files is determined according to the correspondence, according to Second cryptographic Hash of the first blocks of files determines whether the first blocks of files is complete.
It is determining that the first blocks of files is complete, is returning and perform S2064.
S2066:Judge the download time of first blocks of files whether more than the second preset times.
It should be noted that the second preset times can be set according to actual conditions, illustratively, can be three times, It can be five times.When the download time of the first blocks of files is not above the second preset times, returns and perform S2063.
S2067:Show the information of failed download.
When the first blocks of files download time be more than the second preset times, then show the prompting of failed download, illustratively, The prompting of failed download can be shown on the first file management panel, the prompting of display failure mentioned here, is to pass through OC Language interacts what is realized with JS language, in embodiments of the present invention, during download, can also show the progress of download, Download progress can increase when the first blocks of files is downloaded and completed, and can also increase after the completion of file to be downloaded block is downloaded, under Degree of being loaded into can be shown in the form of percentage, can also be shown with the file size downloaded, specifically, display mode is existing There is technology, herein without repeating, with reference to the sudden peal of thunder mode that progress is shown when downloading file.It should be noted that when aobvious When showing the information of failed download, it will not be downloaded operation again, when only receiving the download request of file destination again, just meeting The download of file, the corresponding blocks of files of file of failed download are carried out, storage server can delete.
Using the embodiment of the present invention, by being downloaded to file block, the time that each blocks of files is downloaded is shorter, compares In the prior art, reduce the error probability in file download process.
In another specific embodiment of the present invention, referring to Figure 14, the 5th kind of stream of the method for file download is provided Journey schematic diagram compared with embodiment illustrated in fig. 11, in the present embodiment, after S2063, further includes S2068.
S2068:The second key based on decipherment algorithm and self record, is decrypted first blocks of files.
It will be appreciated by persons skilled in the art that decryption is encrypted inverse process, decryption in embodiments of the present invention is calculated Method is corresponding with the Encryption Algorithm in file upload procedure, if Encryption Algorithm is AES encryption algorithm, decipherment algorithm is AES Decipherment algorithm.It should be noted that used key is identical when first key is with being encrypted the first blocks of files, based on solution Second key of close algorithm and self record, it is the prior art that the first blocks of files, which is decrypted, herein without repeating.
Using the embodiment of the present invention, by being uploaded to file block, the time that each blocks of files uploads is shorter, file Block is to upload one by one, compared to the prior art, reduces the error probability in file upload procedure.The blocks of files of download It is encryption blocks of files, ensures the safety of data in downloading process.
Corresponding with embodiment of the method shown in FIG. 1, Figure 15 is the knot that file provided in an embodiment of the present invention uploads device Structure schematic diagram, the device include:First receiving module 301 divides module 302, the first determining module 303, the first sending module 304, the second receiving module 305, the first uploading module 306 and update module 307.
First receiving module 301, for receiving the upload request for file destination.
Divide module 302, for the file destination to be divided into blocks of files according to default segmentation rule.
First determining module 303, for determining blocks of files to be uploaded in the blocks of files divided.
First sending module 304 uploads the blocks of files to be uploaded for being sent to the management server of cloud storage system The first request, wherein, first request includes the quantity of the blocks of files to be uploaded.
Second receiving module 305, for receiving the first storage location of management server feedback, wherein, described the One storage location is storage location of the blocks of files to be uploaded in the storage server of cloud storage system.
First uploading module 306, for the blocks of files to be uploaded to be uploaded to first storage location.
Update module 307, in the case of not uploaded all in the blocks of files divided, in the blocks of files never uploaded The blocks of files to be uploaded is updated to selected blocks of files by select file block, and is returned and performed first sending module 304, it is completed until the blocks of files divided all uploads.
Using the embodiment of the present invention, by being uploaded to file block, the time that each blocks of files uploads is shorter, compares In the prior art, reduce the error probability in file upload procedure.
Corresponding with embodiment of the method shown in Fig. 2, which can include:First monitoring submodule, the One displaying submodule and the first receiving submodule.
First monitoring submodule refers to for monitoring whether to receive for the first displaying of the first file operation panel of displaying It enables;
First displaying submodule, in the monitoring result of the first monitoring submodule in the case of being, displaying described the One file operation panel;
First receiving submodule is directed to file destination for receiving by what the first file operation panel was sent Pass request.
In one particular embodiment of the present invention, first receiving module, further includes:First judging submodule, Two displaying submodules, third displaying submodule and first obtain submodule.
First judging submodule, for judging whether the management server of Successful login cloud storage system;
Second displaying submodule, for be in the judging result of first judging submodule it is successful, away from The first predeterminated position from the first file operation panel shows the first file management panel;
Third shows submodule, in the case of in the judging result of first judging submodule for failure, displaying First logs in panel, and log in panel by described first and log in the management server, in management service described in Successful login After device, the first file management panel is shown in the first predeterminated position apart from the first file operation panel;
First obtains submodule, is deposited for obtaining the target determined according to the displaying information of the first file management panel Store up path;
It is further included in first request:The target store path;
Second receiving module, is specifically used for:
Receive the first storage location that the management server is determined according to the target store path.
In a preferred embodiment of the invention, described device further includes:First display module.
First display module, for passing through the upload progress of file destination described in the first file management panels show.
In a preferred embodiment of the invention, described device further includes:6th sending module.
6th sending module creates request for sending the first object to the management server;
8th receiving module, for receiving the knot that request is created for first object of the management server feedback Fruit information;
First display module, for showing what is created in the first file management panel according to the result information First object.
In a preferred embodiment of the invention, described device further includes:9th receiving module.
9th receiving module first is logged off request for receiving by the way that the first file management panel is sent;
First disconnects module, for logging off request according to described first, between disconnection and the management server Connection.
Using the embodiment of the present invention, by being uploaded to file block, the time that each blocks of files uploads is shorter, compares In the prior art, reduce the error probability in file upload procedure.Meanwhile in embodiments of the present invention, it provides and is deposited for cloud First operation panel of storage system is for user's operation, in this way without using the client for the cloud storage system being separately provided, letter The step of having changed transmitting file on user is the providing a great convenience property of file in user's operation cloud storage system, saves The time of user, improve user experience.
Corresponding with embodiment of the method shown in fig. 5, which further includes:Second sending module and third receiving module.
Second sending module, the acquisition for sending the identification information for obtaining file destination to the management server please It asks.
In a specific embodiment, first request further includes:The identification information of the file destination;Described first Storage location is that the management server is determined according to the identification information of the file destination.
Third receiving module, for receiving the second information of the management server feedback, wherein in second information Include the identification information of the file destination.Specifically, second information includes the current version information of the file destination.
Using the embodiment of the present invention, by being uploaded to file block, the time that each blocks of files uploads is shorter, compares In the prior art, reduce the error probability in file upload procedure.Meanwhile the identification information based on file destination, ensure It is not in the situation that blocks of files uploads entanglement during upload.
It is corresponding with embodiment of the method shown in fig. 6, first uploading module 306, including:First determination sub-module, One sending submodule uploads submodule and the first update submodule.
First determination sub-module, for a file blocks of files in the block to be uploaded to be determined as file destination block.
First sending submodule, for sending the second request to the storage server.
Second request includes:First cryptographic Hash of each blocks of files in the blocks of files to be uploaded, wherein, described first Cryptographic Hash is:It is worth to by the Hash for calculating the data that each blocks of files stores in the blocks of files to be uploaded.
Submodule is uploaded, for according to first storage location, uploading the file destination block.
First update submodule, in the case of not uploaded all in the blocks of files to be uploaded, the text that never uploads Select file block in part block, and the file destination block is updated to selected blocks of files, it returns and performs first transmission Submodule, until the blocks of files to be uploaded is all uploaded and completed.
Using the embodiment of the present invention, by being uploaded to file block, the time that each blocks of files uploads is shorter, file Block is to upload one by one, compared to the prior art, reduces the error probability in file upload procedure.
Corresponding with embodiment of the method shown in Fig. 7, the first uploading module 306 further includes:Second sending submodule, first Receiving submodule, the first judging submodule and the first display sub-module.
Second sending submodule, under the information state completed in the upload for receiving storage server feedback, Inquiry request is sent to the management server, wherein, the inquiry request is used to inquire whether the file destination block uploads Success.
First receiving submodule, for receiving the query result of the management server feedback.
First judging submodule, for when the query result shows to upload failure, judging the file destination block Number is uploaded whether more than the first preset times;Wherein, the query result is that the storage server is breathed out according to described first It is uncommon to be worth, it is determined after the good working condition of the inspection blocks of files to be uploaded.
First display sub-module, for being lost in the judging result of the judging submodule in the case of being, to show to upload The prompting lost.
The upload submodule is additionally operable in the case where the judging result of first judging submodule is no, according to First storage location uploads the file destination block.
Using the embodiment of the present invention, by being uploaded to file block, the time that each blocks of files uploads is shorter, file Block is to upload one by one, compared to the prior art, reduces the error probability in file upload procedure.
Corresponding with embodiment of the method shown in Fig. 8, the first uploading module further includes:Encrypt submodule.
Submodule is encrypted, for using the first key of Encryption Algorithm and self record, being carried out to the file destination block Encryption.
The upload submodule, is specifically used for:According to first storage location, the encrypted file destination is uploaded Block.
Using the embodiment of the present invention, by being uploaded to file block, the time that each blocks of files uploads is shorter, file Block is to upload one by one, compared to the prior art, reduces the error probability in file upload procedure.File is added It is close, it ensure that the safety of data in upload procedure.
Corresponding with embodiment of the method shown in Fig. 9, which further includes:Third sending module, the 4th receiving module and Second uploading module.
Third sending module sends for all uploading the rear of completion in the blocks of files divided to the management server Blocks of files, which uploads, completes confirmation request.
4th receiving module, for receiving the confirmation result of the management server feedback.
Second uploading module, after in the confirmation the result shows that there is the blocks of files omitted, by the text of the omission Part block is uploaded to first storage location;And it returns and performs the third sending module 310.
Using the embodiment of the present invention, by being uploaded to file block, the time that each blocks of files uploads is shorter, file Block is to upload one by one, compared to the prior art, reduces the error probability in file upload procedure.
Corresponding with embodiment of the method shown in Fig. 10, Figure 16 is the knot of file downloading device provided in an embodiment of the present invention Structure schematic diagram, the device include:4th sending module 401, the 5th receiving module 402, the second determining module the 403, the 5th are sent Module 404, the 6th receiving module 405 and download module 406.
4th sending module 401 is asked for the download to the transmission of the management server of cloud storage system for the first file It asks, wherein, first file includes at least one blocks of files.
5th receiving module 402, for receiving the third information of the management server feedback, wherein, the third letter Breath includes the file number of blocks of first file.
Second determining module 403 for being based on the file number of blocks, determines file to be downloaded block.
5th sending module 404, the third for sending the download file to be downloaded block to the management server please It asks, wherein third request includes the quantity of the file to be downloaded block.
6th receiving module 405, second for receiving the file to be downloaded block of the management server feedback deposits Storage space is put.
Download module 406, for downloading the file to be downloaded block from second storage location, in first file It does not download in the case of finishing, returns and perform second determining module 403, until first file download is completed.
Specifically, the third information includes:The current version information of first file.
Using the embodiment of the present invention, by being downloaded to file block, the time that each blocks of files is downloaded is shorter, compares In the prior art, reduce the error probability in file download process.
Corresponding with the embodiment of the method shown in Figure 11, which includes:First monitoring modular, the second display module, One judgment module, third display module, the 4th display module and first obtain module.
First monitoring modular refers to for monitoring whether to receive for the second displaying of the second file operation panel of displaying It enables;
Second display module, in the monitoring result of first monitoring modular in the case of being, displaying described the Two file operation panels;
First judgment module, for judging whether the management server of Successful login cloud storage system;
Third display module, for being successful in the judging result of first judgment module, apart from institute The second predeterminated position for stating the second file operation panel shows the second file management panel;
4th display module, in the case of in the judging result of first judgment module for failure, displaying second Panel is logged in, and logs in panel by described second and logs in the management server, after management server described in Successful login, The second file management panel is shown in the second predeterminated position apart from the second file operation panel;
First obtains module, is downloaded for obtaining according to the target that the displaying information of the second file management panel determines Path;
6th receiving module, is specifically used for:
It is sent by the second file management panel to the management server of cloud storage system under the first file Carry request;
Described download further includes in request:The target download path;
6th receiving module, is specifically used for:
Receive the second storage location that the management server is determined according to the target download path.
Using the embodiment of the present invention, by being downloaded to file block, the time that each blocks of files is downloaded is shorter, compares In the prior art, reduce the error probability in file download process.Meanwhile in embodiments of the present invention, it provides and is deposited for cloud Second operation panel of storage system is for user's operation, in this way without using the client for the cloud storage system being separately provided, letter The step of user downloads file is changed, has been the providing a great convenience property of file in user's operation cloud storage system, saves The time of user, improve user experience.
Corresponding with the embodiment of the method shown in Figure 12, described device further includes the 7th receiving module.
7th receiving module, for receiving the second cryptographic Hash of the management server feedback, wherein, second Hash It is worth and is:It is worth to by the Hash for calculating the data that each blocks of files stores in the file to be downloaded block.
The download module 406, including:Second determination sub-module, downloads submodule and second more at third sending submodule New submodule.
Second determination sub-module, for a file to be downloaded blocks of files in the block to be determined as the first blocks of files;
Third sending submodule, for the 4th request sent to the storage server.
Submodule is downloaded, for downloading first blocks of files to be downloaded from second storage location.
Second update submodule, in the case of being downloaded in the non-whole of file to be downloaded block, is never downloaded Select file block in blocks of files, and first blocks of files is updated to selected blocks of files, it returns and performs the third hair Send submodule.
Using the embodiment of the present invention, by being downloaded to file block, the time that each blocks of files is downloaded is shorter, compares In the prior art, reduce the error probability in file download process.
It is corresponding with the embodiment of the method shown in Figure 13, the download module 406, including:Second receiving submodule, third Determination sub-module, second judgment submodule and the second display sub-module.
Second receiving submodule, for receiving the second cryptographic Hash of the management server feedback, wherein, described second breathes out Uncommon value is:Calculate what the Hash of data stored in the blocks of files to be downloaded was worth to.
Third determination sub-module for the second cryptographic Hash fed back according to the management server, determines first text Whether part block is complete, wherein, second cryptographic Hash is that the management server is fed back when receiving the third request.
The second update submodule is additionally operable to definitive result in the third determination sub-module as in the case of being, In the case of being downloaded in the non-whole of file to be downloaded block, select file block in the blocks of files never downloaded, and by described in First blocks of files is updated to selected blocks of files, returns and performs the third sending submodule.
Second judgment submodule in the case of being no in the definitive result of the third determination sub-module, judges institute The download time of the first blocks of files is stated whether more than the second preset times.
Second display sub-module, for being more than in the case of in the judging result of the judging submodule, display is downloaded The prompting of failure.
The download submodule, be additionally operable to the second judgment submodule judging result be no more than in the case of, First blocks of files to be downloaded is downloaded from second storage location.
Using the embodiment of the present invention, by being downloaded to file block, the time that each blocks of files is downloaded is shorter, compares In the prior art, reduce the error probability in file download process.
Corresponding with the embodiment of the method shown in Figure 14, the download module further includes decryption submodule.
Submodule is decrypted, for the second key based on decipherment algorithm and self record, first blocks of files is carried out Decryption.
Using the embodiment of the present invention, by being uploaded to file block, the time that each blocks of files uploads is shorter, file Block is to upload one by one, compared to the prior art, reduces the error probability in file upload procedure.The blocks of files of download It is encryption blocks of files, ensures the safety of data in downloading process.
Figure 17 is the flow diagram of document transmission method provided in an embodiment of the present invention, and method includes:
S501:It monitors whether to receive and shows instruction for the third of third file operation panel.
In embodiments of the present invention, can be that the client that there is file to transmit is monitored, it is mentioned here that there is text The client of part transmission can be the client of proprietary file transfer function, or the client with file transmitting function End.The client of proprietary file transfer function can be only have with file transmission etc. correlation functions client, i.e., exclusively for The client that file is transmitted and customized, and the client with file transmitting function is in addition to file transmitting function, also having Other functions can be to editting function of file etc. illustratively.
Client with file transmitting function can be the PS with file transmitting function, further illustratively , which is mounted in Mac systems, and the client with file transmitting function can also be office software, video editing certainly Software, audio edited software, ocr software etc..In practical applications, the client with file transmitting function can pass through Plug-in unit with file transmitting function realizes the transmission of file.
In practical applications, third displaying instruction is for showing that the displaying of third file operation panel instructs, further , it may be said that it is the displaying instruction for showing file operation panel in client, specifically, the plug-in unit in client, which is worked as, monitors text The save file event of part opens file event etc., can be defaulted as receiving the first displaying instruction.Need what is illustrated It is that described client is the client with file transmitting function in embodiments of the present invention, is with text further The client of the plug-in unit of part transfer function.
S502:Show the third file operation panel.
After third displaying instruction is received, third file operation panel is shown in client, in practical applications, this Three file operation panels can be the page write by JavaScript language, be UI designs.Specifically, third file operation face Plate is the one of interface of plug-in unit, and specific methods of exhibiting is that JS interacts realization with OC, herein without repeating.It needs Bright, described plug-in unit is the plug-in unit with file transmitting function in embodiments of the present invention.
S503:It receives and instruction is transmitted by the file for the second file that the third file operation panel is sent.
In practical applications, connection is established between client and third file operation panel, client can receive logical Cross the transmission instruction of third file operation panel file.
S504:Judge whether the management server of Successful login cloud storage system.
When file transmits, client, which needs to establish with cloud storage system, to be connected, and further, is needed and cloud storage system Management server and storage server in system, which establish connection, could complete the transmission of file, it is therefore desirable to judge whether successfully to step on Record management server.
S505:Third file management panel is shown in the third predeterminated position apart from the third file operation panel.
After Successful login management server, then third is shown in the third predeterminated position apart from third file operation panel File management panel.Illustratively, the third file management panel in PS can be as shown in figure 18, in figure 18, third text Part management-plane is located at the right side of third file operation panel.Third predeterminated position mentioned here can also be that third file is grasped Make the positions such as the left side, upside, downside of panel, it is not limited in the embodiment of the present invention.It should be noted that in third file The cloud disk in " being opened from cloud disk ", " being saved in cloud disk " in operation panel is cloud storage system described in the embodiment of the present invention System.
S506:Show that third logs in panel, and logs in panel by the third and log in the management server, in success After logging in the management server, the second file management is shown in the third predeterminated position apart from the second file operation panel Panel.
In practical applications, if there is no Successful login management server, show that third logs in panel, illustratively, Third logs in panel can be with shown in Figure 19, and the log-on message input frame that can be logged in by third on panel inputs log-on message, After input, click " login " button and think to have sent logging request to management server.In practical applications, management clothes In the case of business device confirms that the log-on message is effective, effectively confirm to client feedback log-on message as a result, specifically, to pipe It is that JS calls OC that reason server, which sends logging request, is that OC calls JS, displaying third text when management service feedback acknowledgment result Part operation panel.
S507:The destination path determined according to the displaying information of the first file management panel is obtained, according to the mesh It marks path and file transmission instruction carries out the transmission of second file.
After third file management panel is shown, third file management panel selection target path, client can be passed through It can be obtained by the displaying information acquisition destination path of the first file management panel specifically, can be called by JS and OC at end Take target store path.It is transmitted according to destination path and file transmission instruction.File transmission mentioned here can be text The upload or download of part, specifically, upload or the method for down loading of file, it can be as shown in the above or other Upload or method for down loading, herein without limiting.
It it should be noted that please by the cancellation of the first login panel or the transmission of the first file management panel receiving It asks, then can close corresponding window, illustratively, if receiving the cancellation request for logging in panel by third and sending, close The third logs in panel.
In a preferred embodiment of the invention, in the displaying obtained according to the first file management panel The destination path that information determines after carrying out file transmission according to the destination path and file transmission instruction, further includes:
Pass through the transmission progress of the second file described in the third file management panels show.
In practical applications, after file is transmitted, can text be marked by third file management Display panel second The transmission progress of part, transmission progress can be shown in the form of percentage, can also be shown with the file size transmitted, specifically , display mode is the prior art, herein without repeating, with reference to the sudden peal of thunder mode that progress is shown when downloading file.
In a preferred embodiment of the invention, the method further includes:
Second object is sent to the management server by the third file management panel and creates request;
Receive the result information that request is created for second object of the management server feedback;
The second newly-built object is shown in the third file management panel according to the result information.
In practical applications, it can be that file creates request that the second object mentioned here, which creates request, illustratively, Can the second object be sent by " new folder " button in Figure 18 and create request, the second object creates ask in can be with It carries by information such as the second newly-built object storage location, titles.The second newly-built object of second file management Display panel, Can be the storage location in the second object, display carries the file of the second object oriented.
In a preferred embodiment of the invention, method can further include:
It receives and second logs off request by the way that the third file management panel is sent;
It logs off request according to described second, disconnects the connection between the management server.
Illustratively, can be logged off request by the transmission of " exiting " button in Figure 18 second, be taken when disconnecting management Connection between business device, then show third file management panel as shown in figure 19.
Using the embodiment of the present invention, the third operation panel for cloud storage system is provided for user's operation, in this way Client without using the cloud storage system being separately provided simplifies the step of user transmits file, is deposited for user's operation cloud Providing a great convenience property of file in storage system, saves the time of user, improves user experience.
Corresponding with the embodiment of the method shown in Figure 17, Figure 20 is the knot of file transfer means provided in an embodiment of the present invention Structure schematic diagram, the device can include:Second monitoring modular 601, the 5th display module 602, the tenth receiving module 603, second Judgment module 604, the 6th display module 605, the 7th display module 606 and transmission module 607.
Second monitoring modular 601 shows instruction for monitoring whether to receive for the third of third file operation panel;
5th display module 602, in the monitoring result of second monitoring modular in the case of being, described in displaying Third file operation panel;
Tenth receiving module 603 is directed to the second file for receiving by what the third file operation panel was sent File transmission instruction;
Second judgment module 604, for judging whether the management server of Successful login cloud storage system;
6th display module 605, for be in the judging result of second judgment module 604 it is successful, Third predeterminated position displaying third file management panel apart from the third file operation panel;
7th display module 606, in the case of in the judging result of second judgment module 604 for failure, exhibition Show that third logs in panel, and logs in panel by the third and log in the management server, clothes are being managed described in Successful login It is engaged in after device, the second file management panel is shown in the third predeterminated position apart from the second file operation panel;
Transmission module 607, for obtaining the destination path determined according to the displaying information of the first file management panel, The transmission of second file is carried out according to the destination path and file transmission instruction.
In a preferred embodiment of the invention, described device can also include:8th display module is (in figure not It shows).
8th display module, for passing through the transmission progress of the second file described in the third file management panels show.
In a preferred embodiment of the invention, described device can also include:7th sending module, the 11st Receiving module and the second display module (not shown).
7th sending module, for sending the second object to the management server by the third file management panel Newly-built request;
11st receiving module creates request for receive management server feedback for second object Result information;
Second display module, for showing newly-built in the third file management panel according to the result information Two objects.
In a preferred embodiment of the invention, described device can also include:12nd receiving module and second Disconnect module (not shown).
12nd receiving module second is logged off and is asked by the way that the third file management panel is sent for receiving It asks;
Second disconnects module, for logging off request according to described second, between disconnection and the management server Connection.
Using the embodiment of the present invention, the third operation panel for cloud storage system is provided for user's operation, in this way Client without using the cloud storage system being separately provided simplifies the step of user transmits file, is deposited for user's operation cloud Providing a great convenience property of file in storage system, saves the time of user, improves user experience.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any this practical relationship or sequence.Moreover, term " comprising ", "comprising" or its any other variant are intended to Non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those Element, but also including other elements that are not explicitly listed or further include as this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that Also there are other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is described using relevant mode, identical similar portion between each embodiment Point just to refer each other, and the highlights of each of the examples are difference from other examples.Especially for device reality For applying example, since it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method Part explanation.
One of ordinary skill in the art will appreciate that all or part of step in realization above method embodiment is can It is completed with instructing relevant hardware by program, the program can be stored in computer read/write memory medium, The storage medium designated herein obtained, such as:ROM/RAM, magnetic disc, CD etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (44)

1. a kind of file uploading method, which is characterized in that the method includes:
Receive the upload request for file destination;
The file destination is divided into blocks of files according to default segmentation rule;
Blocks of files to be uploaded is determined in the blocks of files divided;
The first request for uploading the blocks of files to be uploaded is sent to the management server of cloud storage system, wherein, described first Request includes the quantity of the blocks of files to be uploaded;
The first storage location of the management server feedback is received, wherein, first storage location is the text to be uploaded Storage location of the part block in the storage server of cloud storage system;
According to first storage location, the blocks of files to be uploaded is uploaded;
In the case where the blocks of files divided does not upload all, select file block in the blocks of files never uploaded is treated described It uploads blocks of files and is updated to selected blocks of files, and return and perform the management server transmission upload to cloud storage system It the step of first request of the blocks of files to be uploaded, is completed until the blocks of files divided all uploads.
2. according to the method described in claim 1, it is characterized in that, it is described receive for file destination upload request it Afterwards, it is described by the file destination according to it is default segmentation rule be divided into blocks of files before, further include:
The acquisition that the identification information for obtaining file destination is sent to the management server is asked;
The second information of the management server feedback is received, wherein second information includes the mark of the file destination Information;
First request further includes:The identification information of the file destination;
First storage location is that the management server is determined according to the identification information of the file destination.
3. according to the method described in claim 2, it is characterized in that, described according to first storage location, treated described in upload Blocks of files is uploaded, including:
A file blocks of files in the block to be uploaded is determined as file destination block;
The second request is sent to the storage server;
According to first storage location, the file destination block is uploaded;
In the case where the blocks of files to be uploaded does not upload all, select file block in the blocks of files never uploaded, and by institute It states file destination block and is updated to selected blocks of files, return and perform the step that the second request is sent to the storage server Suddenly, until the blocks of files to be uploaded is all uploaded and completed.
4. according to the method described in claim 3, it is characterized in that, second request includes:In the blocks of files to be uploaded First cryptographic Hash of each blocks of files, wherein, first cryptographic Hash is:By calculating each file in the blocks of files to be uploaded What the Hash of the data of block storage was worth to;
Described according to first storage location, after uploading the file destination block, further include:
Under the information state completed in the upload for receiving the storage server feedback, send and inquire to the management server Request, wherein, the inquiry request is used to inquire whether the file destination block uploads success;
Receive the query result of the management server feedback;
When the query result shows to upload failure, judge whether the upload number of the file destination block is default more than first Number;Wherein, the query result is the storage server according to first cryptographic Hash, the inspection blocks of files to be uploaded Good working condition after determine;
If so, display uploads the prompting of failure;
The step of being performed if not, returning according to first storage location, uploading the file destination block.
5. according to the method described in claim 4, it is characterized in that, described according to first storage location, described in upload Before file destination block, further include:
Using Encryption Algorithm and the first key of self record, the file destination block is encrypted;
It is described that the blocks of files to be uploaded is uploaded according to first storage location, including:
According to first storage location, the encrypted file destination block is uploaded.
6. according to the method described in claim 2, it is characterized in that, after the blocks of files divided all is uploaded and is completed, institute The method of stating further includes:
Blocks of files, which is sent, to the management server uploads completion confirmation request;
Receive the confirmation result of the management server feedback;
Confirm described the result shows that after in the presence of the blocks of files omitted, the blocks of files of the omission is uploaded to first storage Position;And return to the step of performing the transmission blocks of files upload completion confirmation request to the management server.
7. according to the method described in claim 2, it is characterized in that, second information further includes:The file destination is worked as Preceding version information.
8. according to the method described in claim 1, it is characterized in that, it is described receive for file destination upload request, including:
It monitors whether to receive the first displaying instruction for showing the first file operation panel;
If it is, displaying the first file operation panel;
Receive the upload request for file destination sent by the first file operation panel.
9. according to the method described in claim 8, receiving that the first file operation panel sends for file destination Upload request after, further include:
Judge whether the management server of Successful login cloud storage system;
If success, the first file management panel is shown in the first predeterminated position apart from the first file operation panel;
If failure, displaying first logs in panel, and logs in panel by described first and log in the management server, is successfully stepping on After recording the management server, the first file management face is shown in the first predeterminated position apart from the first file operation panel Plate;
Obtain the target store path determined according to the displaying information of the first file management panel;
It is further included in first request:The target store path;
First storage location for receiving the management server feedback, including:
Receive the first storage location that the management server is determined according to the target store path.
10. according to the method described in claim 9, it is characterized in that, according to first storage location, treated described in upload After transmitting file block, further include:
Pass through the upload progress of file destination described in the first file management panels show.
11. according to the method described in claim 9, it is characterized in that, the method further includes:
First object is sent to the management server by the first file management panel and creates request;
Receive the result information that request is created for first object of the management server feedback;
The first newly-built object is shown in the first file management panel according to the result information.
12. according to the method described in claim 9, it is characterized in that, the method further includes:
It receives and first logs off request by the way that the first file management panel is sent;
It logs off request according to described first, disconnects the connection between the management server.
13. a kind of document down loading method, which is characterized in that the method includes:
The download request for the first file is sent to the management server of cloud storage system, wherein, first file includes At least one blocks of files;
The third information of the management server feedback is received, wherein, the third information includes the text of first file Part number of blocks;
Based on the file number of blocks, file to be downloaded block is determined;
The third request for downloading the file to be downloaded block is sent to the management server, wherein third request includes institute State the quantity of file to be downloaded block;
Receive the second storage location of the file to be downloaded block of the management server feedback;
The file to be downloaded block is downloaded from second storage location, in the case where first file is not downloaded and is finished, The step of returning and perform the block number based on first file, determining file to be downloaded, until first file download It completes.
14. according to the method for claim 13, which is characterized in that described to be treated down from described in second storage location download Blocks of files is carried, including:
A file to be downloaded blocks of files in the block is determined as the first blocks of files;
The 4th request sent to the storage server;
First blocks of files to be downloaded is downloaded from second storage location;
In the case of being downloaded in the non-whole of file to be downloaded block, select file block in the blocks of files never downloaded, and will First blocks of files is updated to selected blocks of files, returns to the step of the 4th request for performing and being sent to the storage server Suddenly, until the file to be downloaded block all downloads completion.
15. according to the method for claim 14, which is characterized in that sent described in download to the management server described After the third request of file to be downloaded block, further include:
The second cryptographic Hash of the management server feedback is received, wherein, second cryptographic Hash is:By being treated down described in calculating The Hash of the data of each blocks of files storage is worth in load blocks of files;
Described after second storage location downloads first blocks of files to be downloaded, further include:
According to the second cryptographic Hash that the management server is fed back, determine whether first blocks of files is complete, wherein, described the Two cryptographic Hash are that the management server is fed back when receiving the third request;
It is performed in the non-whole of file to be downloaded block in the case of download, in the blocks of files never downloaded if so, returning Select file block, and the step of first blocks of files is updated to selected blocks of files;
If not, judge the download time of first blocks of files whether more than the second preset times;
If it does, the prompting of display failed download;
If be no more than, return perform from second storage location download first blocks of files to be downloaded the step of.
16. according to the method for claim 14, which is characterized in that treated described from described in second storage location download After downloading first blocks of files, further include:
The second key based on decipherment algorithm and self record, is decrypted first blocks of files.
17. according to the method for claim 13, which is characterized in that the third information further includes:First file Current version information.
18. according to the method for claim 13, which is characterized in that sent in the management server to cloud storage system Before the download request of the first file, the method further includes:
It monitors whether to receive the second displaying instruction for showing the second file operation panel;
If it is, displaying the second file operation panel;
Judge whether the management server of Successful login cloud storage system;
If success, the second file management panel is shown in the second predeterminated position apart from the second file operation panel;
If failure, displaying second logs in panel, and logs in panel by described second and log in the management server, is successfully stepping on After recording the management server, the second file management face is shown in the first predeterminated position apart from the second file operation panel Plate;
Obtain the target download path determined according to the displaying information of the second file management panel;
The management server to cloud storage system sends the download request for the first file, including:
It please for the download of the first file by management server transmission of the second file management panel to cloud storage system It asks;
Described download further includes in request:The target download path;
Second storage location of the file to be downloaded block for receiving the management server feedback, including:
Receive the second storage location that the management server is determined according to the target download path.
19. a kind of file uploads device, which is characterized in that described device includes:
First receiving module, for receiving the upload request for file destination;
Divide module, for the file destination to be divided into blocks of files according to default segmentation rule;
First determining module, for determining blocks of files to be uploaded in the blocks of files divided;
First sending module, please for sending the first of the upload blocks of files to be uploaded to the management server of cloud storage system It asks, wherein, first request includes the quantity of the blocks of files to be uploaded;
Second receiving module, for receiving the first storage location of the management server feedback, wherein, the first storage position It is set to storage location of the blocks of files to be uploaded in the storage server of cloud storage system;
First uploading module, for the blocks of files to be uploaded to be uploaded to first storage location;
Update module in the case of not uploaded all in the blocks of files divided, selects text in the blocks of files never uploaded The blocks of files to be uploaded is updated to selected blocks of files by part block, and is returned and performed first sending module, until point The blocks of files cut all is uploaded and is completed.
20. device according to claim 19, which is characterized in that described device further includes:
Second sending module is asked for sending the acquisition for the identification information for obtaining file destination to the management server;
Third receiving module, for receiving the second information of the management server feedback, wherein second information includes The identification information of the file destination;
First request further includes:The identification information of the file destination;
First storage location is that the management server is determined according to the identification information of the file destination.
21. device according to claim 20, which is characterized in that first uploading module, including:
First determination sub-module, for a file blocks of files in the block to be uploaded to be determined as file destination block;
First sending submodule, for sending the second request to the storage server;
Submodule is uploaded, for according to first storage location, uploading the file destination block;
First update submodule, in the case of not uploaded all in the blocks of files to be uploaded, the blocks of files that never uploads Middle select file block, and the file destination block is updated to selected blocks of files, it returns and performs the first transmission submodule Block, until the blocks of files to be uploaded is all uploaded and completed.
22. device according to claim 21, which is characterized in that second request is included in the blocks of files to be uploaded First cryptographic Hash of each blocks of files, wherein, first cryptographic Hash is:By calculating each file in the blocks of files to be uploaded What the Hash of the data of block storage was worth to;
First uploading module, further includes:
Second sending submodule, under the information state completed in the upload for receiving storage server feedback, to institute It states management server and sends inquiry request, wherein, the inquiry request is used to inquire whether the file destination block uploads success;
First receiving submodule, for receiving the query result of the management server feedback;
First judging submodule, for when the query result shows to upload failure, judging the upload of the file destination block Whether number is more than the first preset times;Wherein, the query result is the storage server according to first cryptographic Hash, Check what is determined after the good working condition of the blocks of files to be uploaded;
First display sub-module, in the case where the judging result of the judging submodule is to be, display to upload failure Prompting;
The upload submodule is additionally operable in the case where the judging result of the judging submodule is no, according to described first Storage location uploads the file destination block.
23. device according to claim 22, which is characterized in that the uploading module further includes:
Submodule is encrypted, for using the first key of Encryption Algorithm and self record, the file destination block to be encrypted;
The upload submodule, is specifically used for:
According to first storage location, the encrypted file destination block is uploaded.
24. device according to claim 20, which is characterized in that described device further includes:
Third sending module sends file for all uploading the rear of completion in the blocks of files divided to the management server Block, which uploads, completes confirmation request;
4th receiving module, for receiving the confirmation result of the management server feedback;
Second uploading module, after in the confirmation the result shows that there is the blocks of files omitted, by the blocks of files of the omission It is uploaded to first storage location;And it returns and performs the third sending module.
25. device according to claim 20, which is characterized in that second information includes:The file destination is worked as Preceding version information.
26. device according to claim 19, which is characterized in that first receiving module, including:
First monitoring submodule, for monitoring whether to receive the first displaying instruction for showing the first file operation panel;
First displaying submodule, in the case where the monitoring result of the first monitoring submodule is to be, displaying described first to be literary Part operation panel;
First receiving submodule, please by the upload for file destination that the first file operation panel is sent for receiving It asks.
27. device according to claim 26, first receiving module, further include:
First judging submodule, for judging whether the management server of Successful login cloud storage system;
Second displaying submodule, for being successful in the judging result of first judging submodule, apart from institute The first predeterminated position for stating the first file operation panel shows the first file management panel;
Third shows submodule, in the case of in the judging result of first judging submodule for failure, displaying first Panel is logged in, and logs in panel by described first and logs in the management server, after management server described in Successful login, The first file management panel is shown in the first predeterminated position apart from the first file operation panel;
First obtains submodule, and road is stored according to the target that the displaying information of the first file management panel determines for obtaining Diameter;
It is further included in first request:The target store path;
Second receiving module, is specifically used for:
Receive the first storage location that the management server is determined according to the target store path.
28. device according to claim 27, which is characterized in that described device further includes:
First display module, for passing through the upload progress of file destination described in the first file management panels show.
29. device according to claim 27, which is characterized in that described device further includes:
6th sending module creates request for sending the first object to the management server;
8th receiving module, for receiving the result letter that request is created for first object of the management server feedback Breath;
First display module, for showing newly-built first in the first file management panel according to the result information Object.
30. device according to claim 27, which is characterized in that described device further includes:
9th receiving module first is logged off request for receiving by the way that the first file management panel is sent;
First disconnects module, for logging off request according to described first, the connection between disconnection and the management server.
31. a kind of file downloading device, which is characterized in that described device includes:
4th sending module, for sending the download request for the first file to the management server of cloud storage system, wherein, First file includes at least one blocks of files;
5th receiving module, for receiving the third information of the management server feedback, wherein, the third information includes The file number of blocks of first file;
Second determining module for being based on the file number of blocks, determines file to be downloaded block;
5th sending module, for sending the third request for downloading the file to be downloaded block to the management server, wherein The third request includes the quantity of the file to be downloaded block;
6th receiving module, for receiving the second storage location of the file to be downloaded block of the management server feedback;
Download module for downloading the file to be downloaded block from second storage location, is not downloaded in first file It in the case of finishing, returns and performs second determining module, until first file download is completed.
32. device according to claim 31, which is characterized in that the download module, including:
Second determination sub-module, for a file to be downloaded blocks of files in the block to be determined as the first blocks of files;
Third sending submodule, for the 4th request sent to the storage server;
Submodule is downloaded, for downloading first blocks of files to be downloaded from second storage location;
Second update submodule, in the case of being downloaded in the non-whole of file to be downloaded block, the file never downloaded Select file block in block, and first blocks of files is updated to selected blocks of files, it returns and performs third transmission Module.
33. device according to claim 32, which is characterized in that described device further includes:
7th receiving module, for receiving the second cryptographic Hash of the management server feedback, wherein, second cryptographic Hash For:It is worth to by the Hash for calculating the data that each blocks of files stores in the file to be downloaded block;
The download module, further includes:
Third determination sub-module for the second cryptographic Hash fed back according to the management server, determines first blocks of files It is whether complete, wherein, second cryptographic Hash is that the management server is fed back when receiving the third request;
The second update submodule, the definitive result being additionally operable in the third determination sub-module are in the case of being, in institute State file to be downloaded block all it is upper download in the case of, select file block in the blocks of files never downloaded, and by described first Blocks of files is updated to selected blocks of files, returns and performs the third sending submodule;
Second judgment submodule, in the definitive result of the described second update submodule in the case of no, to judge described the Whether the download time of one blocks of files is more than the second preset times;
Second display sub-module, for being more than in the case of in the judging result of the second judgment submodule, display is downloaded The prompting of failure;
The download submodule, the judging result being additionally operable in the second judgment submodule are not more than in the case of, from institute It states the second storage location and downloads first blocks of files to be downloaded.
34. device according to claim 32, which is characterized in that the download module further includes:
Submodule is decrypted, for the second key based on decipherment algorithm and self record, first blocks of files is decrypted.
35. device according to claim 31, which is characterized in that the third information includes:First file is worked as Preceding version information.
36. device according to claim 31, which is characterized in that described device further includes:
First monitoring modular, for monitoring whether to receive the second displaying instruction for showing the second file operation panel;
Second display module, in the case where the monitoring result of first monitoring modular is to be, displaying described second to be literary Part operation panel;
First judgment module, for judging whether the management server of Successful login cloud storage system;
Third display module, for being successful in the judging result of first judgment module, apart from described Second predeterminated position of two file operation panels shows the second file management panel;
4th display module, in the case of in the judging result of first judgment module for failure, displaying second logs in Panel, and log in panel by described second and log in the management server, after management server described in Successful login, away from The second predeterminated position from the second file operation panel shows the second file management panel;
First obtains module, and road is downloaded according to the target that the displaying information of the second file management panel determines for obtaining Diameter;
6th receiving module, is specifically used for:
It please for the download of the first file by management server transmission of the second file management panel to cloud storage system It asks;
Described download further includes in request:The target download path;
6th receiving module, is specifically used for:
Receive the second storage location that the management server is determined according to the target download path.
37. a kind of document transmission method, which is characterized in that the method includes:
It monitors whether to receive and shows instruction for the third of third file operation panel;
If it is, show the third file operation panel;
It receives and instruction is transmitted by the file for the second file that the third file operation panel is sent;
Judge whether the management server of Successful login cloud storage system;
If success, third file management panel is shown in the third predeterminated position apart from the third file operation panel;
If failure, displaying third logs in panel, and logs in panel by the third and log in the management server, is successfully stepping on After recording the management server, the second file management face is shown in the third predeterminated position apart from the second file operation panel Plate;
The destination path determined according to the displaying information of the first file management panel is obtained, according to the destination path and institute State the transmission that file transmission instruction carries out second file.
38. according to the method for claim 37, which is characterized in that in the acquisition according to the first file management panel The destination path that determines of displaying information, after carrying out file transmission according to the destination path and file transmission instruction, It further includes:
Pass through the transmission progress of the second file described in the third file management panels show.
39. according to the method for claim 37, which is characterized in that the method further includes:
Second object is sent to the management server by the third file management panel and creates request;
Receive the result information that request is created for second object of the management server feedback;
The second newly-built object is shown in the third file management panel according to the result information.
40. according to the method for claim 37, which is characterized in that the method further includes:
It receives and second logs off request by the way that the third file management panel is sent;
It logs off request according to described second, disconnects the connection between the management server.
41. a kind of file transfer means, which is characterized in that described device includes:
Second monitoring modular shows instruction for monitoring whether to receive for the third of third file operation panel;
5th display module, in the case where the monitoring result of second monitoring modular is to be, showing the third text Part operation panel;
Tenth receiving module is transmitted for receiving by the file for the second file that the third file operation panel is sent Instruction;
Second judgment module, for judging whether the management server of Successful login cloud storage system;
6th display module, for being successful in the judging result of second judgment module, apart from described The third predeterminated position displaying third file management panel of three file operation panels;
7th display module, in the case of in the judging result of second judgment module for failure, displaying third logs in Panel, and panel is logged in by the third and logs in the management server, after management server described in Successful login, away from Third predeterminated position from the second file operation panel shows the second file management panel;
Transmission module, for obtaining the destination path determined according to the displaying information of the first file management panel, according to institute It states destination path and file transmission instruction carries out the transmission of second file.
42. device according to claim 41, which is characterized in that described device further includes:
8th display module, for passing through the transmission progress of the second file described in the third file management panels show.
43. device according to claim 41, which is characterized in that described device further includes:
7th sending module creates for sending the second object to the management server by the third file management panel Request;
11st receiving module, for receiving the result that request is created for second object of the management server feedback Information;
Second display module, for showing newly-built the second couple in the third file management panel according to the result information As.
44. the device according to right wants 41, which is characterized in that described device further includes:
12nd receiving module second is logged off request for receiving by the way that the third file management panel is sent;
Second disconnects module, for logging off request according to described second, the connection between disconnection and the management server.
CN201611151740.0A 2016-12-14 2016-12-14 File uploading, downloading and transmitting method and device Active CN108234539B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611151740.0A CN108234539B (en) 2016-12-14 2016-12-14 File uploading, downloading and transmitting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611151740.0A CN108234539B (en) 2016-12-14 2016-12-14 File uploading, downloading and transmitting method and device

Publications (2)

Publication Number Publication Date
CN108234539A true CN108234539A (en) 2018-06-29
CN108234539B CN108234539B (en) 2022-06-03

Family

ID=62638309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611151740.0A Active CN108234539B (en) 2016-12-14 2016-12-14 File uploading, downloading and transmitting method and device

Country Status (1)

Country Link
CN (1) CN108234539B (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109241002A (en) * 2018-09-10 2019-01-18 阿里巴巴集团控股有限公司 file uploading method, device and equipment
CN109922142A (en) * 2019-02-21 2019-06-21 阿里巴巴集团控股有限公司 A kind of document down loading method, apparatus and system
CN110247986A (en) * 2019-06-28 2019-09-17 北京奇艺世纪科技有限公司 A kind of document transmission method, device and electronic equipment
CN110336871A (en) * 2019-07-01 2019-10-15 江苏满运软件科技有限公司 A kind of document handling method, device, storage medium and electronic equipment
CN110610103A (en) * 2019-09-24 2019-12-24 成都卫士通信息安全技术有限公司 Method and device for verifying confidential document
CN110784524A (en) * 2019-10-14 2020-02-11 广州微算互联信息技术有限公司 Cloud mobile phone file uploading keep-alive method, device and system
CN111147332A (en) * 2019-12-29 2020-05-12 北京浪潮数据技术有限公司 Method, system and related device for determining uploading progress of cloud backup of storage system
CN111159291A (en) * 2019-12-19 2020-05-15 视联动力信息技术股份有限公司 Progress bar display method and device, terminal equipment and storage medium
CN111193785A (en) * 2019-12-20 2020-05-22 北京淇瑀信息科技有限公司 File cutting transmission method and device and electronic equipment
CN111610970A (en) * 2019-02-22 2020-09-01 广东真才企链信息科技有限公司 Method for asynchronously submitting large data scale list package
CN112468511A (en) * 2020-12-11 2021-03-09 建信金融科技有限责任公司 File transmission method and device
CN112822260A (en) * 2020-12-31 2021-05-18 北京天融信网络安全技术有限公司 File transmission method and device, electronic equipment and storage medium
CN112883427A (en) * 2019-11-29 2021-06-01 航天信息股份有限公司 Method and device for detecting integrity of file
CN113271343A (en) * 2021-04-28 2021-08-17 华录光存储研究院(大连)有限公司 Data downloading and uploading method and electronic equipment
CN114338646A (en) * 2021-11-29 2022-04-12 王建冬 File interactive transmission method, device, equipment and storage medium
CN114338653A (en) * 2021-12-29 2022-04-12 中国电信股份有限公司 File breakpoint resuming method and device
CN114401261A (en) * 2021-12-29 2022-04-26 中国电信股份有限公司 File downloading method and device
CN114500514A (en) * 2022-02-14 2022-05-13 京东科技信息技术有限公司 File transmission method and device, electronic equipment and computer readable storage medium
CN114866536A (en) * 2022-05-31 2022-08-05 北京奕斯伟计算技术有限公司 File uploading method and WEB front end

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102739689A (en) * 2012-07-16 2012-10-17 四川师范大学 File data transmission device and method used for cloud storage system
EP2587769A1 (en) * 2011-10-28 2013-05-01 Samsung SDS Co. Ltd. Apparatus and method for transmitting a plurality of files
CN103685332A (en) * 2012-08-31 2014-03-26 腾讯科技(深圳)有限公司 File transfer method, client, server and system
CN103731451A (en) * 2012-10-12 2014-04-16 腾讯科技(深圳)有限公司 Method and system for uploading file
CN103973421A (en) * 2013-02-06 2014-08-06 腾讯科技(深圳)有限公司 File transmitting method and device
CN104468843A (en) * 2014-12-31 2015-03-25 浪潮软件股份有限公司 File uploading method and device
CN104539739A (en) * 2015-01-26 2015-04-22 浙江大学 System, method and device for uploading files
CN104580395A (en) * 2014-12-22 2015-04-29 西安电子科技大学 Multi-cloud cooperative storage middleware system based on existing cloud storage platform
CN105025053A (en) * 2014-04-24 2015-11-04 苏宁云商集团股份有限公司 Distributed file upload method based on cloud storage technology and system
CN105227610A (en) * 2014-06-30 2016-01-06 北京金山安全软件有限公司 File uploading and storing method and device
CN105338090A (en) * 2015-11-12 2016-02-17 浪潮软件集团有限公司 WebSocket-based breakpoint continuous transmission method and device
US20160057229A1 (en) * 2011-03-08 2016-02-25 Rackspace Us Inc Appending to files via server-side chunking and manifest manipulation
CN105472035A (en) * 2016-01-04 2016-04-06 百度在线网络技术(北京)有限公司 File transmission method and device
CN105491132A (en) * 2015-12-11 2016-04-13 北京元心科技有限公司 File server, terminal and file subpackage transmission method
CN105847139A (en) * 2016-03-25 2016-08-10 乐视控股(北京)有限公司 Data transmission method, apparatus and system
CN105872036A (en) * 2016-03-28 2016-08-17 联想(北京)有限公司 Data uploading, downloading method, electronic equipment and server
CN105872102A (en) * 2016-06-06 2016-08-17 武汉理工大学 File uploading and downloading method
CN105893511A (en) * 2016-03-30 2016-08-24 电子科技大学 Method for data copy trace retention through agent cloud

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160057229A1 (en) * 2011-03-08 2016-02-25 Rackspace Us Inc Appending to files via server-side chunking and manifest manipulation
EP2587769A1 (en) * 2011-10-28 2013-05-01 Samsung SDS Co. Ltd. Apparatus and method for transmitting a plurality of files
CN102739689A (en) * 2012-07-16 2012-10-17 四川师范大学 File data transmission device and method used for cloud storage system
CN103685332A (en) * 2012-08-31 2014-03-26 腾讯科技(深圳)有限公司 File transfer method, client, server and system
CN103731451A (en) * 2012-10-12 2014-04-16 腾讯科技(深圳)有限公司 Method and system for uploading file
CN103973421A (en) * 2013-02-06 2014-08-06 腾讯科技(深圳)有限公司 File transmitting method and device
CN105025053A (en) * 2014-04-24 2015-11-04 苏宁云商集团股份有限公司 Distributed file upload method based on cloud storage technology and system
CN105227610A (en) * 2014-06-30 2016-01-06 北京金山安全软件有限公司 File uploading and storing method and device
CN104580395A (en) * 2014-12-22 2015-04-29 西安电子科技大学 Multi-cloud cooperative storage middleware system based on existing cloud storage platform
CN104468843A (en) * 2014-12-31 2015-03-25 浪潮软件股份有限公司 File uploading method and device
CN104539739A (en) * 2015-01-26 2015-04-22 浙江大学 System, method and device for uploading files
CN105338090A (en) * 2015-11-12 2016-02-17 浪潮软件集团有限公司 WebSocket-based breakpoint continuous transmission method and device
CN105491132A (en) * 2015-12-11 2016-04-13 北京元心科技有限公司 File server, terminal and file subpackage transmission method
CN105472035A (en) * 2016-01-04 2016-04-06 百度在线网络技术(北京)有限公司 File transmission method and device
CN105847139A (en) * 2016-03-25 2016-08-10 乐视控股(北京)有限公司 Data transmission method, apparatus and system
CN105872036A (en) * 2016-03-28 2016-08-17 联想(北京)有限公司 Data uploading, downloading method, electronic equipment and server
CN105893511A (en) * 2016-03-30 2016-08-24 电子科技大学 Method for data copy trace retention through agent cloud
CN105872102A (en) * 2016-06-06 2016-08-17 武汉理工大学 File uploading and downloading method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
丁扬: "HDFS分布式文件系统数据放置均衡研究", 《中国优秀硕士学位论文全文数据库(电子期刊)信息科技辑》 *
宗旋: "多云协同存储架构及方法研究", 《中国优秀硕士学位论文全文数据库(电子期刊)信息科技辑》 *
郭圣昌: "基于HDFS的云计算安全技术研究与实现", 《中国优秀硕士学位论文全文数据库(电子期刊)信息科技辑》 *

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109241002A (en) * 2018-09-10 2019-01-18 阿里巴巴集团控股有限公司 file uploading method, device and equipment
CN109922142A (en) * 2019-02-21 2019-06-21 阿里巴巴集团控股有限公司 A kind of document down loading method, apparatus and system
CN111610970A (en) * 2019-02-22 2020-09-01 广东真才企链信息科技有限公司 Method for asynchronously submitting large data scale list package
CN110247986A (en) * 2019-06-28 2019-09-17 北京奇艺世纪科技有限公司 A kind of document transmission method, device and electronic equipment
CN110336871A (en) * 2019-07-01 2019-10-15 江苏满运软件科技有限公司 A kind of document handling method, device, storage medium and electronic equipment
CN110610103A (en) * 2019-09-24 2019-12-24 成都卫士通信息安全技术有限公司 Method and device for verifying confidential document
CN110784524A (en) * 2019-10-14 2020-02-11 广州微算互联信息技术有限公司 Cloud mobile phone file uploading keep-alive method, device and system
CN112883427A (en) * 2019-11-29 2021-06-01 航天信息股份有限公司 Method and device for detecting integrity of file
CN111159291A (en) * 2019-12-19 2020-05-15 视联动力信息技术股份有限公司 Progress bar display method and device, terminal equipment and storage medium
CN111193785A (en) * 2019-12-20 2020-05-22 北京淇瑀信息科技有限公司 File cutting transmission method and device and electronic equipment
CN111147332A (en) * 2019-12-29 2020-05-12 北京浪潮数据技术有限公司 Method, system and related device for determining uploading progress of cloud backup of storage system
CN111147332B (en) * 2019-12-29 2022-04-29 北京浪潮数据技术有限公司 Method, system and related device for determining uploading progress of cloud backup of storage system
CN112468511A (en) * 2020-12-11 2021-03-09 建信金融科技有限责任公司 File transmission method and device
CN112468511B (en) * 2020-12-11 2023-02-03 建信金融科技有限责任公司 File transmission method and device
CN112822260A (en) * 2020-12-31 2021-05-18 北京天融信网络安全技术有限公司 File transmission method and device, electronic equipment and storage medium
CN113271343A (en) * 2021-04-28 2021-08-17 华录光存储研究院(大连)有限公司 Data downloading and uploading method and electronic equipment
CN114338646A (en) * 2021-11-29 2022-04-12 王建冬 File interactive transmission method, device, equipment and storage medium
CN114338653A (en) * 2021-12-29 2022-04-12 中国电信股份有限公司 File breakpoint resuming method and device
CN114401261A (en) * 2021-12-29 2022-04-26 中国电信股份有限公司 File downloading method and device
CN114500514A (en) * 2022-02-14 2022-05-13 京东科技信息技术有限公司 File transmission method and device, electronic equipment and computer readable storage medium
CN114500514B (en) * 2022-02-14 2023-12-12 京东科技信息技术有限公司 File transmission method and device for cloud storage, electronic equipment and storage medium
CN114866536A (en) * 2022-05-31 2022-08-05 北京奕斯伟计算技术有限公司 File uploading method and WEB front end

Also Published As

Publication number Publication date
CN108234539B (en) 2022-06-03

Similar Documents

Publication Publication Date Title
CN108234539A (en) A kind of file upload, download, transmission method and device
US10447560B2 (en) Data leakage protection in cloud applications
US20210006404A1 (en) Systems and methods for accessing and controlling media stored remotely
CN103051600B (en) document access control method and system
CN104657637B (en) Document information insertion, method for tracing and system and proxy service device
US20060069687A1 (en) Session continuity for providing content to a remote device
US20120226823A1 (en) Document distribution system and method
EP1298886A2 (en) Information providing server, information providing system, and control method for terminal apparatus
CN101552669A (en) Method and system of data transmission
CN106161629A (en) The method of a kind of business object synchronization, client and server
JP2000508153A (en) General-purpose user authentication method for network computers
US10630721B1 (en) Monitoring system for detecting and preventing a malicious program code from being uploaded from a client computer to a webpage computer server
CN108183798A (en) Real name identification method, server, mobile terminal and the readable storage medium storing program for executing of application
US20230164126A1 (en) Encrypting E-mail and Other Digital Data Using Quantum Random Number Generator
CN111159100A (en) Block chain file access method and device, computer equipment and storage medium
US20030135566A1 (en) File transmission apparatus, web server, file transmission system, file transmission program storage medium, and web server program storage medium
US6968458B1 (en) Apparatus and method for providing secure communication on a network
CN103036852A (en) Method and device for achieving network login
CN106357727A (en) Method and system to upload files to multiple servers simultaneously
CN107046540A (en) File transfer method and device
GB2423679A (en) E-mail server with encryption / decryption and signing / verification capability
US7650392B1 (en) Dynamic content processing in a reverse proxy service
CN108701200A (en) improved storage system
US20080228900A1 (en) Method and system for facilitating the transfer of a computer file
Duong et al. Flickr’s api signature forgery vulnerability

Legal Events

Date Code Title Description
PB01 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