CN106921682A - File uploading method and device - Google Patents

File uploading method and device Download PDF

Info

Publication number
CN106921682A
CN106921682A CN201510982963.0A CN201510982963A CN106921682A CN 106921682 A CN106921682 A CN 106921682A CN 201510982963 A CN201510982963 A CN 201510982963A CN 106921682 A CN106921682 A CN 106921682A
Authority
CN
China
Prior art keywords
file
fragmentation
information
instruction
configured information
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.)
Pending
Application number
CN201510982963.0A
Other languages
Chinese (zh)
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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201510982963.0A priority Critical patent/CN106921682A/en
Publication of CN106921682A publication Critical patent/CN106921682A/en
Pending legal-status Critical Current

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]

Landscapes

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

Abstract

This application discloses file uploading method and device.One specific embodiment of methods described includes:Detection resumes instruction to file;In response to the instruction that resumes for detecting, the corresponding file fragmentation configured information of the file is obtained, the last time is successfully uploaded to the file fragmentation of server when the file fragmentation configured information is used to indicate to upload the file fragmentation of the file successively;Not uploading part and being uploaded to the part that do not upload for the file is determined according to the file fragmentation configured information.This embodiment improves the versatility of breakpoint transmission technology.

Description

File uploading method and device
Technical field
The application is related to field of computer technology, and in particular to Internet technical field, especially relates to And file uploading method and device.
Background technology
The breakpoint transmission of file refers to that after file is interrupted in upload procedure, can be gone up again During biography at the breakpoint of last time transmit, with time-consuming and other resources.
However, existing document breakpoint transmission technology can be by special upload or download application Realize, realize that document breakpoint transmission is needed by extra plug-in unit on a web browser, it is impossible to pass through The resource that browser itself is provided is directly realized by, therefore versatility is poor.
The content of the invention
The purpose of the application is to propose a kind of improved file uploading method and device to solve The technical problem that background section above is mentioned.
In a first aspect, this application provides a kind of file uploading method, methods described includes:Inspection Survey resumes instruction to file;In response to the instruction that resumes for detecting, the file correspondence is obtained File fragmentation configured information, the file fragmentation configured information be used for indicate to the file The last time is successfully uploaded to the file fragmentation of server when file fragmentation is uploaded successively;According to institute State file fragmentation configured information and determine not uploading part and not uploading part to described for the file Uploaded.
In certain embodiments, resume instruction of the detection to file, including:Receive to institute State the uploading instructions of file;File attribute information according to the file is looked into the server Look for and whether there is and the file identical file;If in the presence of confirming that the uploading instructions are Resume instruction.
In certain embodiments, the file attribute information include it is following at least one:Filename, File size.
In certain embodiments, it is described detection to file resume instruction after, methods described Also include:In response to the instruction that resumes for detecting, the corresponding token information of the file is obtained simultaneously Resume instruction and carry out Authority Verification to described using the token information, wherein, the token letter Breath is generated when performing upload operation first to the file.
It is in certain embodiments, described to obtain the corresponding file fragmentation configured information of the file, Including:It is determined that locally whether there is the corresponding file fragmentation configured information of the file;If in the presence of, From the corresponding file fragmentation configured information of the file is locally obtained, otherwise obtained from the server Take the corresponding file fragmentation configured information of the file.
In certain embodiments, the file fragmentation be based on Blob objects in Javascript or What the file cutting method of File objects was obtained
In certain embodiments, it is to pass through that the file fragmentation to the file is uploaded successively What the FormData objects in HTML5 specifications were uploaded.
Second aspect, this application provides a kind of files passe device, described device includes:Inspection Unit is surveyed, detection is configured to and instruction is resumed to file;Acquiring unit, is configured to response In the instruction that resumes for detecting, the corresponding file fragmentation configured information of the file is obtained, it is described Nearest one when file fragmentation configured information is used to indicate to upload the file fragmentation of the file successively The secondary file fragmentation for being successfully uploaded to server;Uploading unit, is configured to according to the file Burst configured information determines not uploading part and being carried out to the part that do not upload for the file Pass.
In certain embodiments, the detection unit includes:Uploading instructions receiving subelement, matches somebody with somebody Put for receiving the uploading instructions to the file;Subelement is searched, is configured to according to described The file attribute information of file searches whether exist and the file identical in the server File;Subelement is confirmed, if existing and the file identical in being configured to the server File, then confirm the uploading instructions to resume instruction.
In certain embodiments, the file attribute information include it is following at least one:Filename, File size.
In certain embodiments, described device also includes:Authority Verification unit, is configured to ring What Ying Yu was detected resumes instruction, obtains the corresponding token information of the file and uses the order Board information resumes instruction and carries out Authority Verification to described, wherein, the token information is to described File performs what is generated during upload operation first.
In certain embodiments, the acquiring unit includes:Determination subelement, is configured to really It is fixed locally to whether there is the corresponding file fragmentation configured information of the file;Subelement is obtained, is matched somebody with somebody If putting in the presence of from the corresponding file fragmentation configured information of the file is locally obtained, otherwise The corresponding file fragmentation configured information of the file is obtained from the server.
In certain embodiments, the file fragmentation be based on Blob objects in Javascript or What the file cutting method of File objects was obtained.
In certain embodiments, it is to pass through that the file fragmentation to the file is uploaded successively What the FormData objects in HTML5 specifications were uploaded.
File uploading method and device that the application is provided, by when file successively burst is uploaded Record for indicating the last time to upload the configured information of successful file fragmentation and when resuming The progress for obtaining files passe by the configured information is resumed with to unfinished portion, so that Realize the breakpoint transmission of file.In the program file fragmentation upload, record configured information and Reading configured information can be realized by browser, hence in so that the program can be by browser Document breakpoint transmission is directly realized by, the versatility of breakpoint transmission technology is improve.
Brief description of the drawings
Retouched with reference to the detailed of being made to non-limiting example of being made of the following drawings by reading State, other features, objects and advantages will become more apparent upon:
Fig. 1 is that the application can apply to exemplary system architecture figure therein;
Fig. 2 is the flow chart of one embodiment of the file uploading method according to the application;
Fig. 3 is the flow chart generated according to the file fragmentation configured information of the application;
Fig. 4 is the structural representation of one embodiment of the files passe device according to the application;
Fig. 5 is adapted for for realizing the terminal device of the embodiment of the present application or the computer of server The structural representation of system.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is appreciated that , specific embodiment described herein is used only for explaining related invention, rather than to the hair Bright restriction.It also should be noted that, for the ease of description, be illustrate only in accompanying drawing with About the related part of invention.
It should be noted that in the case where not conflicting, embodiment and embodiment in the application In feature can be mutually combined.Describe this in detail below with reference to the accompanying drawings and in conjunction with the embodiments Application.
Fig. 1 shows the reality of the file uploading method or files passe device that can apply the application Apply the exemplary system architecture 100 of example.
As shown in figure 1, system architecture 100 can include terminal device 101,102,103, Network 104 and server 105.Network 104 is used in the and of terminal device 101,102,103 The medium of communication link is provided between server 105.Network 104 can include various connection classes Type, such as wired, wireless communication link or fiber optic cables etc..
User can be with using terminal equipment 101,102,103 by network 104 and server 105 Interaction, to carry out the upload etc. of file.Can be provided with terminal device 101,102,103 Various telecommunication customer end applications, such as web browser applications, files passe and download class application Deng.
Terminal device 101,102,103 can be browsed with display screen and supported web page Various electronic equipments, including but not limited to smart mobile phone, panel computer, E-book reader, (Moving Picture Experts Group Audio Layer III, dynamic image is special for MP3 player Family's compression standard audio aspect 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio aspect 4) player, portable meter on knee Calculation machine and desktop computer etc..
Server 105 can be to provide the server of various services, for example to terminal device 101, 102nd, the background server that 103 files for uploading are stored.Background server can be to receiving To the data such as files passe request be analyzed to wait and process, and by result (such as file Burst stores successful information) feed back to terminal device.
It should be noted that the file uploading method that the embodiment of the present application is provided is general by terminal Equipment 101,102,103 is performed, and correspondingly, files passe device is generally positioned at terminal and sets In standby 101,102,103.
It should be understood that the number of the terminal device, network and server in Fig. 1 is only to illustrate Property.According to needs are realized, can have any number of terminal device, network and server.
With continued reference to Fig. 2, one embodiment of the file uploading method according to the application is shown Flow 200.Described file uploading method, comprises the following steps:
Step 201, detection resumes instruction to file.
In the present embodiment, file uploading method operation electronic equipment (such as Fig. 1 thereon Shown terminal device) can be by detecting that the operation that user acts on the electronic equipment is received File resumes instruction.It refers on the file to uploading after files passe interruption continues to resume instruction The instruction of biography.The reason for causing files passe to interrupt including but not limited to network interruption, Yong Huguan Close browser, browser collapse.Wherein, electronic equipment can be clicked on according to files passe window File to be resumed is drawn to the operation signals such as predeterminable area and receives text by file to be resumed Part uploading instructions, can receive files passe with other operations for being used to upload file to be resumed Instruction.Electronic equipment can judge whether to perform upload operation to this document by various means, To determine whether whether uploading instructions are to resume instruction.It is, for example possible to use cache information is sentenced It is disconnected that whether upload operation was performed to this document or no to this document by other label informations Performed upload operation.Optionally, resuming instruction and can be detected by browser to file.
Step 202, in response to the instruction that resumes for detecting, obtains the corresponding file fragmentation of file Configured information.
In the present embodiment, instruction is resumed in response to what step 201 was detected, above-mentioned electronics sets Standby (such as the server shown in Fig. 1) can obtain the corresponding file fragmentation configured information of file.
Wherein, the step of file fragmentation configured information can be according to Fig. 3 301 and step Rapid 302 generation.First, electronic equipment can successively go up the text of transmitting file by step 301 Part burst.Each file fragmentation can be the fritter of equal length, and such as each file fragmentation is equal It is 200 kilobytes.Then, electronic equipment can by step 302 each file fragmentation into When work(uploads onto the server, file fragmentation configured information is updated so that file fragmentation configured information refers to Show the last file fragmentation for being successfully uploaded to server.Wherein, file fragmentation configured information Can be created when this document is uploaded for the first time, its initial value can be set to sky or zero.This refers to Show information can be each upload successful file fragmentation sequence number hereof, or its He may be used to indicate the information of file fragmentation.The file that electronic equipment can be returned by server Burst stores successful signal and determines that file fragmentation is successfully uploaded.
File fragmentation configured information can be stored in the way of key-value pair.Wherein, key is used for The corresponding file identification of storage file burst configured information (such as the filename after encrypting), value is used In the value of storage file burst configured information.File fragmentation information can be stored in electronic equipment sheet It is located in, it is also possible to which storage is in the server.
Electronic equipment, can be according to file in the corresponding file fragmentation configured information of acquisition file Mark is searched file fragmentation corresponding with this document in multiple file fragmentation configured information set and is referred to Show information.When the filename after file identification is encryption, search procedure is also needed to filename It is encrypted or decryption processing.
Step 203, according to file fragmentation configured information determine file do not upload part and to not Part is uploaded to be uploaded.
In the present embodiment, after the file fragmentation information for getting file, you can determine this article Part has uploaded successfully part position hereof.Simultaneously as file fragmentation is to go up successively Pass, thus may determine that the file part after the position does not upload part for this document. For example, when file fragmentation configured information is file fragmentation sequence number, electronic equipment can be according to text The size information of part burst sequence number and each file fragmentation determines not uploading the original position of part Side-play amount hereof, so that it is determined that file does not upload part.
It is determined that file do not upload part after, electronic equipment can be to the non-upload unit of this document Divide and continue to upload, it is achieved thereby that the breakpoint transmission of file.Optionally, in not going up to file When biography part is uploaded, the file fragmentation for not uploading part can successively be uploaded and according to text The upload situation of part burst updates above-mentioned file fragmentation configured information, to occur uploading again Can also realize that file is resumed by file fragmentation configured information after interruption.
The method that above-described embodiment of the application is provided is recorded by when file successively burst is uploaded For indicating the last configured information for uploading successful file fragmentation and passing through when resuming The progress that the configured information obtains files passe is resumed with to unfinished portion, so as to realize The breakpoint transmission of file.Wherein, file fragmentation is uploaded in above-described embodiment, record indicates letter Breath and reading configured information can directly pass through the Javascript codes realization in browser, Therefore the program can be directly realized by document breakpoint transmission by browser, without by extra Plug-in unit, improve the versatility of breakpoint transmission technology.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can by with Under type realizes the detection for resuming instruction to file.First, electronic equipment is received to file Uploading instructions.Then, electronic equipment according to the file attribute information of file in above-mentioned server Search whether exist and file identical file to be uploaded.Wherein, file attribute information can be The various descriptive informations or document content information of file, such as file type information, file Cryptographic Hash.
Optionally, above-mentioned file attribute information can be filename with file size at least one .Wherein, search same file in the server using filename relatively simple, search speed Comparatively fast;The file size identical possibility very little of different files, therefore can also be by file Size searches same file in the server.When being searched using file size, can make File size is accurate to byte rank, to improve lookup accuracy.Furthermore, it is possible to use simultaneously Filename and file size are searched, further to improve the accuracy of ff.Compare In other modes, search having by filename and file size and search speed faster.
It is above-mentioned after above-mentioned steps 201 in some optional implementations of the present embodiment File uploading method in embodiment is further comprising the steps of:Instruction is resumed in response to what is detected, Obtain the corresponding token information of file and carry out Authority Verification to resuming instruction using token information. Wherein, when upload operation is performed first to file, can be generated for preventing from disliking for this document The token information that meaning is attacked.When being resumed to file, the corresponding token of file can be obtained The information and operation using token information to user carries out Authority Verification, to avoid malicious attack, So as to improve processing safety.The generation of token information and carry out authority using token information and test Card belongs to prior art, repeats no more here.
In some optional implementations of the present embodiment, the corresponding file fragmentation of file is obtained Configured information can be accomplished by the following way:It is determined that locally whether there is the corresponding text of this document Part burst configured information;If in the presence of, the corresponding file fragmentation configured information of file is obtained from local, Otherwise the corresponding file fragmentation configured information of file is obtained from server.Generally, file fragmentation letter Breath can store local in electronic equipment, it is also possible to backing up and storing in the server.One A little abnormal causes (such as the browser for files passe is closed extremely) cause in files passe When disconnected, electronic equipment may preserve file fragmentation configured information local, in server Backup can ensure the availability of file fragmentation configured information.Therefore, when to uploading the text for interrupting When part carries out breakpoint transmission, preferentially the corresponding file of this document can be locally searched in electronic equipment Burst configured information, if finding the corresponding file fragmentation configured information of part, direct access electricity The local file fragmentation configured information of sub- equipment, so that with efficiency higher, while also avoiding Extra consumption to Internet resources.If not finding the corresponding file fragmentation configured information of part, File fragmentation configured information is obtained from server.Obtained with server by this local acquisition With reference to method, improve obtain file fragmentation configured information efficiency, while also ensuring that This document can be also got because abnormal cause causes cannot locally to preserve file fragmentation configured information Burst configured information, it is ensured that the feasibility of scheme.
In some optional implementations of the present embodiment, above-mentioned file fragmentation is to be based on The file cutting method of Blob objects or File objects is obtained in Javascript.Using clear When device of looking at performs files passe operation, can be by the Api (Application in Javascript Programming Interface, application programming interface) file is cut.Blob objects or All there is the method for cutting file in File objects.The specific side used in different browsers Method there may be difference, such as can enter style of writing using mozSlice () method in red fox browser Part is cut, and webkitSlice () method can be used in Google's browser, and other browsers then may be used To use slice () method.After file cutting, each file fragmentation for being formed is Blob objects Or File objects.
In some optional implementations of the present embodiment, it is logical that file fragmentation is uploaded successively (application under kernel language, the standard generalized markup language of WWW is super literary to cross HTML5 5th material alteration of this markup language) the FormData objects in specification upload.With right After file cutting pair as if Blob objects or File objects as a example by, electronic equipment can be by clear Blob objects or File objects are directly appended to FormData objects by device of looking at, to be uploaded. It should be noted that the file fragmentation for cutting by other means can also pass through FormData objects are uploaded.The use of the great advantage of FormData can be just to enter to two File asynchronous upload processed.Optionally, can be entered using Post or Get modes in way of submission Row is submitted to.Preferably, Post modes can be used, this mode is to each data volume for uploading There is no size to limit, therefore the size of each file fragmentation can be set for greater flexibility.
With further reference to Fig. 4, used as the realization to method shown in above-mentioned each figure, the application is provided A kind of one embodiment of files passe device, the device embodiment and the method shown in Fig. 2 Embodiment is corresponding, and the device specifically can apply in various electronic equipments.
As shown in figure 4, the files passe device 400 described in the present embodiment includes:Detection unit 401st, acquiring unit 402, uploading unit 403.Wherein, detection unit 401 is configured to inspection Survey resumes instruction to file;Acquiring unit 402 is configured to resume finger in response to what is detected Order, obtains the corresponding file fragmentation configured information of file;Uploading unit 403 is configured to basis File fragmentation configured information determines not uploading part and being uploaded to not uploading part for file.
In the present embodiment, the receiving unit 401 of files passe device 400 can be by detection The predetermined registration operation of user receives file and resumes instruction.It refers to after files passe interruption to resume instruction File to uploading continues the instruction for uploading.
In the present embodiment, instruction, above-mentioned solution are resumed in response to what detection unit 401 was detected Acquiring unit 402 can obtain the corresponding file fragmentation configured information of file.File fragmentation is indicated Information can be stored in the way of key-value pair.Wherein, key is indicated for storage file burst The corresponding file identification of information, is worth the value for storage file burst configured information.
In the present embodiment, the file fragmentation configured information for being obtained based on acquiring unit 402, text The uploading unit 403 that part uploads device 400 can determine not uploading the start bit of part in file Side-play amount hereof is put, that is, file fragmentation is determined does not upload part.Afterwards, upload Unit can continue to upload to fixed unfinished portion.
It will be understood by those skilled in the art that above-mentioned files passe device 400 also includes some its His known features, such as processor, memory etc., in order to unnecessarily obscure the reality of the disclosure Example is applied, these known structures are not shown in fig. 4.
Below with reference to Fig. 5, it illustrates the terminal device being suitable to for realizing the embodiment of the present application Or the structural representation of the computer system 500 of server.
As shown in figure 5, computer system 500 includes CPU (CPU) 501, its Can be according to program of the storage in read-only storage (ROM) 502 or from storage part 508 The program that is loaded into random access storage device (RAM) 503 and perform various appropriate actions And treatment.In RAM 503, the system that is also stored with 500 operates required various program sums According to.CPU 501, ROM 502 and RAM 503 are connected with each other by bus 504.Input / output (I/O) interface 505 is also connected to bus 504.
I/O interfaces 505 are connected to lower component:Including the importation 506 of keyboard, mouse etc.; Including cathode-ray tube (CRT), liquid crystal display (LCD) etc. and loudspeaker etc. Output par, c 507;Storage part 508 including hard disk etc.;And including such as LAN card, The communications portion 509 of the NIC of modem etc..Communications portion 509 is via such as The network of internet performs communication process.Driver 510 is also according to needing to be connected to I/O interfaces 505.Detachable media 511, such as disk, CD, magneto-optic disk, semiconductor memory etc., Be arranged on driver 510 as needed, in order to the computer program that reads from it according to Needs are mounted into storage part 508.
Especially, in accordance with an embodiment of the present disclosure, the process above with reference to flow chart description can be with It is implemented as computer software programs.For example, embodiment of the disclosure includes a kind of computer journey Sequence product, it includes being tangibly embodied in the computer program on machine readable media, the meter Calculation machine program bag is containing the program code for the method shown in execution flow chart.In such implementation In example, the computer program can be downloaded and installed by communications portion 509 from network, And/or be mounted from detachable media 511.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of the various embodiments of the application, The architectural framework in the cards of method and computer program product, function and operation.This point On, each square frame in flow chart or block diagram can represent module, program segment or a code A part, a part for the module, program segment or code is used for comprising one or more Realize the executable instruction of the logic function of regulation.It should also be noted that at some as replacement In realization, the function of being marked in square frame can also be sent out with different from the order marked in accompanying drawing It is raw.For example, two square frames for succeedingly representing can essentially be performed substantially in parallel, they Sometimes can also perform in the opposite order, this is depending on involved function.It is also noted that It is, the square frame in each square frame and block diagram and/or flow chart in block diagram and/or flow chart Combination, can be realized with the function of regulation or the special hardware based system of operation is performed, Or can be realized with the combination of computer instruction with specialized hardware.
Be described in involved unit in the embodiment of the present application can by way of software reality It is existing, it is also possible to be realized by way of hardware.Described unit can also be arranged on treatment In device, for example, can be described as:A kind of processor include detection unit, acquiring unit, on Leaflet unit.Wherein, the title of these units is not constituted to the unit in itself under certain conditions Restriction, for example, detection unit is also described as " resume instruction of the detection to file Unit ".
As on the other hand, present invention also provides a kind of nonvolatile computer storage media, The nonvolatile computer storage media can be described in above-described embodiment included in device Nonvolatile computer storage media;Can also be individualism, it is non-in terminal without allocating into Volatile computer storage medium.Above-mentioned nonvolatile computer storage media be stored with one or Person's multiple program, when one or more of programs are performed by an equipment so that described Equipment:Detection resumes instruction to file;In response to the instruction that resumes for detecting, obtain described The corresponding file fragmentation configured information of file, the file fragmentation configured information is used to indicate to institute The last time is successfully uploaded to the file point of server when the file fragmentation for stating file is uploaded successively Piece;According to the file fragmentation configured information determine the file do not upload part and to described Part is not uploaded to be uploaded.
Above description is only the preferred embodiment of the application and saying to institute's application technology principle It is bright.It will be appreciated by those skilled in the art that invention scope involved in the application, does not limit In the technical scheme of the particular combination of above-mentioned technical characteristic, while should cover not departing from yet In the case of the inventive concept, it is combined by above-mentioned technical characteristic or its equivalent feature And other technical schemes for being formed.Such as features described above and (but not limited to) disclosed herein The technical scheme that technical characteristic with similar functions is replaced mutually and formed.

Claims (14)

1. a kind of file uploading method, it is characterised in that methods described includes:
Detection resumes instruction to file;
In response to the instruction that resumes for detecting, obtain the corresponding file fragmentation of the file and indicate letter Breath, the file fragmentation configured information is used to indicate to upload the file fragmentation of the file successively When the last time be successfully uploaded to the file fragmentation of server;
According to the file fragmentation configured information determine the file do not upload part and to described Part is not uploaded to be uploaded.
2. method according to claim 1, it is characterised in that the detection is to file Instruction is resumed, including:
Receive the uploading instructions to the file;
File attribute information according to the file searches whether exist and institute in the server State file identical file;
If in the presence of confirming the uploading instructions to resume instruction.
3. method according to claim 2, it is characterised in that the file attribute information Including it is following at least one:Filename, file size.
4. method according to claim 1, it is characterised in that in the detection to file Resume instruction after, methods described also includes:
In response to the instruction that resumes for detecting, obtain the corresponding token information of the file and use The token information resumes instruction and carries out Authority Verification to described, wherein, the token information is Generated when performing upload operation first to the file.
5. method according to claim 1, it is characterised in that the acquisition file Corresponding file fragmentation configured information, including:
It is determined that locally whether there is the corresponding file fragmentation configured information of the file;
If in the presence of, from the corresponding file fragmentation configured information of the file is locally obtained, otherwise from The server obtains the corresponding file fragmentation configured information of the file.
6. method according to claim 1, it is characterised in that the file fragmentation is base The file cutting method of Blob objects or File objects is obtained in Javascript.
7. according to the method that one of claim 1-6 is described, it is characterised in that described to described The file fragmentation of file is uploaded successively to be uploaded by the FormData objects in HTML5 specifications 's.
8. a kind of files passe device, it is characterised in that described device includes:
Detection unit, is configured to detection and resumes instruction to file;
Acquiring unit, is configured to the instruction that resumes in response to detecting, and obtains the file pair The file fragmentation configured information answered, the file fragmentation configured information is used to indicate to the file File fragmentation when uploading successively the last time be successfully uploaded to the file fragmentation of server;
Uploading unit, is configured to determine the file according to the file fragmentation configured information Do not upload part and the part that do not upload is uploaded.
9. device according to claim 8, it is characterised in that the detection unit includes:
Uploading instructions receiving subelement, is configured to receive the uploading instructions to the file;
Subelement is searched, the file attribute information according to the file is configured in the service Search whether exist and the file identical file in device;
Subelement is confirmed, if existing in being configured to the server and file identical text Part, then confirm the uploading instructions to resume instruction.
10. device according to claim 9, it is characterised in that the file attribute letter Breath include it is following at least one:Filename, file size.
11. devices according to claim 8, it is characterised in that described device also includes:
Authority Verification unit, is configured to the instruction that resumes in response to detecting, and obtains the text The corresponding token information of part and using the token information to it is described resume instruction and carry out authority test Card, wherein, the token information is generated when performing upload operation first to the file.
12. devices according to claim 8, it is characterised in that the acquiring unit bag Include:
Determination subelement, is configured to determine locally with the presence or absence of the corresponding file point of the file Piece configured information;
Subelement is obtained, if being configured in the presence of from locally obtaining the corresponding file of the file Burst configured information, otherwise obtains the corresponding file fragmentation of the file and indicates from the server Information.
13. devices according to claim 8, it is characterised in that the file fragmentation is What the file cutting method based on Blob objects in Javascript or File objects was obtained.
14. according to one of claim 8-13 described device, it is characterised in that described to institute Stating the file fragmentation of file, to upload successively be by the FormData objects in HTML5 specifications Pass.
CN201510982963.0A 2015-12-24 2015-12-24 File uploading method and device Pending CN106921682A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510982963.0A CN106921682A (en) 2015-12-24 2015-12-24 File uploading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510982963.0A CN106921682A (en) 2015-12-24 2015-12-24 File uploading method and device

Publications (1)

Publication Number Publication Date
CN106921682A true CN106921682A (en) 2017-07-04

Family

ID=59456460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510982963.0A Pending CN106921682A (en) 2015-12-24 2015-12-24 File uploading method and device

Country Status (1)

Country Link
CN (1) CN106921682A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108040115A (en) * 2017-12-21 2018-05-15 北京华夏电通科技有限公司 Document transmission method and device
CN108093034A (en) * 2017-12-06 2018-05-29 深圳云天励飞技术有限公司 Breaker point continuous transmission method and device, electronic equipment and computer readable storage medium
CN110809039A (en) * 2019-10-30 2020-02-18 华工正源智能终端(孝感)有限公司 File uploading method and device
CN111131360A (en) * 2018-10-31 2020-05-08 北京国双科技有限公司 Multi-file uploading method and device
CN111131450A (en) * 2019-12-23 2020-05-08 北京奇艺世纪科技有限公司 File uploading method, file recombining method and file recombining device
CN111193786A (en) * 2019-12-23 2020-05-22 北京航天云路有限公司 Method for reading large file in segmentation mode based on Blob object to improve uploading efficiency
CN111225058A (en) * 2020-01-09 2020-06-02 深圳壹账通智能科技有限公司 File uploading method and related product
CN112243017A (en) * 2019-07-18 2021-01-19 北京京东尚科信息技术有限公司 File uploading method and device
CN112559228A (en) * 2019-09-25 2021-03-26 北京国双科技有限公司 Data detection method and device, storage medium and electronic equipment
WO2023083367A1 (en) * 2021-11-15 2023-05-19 北京字节跳动网络技术有限公司 Method and apparatus for resuming loading of file in background, and storage medium and electronic device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1710857A (en) * 2004-06-18 2005-12-21 千橡寰宇科技发展(北京)有限公司 Method and method for realizing document accelerated download
CN101291195A (en) * 2008-05-23 2008-10-22 中兴通讯股份有限公司 File downloading method, system and terminal realizing breaker point continuous transmission
US20120054197A1 (en) * 2010-08-30 2012-03-01 Openwave Systems Inc. METHOD AND SYSTEM FOR STORING BINARY LARGE OBJECTS (BLObs) IN A DISTRIBUTED KEY-VALUE STORAGE SYSTEM
US20130297722A1 (en) * 2012-05-02 2013-11-07 Microsoft Corporation Integrated format conversion during disk upload
CN104169898A (en) * 2011-12-28 2014-11-26 英特尔公司 Method and apparatus for streaming metadata between devices using javaScript and HTML5
CN104253816A (en) * 2014-09-25 2014-12-31 武汉传神信息技术有限公司 HTTP (hyper text transport protocol)-based large file page breakpoint resuming method
CN104468843A (en) * 2014-12-31 2015-03-25 浪潮软件股份有限公司 File uploading method and device
CN104519081A (en) * 2013-09-27 2015-04-15 阿里巴巴集团控股有限公司 Page access method and device
CN104580298A (en) * 2013-10-17 2015-04-29 北大方正集团有限公司 File uploading processing method and device
CN104573068A (en) * 2015-01-23 2015-04-29 四川中科腾信科技有限公司 Information processing method based on megadata

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1710857A (en) * 2004-06-18 2005-12-21 千橡寰宇科技发展(北京)有限公司 Method and method for realizing document accelerated download
CN101291195A (en) * 2008-05-23 2008-10-22 中兴通讯股份有限公司 File downloading method, system and terminal realizing breaker point continuous transmission
US20120054197A1 (en) * 2010-08-30 2012-03-01 Openwave Systems Inc. METHOD AND SYSTEM FOR STORING BINARY LARGE OBJECTS (BLObs) IN A DISTRIBUTED KEY-VALUE STORAGE SYSTEM
CN104169898A (en) * 2011-12-28 2014-11-26 英特尔公司 Method and apparatus for streaming metadata between devices using javaScript and HTML5
US20130297722A1 (en) * 2012-05-02 2013-11-07 Microsoft Corporation Integrated format conversion during disk upload
CN104519081A (en) * 2013-09-27 2015-04-15 阿里巴巴集团控股有限公司 Page access method and device
CN104580298A (en) * 2013-10-17 2015-04-29 北大方正集团有限公司 File uploading processing method and device
CN104253816A (en) * 2014-09-25 2014-12-31 武汉传神信息技术有限公司 HTTP (hyper text transport protocol)-based large file page breakpoint resuming method
CN104468843A (en) * 2014-12-31 2015-03-25 浪潮软件股份有限公司 File uploading method and device
CN104573068A (en) * 2015-01-23 2015-04-29 四川中科腾信科技有限公司 Information processing method based on megadata

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
BOY TNT: "利用HTML5分片上传超大文件", 《51CTO博客》 *
CHENGXIAOJIN: "Research on File Upload Based on HTML5", 《 2014 11TH INTERNATIONAL CONFERENCE ON SERVICE SYSTEMS AND SERVICE MANAGEMENT (ICSSSM)》 *
林珑: "《HTML5移动Web开发实战详解》", 30 September 2014 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108093034A (en) * 2017-12-06 2018-05-29 深圳云天励飞技术有限公司 Breaker point continuous transmission method and device, electronic equipment and computer readable storage medium
CN108040115A (en) * 2017-12-21 2018-05-15 北京华夏电通科技有限公司 Document transmission method and device
CN108040115B (en) * 2017-12-21 2021-03-02 北京华夏电通科技股份有限公司 File transmission method and device
CN111131360B (en) * 2018-10-31 2023-02-21 北京国双科技有限公司 Multi-file uploading method and device
CN111131360A (en) * 2018-10-31 2020-05-08 北京国双科技有限公司 Multi-file uploading method and device
CN112243017A (en) * 2019-07-18 2021-01-19 北京京东尚科信息技术有限公司 File uploading method and device
CN112559228A (en) * 2019-09-25 2021-03-26 北京国双科技有限公司 Data detection method and device, storage medium and electronic equipment
CN110809039A (en) * 2019-10-30 2020-02-18 华工正源智能终端(孝感)有限公司 File uploading method and device
CN111193786A (en) * 2019-12-23 2020-05-22 北京航天云路有限公司 Method for reading large file in segmentation mode based on Blob object to improve uploading efficiency
CN111131450A (en) * 2019-12-23 2020-05-08 北京奇艺世纪科技有限公司 File uploading method, file recombining method and file recombining device
CN111131450B (en) * 2019-12-23 2022-06-21 北京奇艺世纪科技有限公司 File uploading method, file recombining method and file recombining device
CN111225058A (en) * 2020-01-09 2020-06-02 深圳壹账通智能科技有限公司 File uploading method and related product
WO2021139132A1 (en) * 2020-01-09 2021-07-15 深圳壹账通智能科技有限公司 File uploading method and related product
CN111225058B (en) * 2020-01-09 2023-11-03 深圳壹账通智能科技有限公司 File uploading method and related products
WO2023083367A1 (en) * 2021-11-15 2023-05-19 北京字节跳动网络技术有限公司 Method and apparatus for resuming loading of file in background, and storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN106921682A (en) File uploading method and device
US10102306B2 (en) Patching base document object model (DOM) with DOM-differentials to generate high fidelity replay of webpage user interactions
CN109543454B (en) Anti-crawler method and related equipment
CN107391675B (en) Method and apparatus for generating structured information
CN106919711B (en) Method and device for labeling information based on artificial intelligence
US10496696B2 (en) Search method and apparatus
CN105308590A (en) Centralized management of link data for multiple applications, computers and resources, through operating systems and networked storage services
CN107547524A (en) A kind of page detection method, device and equipment
CN106874271A (en) A kind of method and system that PC webpages are converted to mobile terminal webpage
CN106569860A (en) Application management method and terminal
US20100257413A1 (en) Verification service for dynamic content update
US11138287B1 (en) System for reducing size of transmitted content
CN106803032A (en) Realize method, device and client device that website fingerprint is logged in
CN111651749A (en) Method and device for finding account based on password, computer equipment and storage medium
CN105260459A (en) Search method and apparatus
CN113360106B (en) Webpage printing method and device
CN111783119B (en) Form data security control method, form data security control device, electronic equipment and storage medium
CN106612283B (en) Method and device for identifying source of downloaded file
CN105354506B (en) The method and apparatus of hidden file
CN110119483A (en) Display methods, device, terminal device and the storage medium of multimedia file
US20130230248A1 (en) Ensuring validity of the bookmark reference in a collaborative bookmarking system
CN112559913A (en) Data processing method and device, computing equipment and readable storage medium
CN112084441A (en) Information retrieval method and device and electronic equipment
US10372764B2 (en) Extending document editors to assimilate documents returned by a search engine
CN108363707B (en) Method and device for generating webpage

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170704