CN111225058A - File uploading method and related product - Google Patents

File uploading method and related product Download PDF

Info

Publication number
CN111225058A
CN111225058A CN202010022222.9A CN202010022222A CN111225058A CN 111225058 A CN111225058 A CN 111225058A CN 202010022222 A CN202010022222 A CN 202010022222A CN 111225058 A CN111225058 A CN 111225058A
Authority
CN
China
Prior art keywords
file
uploading
preset number
files
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010022222.9A
Other languages
Chinese (zh)
Other versions
CN111225058B (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.)
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
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 OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN202010022222.9A priority Critical patent/CN111225058B/en
Publication of CN111225058A publication Critical patent/CN111225058A/en
Priority to PCT/CN2020/103252 priority patent/WO2021139132A1/en
Application granted granted Critical
Publication of CN111225058B publication Critical patent/CN111225058B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC

Abstract

The application discloses a file uploading method and a related product. Wherein the method comprises the following steps: carrying out fragmentation processing on files to be uploaded to obtain a first preset number of fragment files; marking the first preset number of the sheet files to generate a first preset number of mark bodies, wherein the first preset number of the sheet files correspond to the first preset number of the mark bodies one to one; uploading the first preset number of slice files to a server; when abnormal interruption occurs in uploading, throwing out an uploading task of the abnormal interruption; searching a to-be-continued file corresponding to the abnormally interrupted uploading task in the electronic equipment according to the mark body; and uploading the searched file of the to-be-continued piece to the server. Therefore, by implementing the technical scheme provided by the application, the fragment uploading technology is adopted to upload the large file, so that the time for uploading the large file is reduced, and the uploading efficiency is improved.

Description

File uploading method and related product
Technical Field
The present application relates to the field of communications network technologies, and in particular, to a file uploading method and a related product.
Background
Nowadays, with the development of imaging technology, human experiences brought by imaging technology are more favored. Meanwhile, due to the high definition of the shooting equipment and the increase of the shooting time, the shot image files are larger and larger, and the uploading of the large files faces many problems.
Firstly, because the files are large, each uploading of a large file takes a long time; secondly, if the large file encounters abnormal interruption during uploading, the large file needs to be uploaded again, so that the pressure of the server and the interaction time with the server are increased, and the uploading efficiency is reduced.
Disclosure of Invention
The embodiment of the application provides a file uploading method and a related product, and by implementing the embodiment of the application, a fragment uploading technology is adopted to upload a large file, so that the time for uploading the large file is reduced, and the uploading efficiency is improved.
In a first aspect, an embodiment of the present application provides a file uploading method, which is applied to an electronic device, and the method includes:
carrying out fragmentation processing on files to be uploaded to obtain a first preset number of fragment files;
marking the first preset number of the sheet files to generate a first preset number of mark bodies, wherein the first preset number of the sheet files correspond to the first preset number of the mark bodies one to one;
uploading the first preset number of slice files to a server;
when abnormal interruption occurs in uploading, throwing out an uploading task of the abnormal interruption;
searching a to-be-continued file corresponding to the abnormally interrupted uploading task in the electronic equipment according to the mark body;
and uploading the searched file of the to-be-continued piece to the server.
Optionally, the marking the first preset number of slice files, and generating a first preset number of marked bodies includes:
extracting feature information of each piece of file in the first preset number of pieces of files;
and generating a first preset number of marking bodies for marking each piece file according to the characteristic information of each piece file.
Optionally, the tag body includes a file name, a file format, a file size, a header file and a footer file of the file, and the searching for the to-be-transferred slice file corresponding to the abnormally-interrupted upload task in the electronic device according to the tag body includes:
searching a mark body corresponding to the first file according to the file name of the first file uploaded by the abnormally interrupted uploading task;
acquiring the file format, the file size, the head file and the tail file of the first file from the mark body corresponding to the first file;
and searching the file to be continuously uploaded corresponding to the abnormally interrupted uploading task in the electronic equipment according to the file name, the file format, the file size, the head file and the tail file of the first file.
Optionally, the uploading the found to-be-continued-transfer film file to the server includes:
judging whether the searched file to be continuously transmitted is a compressed file;
if the file to be continuously transmitted is a compressed file, comparing the file size of the file to be continuously transmitted with the file size of the first file;
if the file size of the to-be-continued file is successfully compared with the file size of the first file, comparing the header file of the to-be-continued file with the header file of the first file;
and if the header file of the to-be-continued film file is successfully compared with the header file of the first film file, uploading the to-be-continued film file to the server.
Optionally, the uploading the found to-be-continued-transfer film file to the server includes:
judging whether the searched file to be continuously transmitted is a compressed file;
if the file to be continuously transmitted is not a compressed file, comparing the file size and the tail file of the file to be continuously transmitted with the file size and the tail file of the first file;
if the file size and the tail file of the to-be-continued fragment file are successfully compared with the file size and the tail file of the first fragment file, compressing the to-be-continued fragment file;
and uploading the compressed file of the to-be-continued fragment file to the server.
Optionally, the uploading the first preset number of slice files to the server includes:
sending a file uploading request to the server, wherein the file uploading request is used for requesting the server to create a second preset number of storage block units, and each block unit can store a third preset number of piece files;
and uploading the slice files of the first preset number to the storage block units of the second preset number.
Optionally, the uploading the first preset number of slice files to the second preset number of storage block units includes:
uploading a slice file to one of the storage block units;
receiving uploading progress information sent by the server, wherein the uploading progress information comprises the quantity information of the stored piece files in the storage block unit;
judging whether the number of the stored slice files in the storage block unit reaches a third preset number or not according to the uploading progress information;
and if the number of the stored piece files in the storage block unit reaches a third preset number, uploading the piece files to another storage block unit until all the piece files of the first preset number are uploaded to the server.
In a second aspect, an embodiment of the present application provides a file uploading apparatus, which is applied to an electronic device, and the apparatus includes:
the file uploading system comprises a fragmentation unit, a file uploading unit and a file uploading unit, wherein the fragmentation unit is used for carrying out fragmentation processing on files needing to be uploaded to obtain a first preset number of fragment files;
the marking unit is used for marking the first preset number of the sheet files to generate a first preset number of mark bodies, wherein the first preset number of the sheet files correspond to the first preset number of the mark bodies one by one;
the first uploading unit is used for uploading the first preset number of the piece files to a server;
the throwing unit is used for throwing the uploading task of the abnormal interruption when the uploading is abnormally interrupted;
the searching unit is used for searching the to-be-continued file corresponding to the abnormally interrupted uploading task according to the mark body;
and the second uploading unit is used for uploading the searched file of the to-be-continued piece to the server.
Optionally, the marking unit includes:
an extracting subunit, configured to extract feature information of each of the first preset number of patch files;
and the generating subunit is used for generating a first preset number of marking bodies used for marking each piece file according to the characteristic information of each piece file.
Optionally, the tag body includes a file name, a file format, a file size, a header file and a footer file of the slice file, and the search unit includes:
the first searching subunit is used for searching a mark body corresponding to the first file according to the file name of the first file uploaded by the abnormally interrupted uploading task;
the acquiring subunit is configured to acquire the file format, the file size, and the header file and the trailer file of the first file from the tag body corresponding to the first file;
and the second searching subunit is used for searching the to-be-continued file corresponding to the abnormally interrupted uploading task in the electronic equipment according to the file name, the file format, the file size, the head file and the tail file of the first file.
Optionally, the second uploading unit includes:
the first judging subunit is used for judging whether the searched file to be continuously transmitted is a compressed file;
the first comparison subunit is configured to compare the file size of the to-be-continued slice file with the file size of the first slice file if the to-be-continued slice file is a compressed file;
the second comparison subunit is configured to compare the header file of the to-be-continued documentary file with the header file of the first documentary file if the file size of the to-be-continued documentary file is successfully compared with the file size of the first documentary file;
and the first uploading subunit is configured to upload the to-be-continued fragment file to the server if the comparison between the header file of the to-be-continued fragment file and the header file of the first fragment file is successful.
Optionally, the second uploading unit further includes:
the first judging subunit is further configured to judge whether the searched to-be-continued-transfer file is a compressed file;
a third comparison subunit, configured to compare, if the to-be-continued documentary file is a non-compressed file, the file size and the end file of the to-be-continued documentary file with the file size and the end file of the first documentary file;
the compressing subunit is configured to compress the to-be-continued fragment file if the file size and the tail file of the to-be-continued fragment file are successfully compared with the file size and the tail file of the first fragment file;
and the second uploading subunit is used for uploading the compressed file of the to-be-continued fragment file to the server.
Optionally, the first uploading unit includes:
the sending sub-unit is used for sending a file uploading request to the server, wherein the file uploading request is used for requesting the server to create a second preset number of storage block units, and each block unit can store a third preset number of piece files;
and the third uploading subunit is used for uploading the first preset number of slice files to the second preset number of storage block units.
Optionally, the third uploading subunit includes:
the fourth uploading subunit is used for uploading the slice file to one of the storage block units;
the receiving subunit is configured to receive upload progress information sent by the server, where the upload progress information includes information on the number of the slice files stored in the storage block unit;
the second judging subunit is configured to judge whether the number of the stored slice files in the storage block unit reaches a third preset number according to the upload progress information;
the fourth uploading subunit is further configured to, if the number of the slice files already stored in the storage block unit reaches a third preset number, upload the slice files to another storage block unit until all the slice files of the first preset number are uploaded to the server.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, stored in the memory and configured to be executed by the processor, where the program includes instructions for performing the steps of the method according to the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform some or all of the steps described in the method according to the first aspect of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps as described in the method of the first aspect of embodiments of the present application. The computer program product may be a software installation package.
It can be seen that in the technical scheme provided by the embodiment of the application, the files to be uploaded are subjected to fragmentation processing to obtain a first preset number of fragment files; marking the first preset number of the sheet files to generate a first preset number of mark bodies, wherein the first preset number of the sheet files correspond to the first preset number of the mark bodies one to one; uploading the first preset number of slice files to a server; when abnormal interruption occurs in uploading, throwing out an uploading task of the abnormal interruption; searching a to-be-continued file corresponding to the abnormally interrupted uploading task in the electronic equipment according to the mark body; and uploading the searched file of the to-be-continued piece to the server. Therefore, by implementing the technical scheme provided by the embodiment of the application, the fragment uploading technology is adopted to upload the large file, so that the time for uploading the large file is reduced, and the uploading efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic architecture diagram of a file uploading system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a file uploading method provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of another file uploading method provided in an embodiment of the present application;
fig. 4 is a schematic flowchart of another file uploading method provided in an embodiment of the present application;
fig. 5 is a block diagram illustrating functional units of a file uploading apparatus according to an embodiment of the present application;
fig. 6 is a schematic physical architecture diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," and the like in the description and claims of this application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating an architecture of a file uploading system according to an embodiment of the present application. As shown in fig. 1, the file uploading system includes an electronic device 101, a network 102, and a server 103.
The electronic device 101 includes, but is not limited to, a device with a communication function, a smart phone, a tablet computer, a notebook computer, a desktop computer, a portable digital player, a smart camera, and the like. It should be noted that the electronic device 101 may capture an image or store an image file, and may actively send the image file captured or stored by itself to the server; or respond according to the received request sent by the server, so as to send the image file shot or stored by the server to the server.
The server 103 includes, but is not limited to, a conventional server, a large storage system, a desktop computer, a notebook computer, a tablet computer, a palm computer, a smart phone, a portable digital player, a smart watch, a smart bracelet, and the like. It should be noted that the server 103 may receive an image file sent by an electronic device, and store the received image file according to a storage rule set by the server; or setting a storage rule according to a received request sent by the electronic equipment, and then storing the received image file.
What interacts between the electronic device 101 and the server 103 is a network 102, which may include various types of wired or wireless networks. In one embodiment, the Network 102 may include the Public Switched Telephone Network (PSTN) and the Internet. Of course, the embodiments of the present application do not limit this.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a file uploading method according to an embodiment of the present application. As shown in fig. 2, the file uploading method is applied to an electronic device, and includes:
s201, the electronic device carries out fragmentation processing on files needing to be uploaded to obtain a first preset number of fragment files.
The electronic device performs fragmentation processing on files to be uploaded to obtain a first preset number of fragment files, and the method comprises the following steps: the files needing to be uploaded are segmented to obtain a fourth preset number of block files; and then segmenting each block file to obtain the first preset number of slice files.
It can be understood that the specific number of the fourth preset number of block files and the first preset number of slice files may be determined according to the file size of the file to be uploaded.
The electronic device may perform fragmentation processing on the file to be uploaded according to a received receiving request sent by the server, or may also perform active fragmentation processing on the file to be uploaded, where the file is divided into a first preset number of pieces of files, the first preset number of pieces of files are in the same folder, and the pieces of files are compressed files.
In addition, the files to be uploaded include large files such as video files, audio records, and pictures.
S202, the electronic equipment marks the first preset number of the sheet files to generate a first preset number of mark bodies, wherein the first preset number of the sheet files correspond to the first preset number of the mark bodies one to one.
Wherein, the marking the first preset number of the slice files to generate a first preset number of the mark bodies comprises: extracting feature information of each piece of file in the first preset number of pieces of files; and generating a first preset number of marking bodies for marking each piece file according to the characteristic information of each piece file.
It is to be understood that the flag body records characteristic information of each of the slice files, and the flag body and the slice files are in the same folder.
S203, the electronic equipment uploads the first preset number of the slice files to a server.
It can be understood that the uploading of the first preset number of slice files to the server by the electronic device may be asynchronous uploading or synchronous uploading.
The electronic equipment uploads the first preset number of the piece files to the server, and also displays uploading progress information in real time, records the uploading state of each piece file, and the uploading state can be divided into waiting for uploading (wait), uploading (loading) and uploading completion (finish).
The server may store the received slice file according to a storage rule set by the server; or setting a storage rule according to a received request sent by the electronic equipment, and then storing the received slice file. For example, the server may set a series of block units for storing a clip file transmitted thereto by the electronic device.
The transmission Protocol for interaction between the electronic device and the server may be a network Protocol such as a HyperText Transfer Protocol (HTTP), a File Transfer Protocol (FTP), and the like.
And S204, when abnormal interruption occurs in uploading, the electronic equipment throws out the uploading task of the abnormal interruption.
The electronic device determines whether an abnormal interrupt occurs or not when uploading is interrupted, and waits for a user to operate to continue executing the file if the abnormal interrupt occurs but is artificially interrupted. If the uploading is abnormally interrupted, the abnormally uploaded task is thrown out, a user is prompted, and uploading error information of the abnormally interrupted uploading is recorded, wherein the uploading interrupted error information comprises uploading progress information of the abnormally interrupted piece file.
S205, the electronic equipment searches the file of the to-be-continued file corresponding to the abnormally interrupted uploading task in the electronic equipment according to the mark body.
The electronic equipment searches for the to-be-passed fragment file corresponding to the abnormally interrupted uploading task in the electronic equipment according to the tag body, and the method comprises the following steps: the electronic equipment searches a mark body corresponding to the first file according to the file name of the first file uploaded by the abnormally interrupted uploading task; the electronic equipment acquires the file format, the file size, the head file and the tail file of the first file from the mark body corresponding to the first file; and the electronic equipment searches the file to be continuously uploaded corresponding to the abnormally interrupted uploading task in the electronic equipment according to the file name, the file format, the file size, the head file and the tail file of the first file.
Wherein the method further comprises: the electronic equipment searches a to-be-continued file corresponding to the abnormally interrupted uploading task in the electronic equipment according to the name of the file uploaded by the abnormally interrupted uploading task; if the file is found, the file to be continuously transmitted is the original file; if the file is not found, the electronic equipment searches the file to be continuously uploaded corresponding to the abnormally interrupted uploading task in the electronic equipment according to the mark body.
It can be understood that, the tag body records the feature information of each piece of file, so that even if the name of the original piece of file in the electronic device of the piece of file uploaded by the abnormally interrupted uploading task is changed, the electronic device can find the to-be-continued piece of file corresponding to the abnormally interrupted uploading task according to the tag body.
In addition, it should be noted that the method may further include: searching the feature information of the to-be-continued file corresponding to the abnormally interrupted uploading task in the electronic equipment according to the name of the to-be-uploaded file uploaded by the abnormally interrupted uploading task, and comparing the feature information with the feature information of the to-be-continued file recorded in the mark body; and if the comparison is successful, determining to upload the data to the server. Therefore, if the electronic device finds a to-be-continued slice file (i.e., an original slice file) corresponding to the abnormally interrupted uploading task in the electronic device according to the name of the slice file uploaded by the abnormally interrupted uploading task, if the file name of the to-be-continued slice file is the same as the name of the slice file uploaded by the abnormally interrupted uploading task and the file content is different, the uploaded slice files cannot be finally merged into the file to be uploaded. However, if the feature information of the to-be-continued slice file is compared with the slice file feature information in the mark body, the problem can be avoided.
S206, the electronic equipment uploads the searched file of the to-be-continued file to the server.
Wherein the method further comprises: and merging the fragment files of the first preset number after all the fragment files are uploaded.
The server judges whether all the fragment files are completely uploaded or not according to the file names of the fragment files and the total number of the fragment files; or, the server judges whether all the piece files are uploaded completely by judging whether all the block units are filled with the piece files. And if all the slice files are uploaded, merging all the slice files, and merging the slice files of the first preset number into the file to be uploaded after merging.
In addition, the related terms or explanations of the embodiments of the present application may refer to the contents described in the above embodiments.
It can be seen that in the technical scheme provided by the embodiment of the application, the files to be uploaded are subjected to fragmentation processing to obtain a first preset number of fragment files; marking the first preset number of the sheet files to generate a first preset number of mark bodies, wherein the first preset number of the sheet files correspond to the first preset number of the mark bodies one to one; uploading the first preset number of slice files to a server; when abnormal interruption occurs in uploading, throwing out an uploading task of the abnormal interruption; searching a to-be-continued file corresponding to the abnormally interrupted uploading task in the electronic equipment according to the mark body; and uploading the searched file of the to-be-continued piece to the server. Therefore, by implementing the technical scheme provided by the embodiment of the application, the fragment uploading technology is adopted to upload the large file, so that the time for uploading the large file is reduced, and the uploading efficiency is improved.
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating another file uploading method according to an embodiment of the present application. As shown in fig. 3, the file uploading method is applied to an electronic device, and includes:
s301, the electronic device carries out fragmentation processing on files needing to be uploaded to obtain a first preset number of fragment files.
S302, the electronic equipment marks the first preset number of the sheet files to generate a first preset number of mark bodies, wherein the first preset number of the sheet files correspond to the first preset number of the mark bodies one to one.
The tag body comprises file characteristic information such as file name, file format, file size, head file and tail file of the slice file.
S303, the electronic equipment uploads the first preset number of the slice files to a server.
It can be understood that the uploading of the first preset number of slice files to the server by the electronic device may be asynchronous uploading or synchronous uploading.
S304, when abnormal interruption occurs in uploading, the electronic equipment throws out an uploading task of the abnormal interruption.
S305, the electronic equipment searches for a mark body corresponding to the first file according to the file name of the first file uploaded by the abnormally interrupted uploading task.
S306, the electronic equipment obtains the file format, the file size, the head file and the tail file of the first file from the mark body corresponding to the first file.
S307, the electronic equipment searches the file to be continuously uploaded corresponding to the abnormally interrupted uploading task in the electronic equipment according to the file name, the file format, the file size, the head file and the tail file of the first file.
The method for searching the to-be-continued slice file corresponding to the abnormally interrupted uploading task in the electronic device by the electronic device according to the file name, the file format, the file size, the head file and the tail file of the first slice file includes: the electronic device may search for the to-be-continued file corresponding to the abnormally interrupted uploading task in the electronic device according to at least one of the feature information of the first file, such as the file name, the file format, the file size, the head file and the tail file of the file.
S308, the electronic equipment judges whether the searched file to be continuously transmitted is a compressed file.
It should be noted that, if the electronic device searches for the to-be-uploaded documentary file according to the filename of the first documentary file, the found to-be-uploaded documentary file may be multiple, or the content of the found to-be-uploaded documentary file may not be consistent with the content of the documentary file that actually needs to be uploaded. This is because the name of the file is easily changed, and therefore, by determining other characteristic information thereof, this problem can be effectively avoided.
S309, if the file to be continuously transmitted is a compressed file, the electronic device compares the file size of the file to be continuously transmitted with the file size of the first file.
S310, if the file size of the to-be-continued film file is successfully compared with the file size of the first film file, the electronic equipment compares the header file of the to-be-continued film file with the header file of the first film file.
S311, if the header file of the to-be-continued film file is successfully compared with the header file of the first film file, the electronic device uploads the to-be-continued film file to the server.
It can be understood that, if the comparison between the header file of the to-be-uploaded documentary file and the header file of the first documentary file fails, it indicates that the found to-be-uploaded documentary file is not the documentary file that actually needs to be uploaded, that is, the uploading fails.
And S312, if the to-be-continued documentary file is not a compressed file, the electronic equipment compares the file size and the tail file of the to-be-continued documentary file with the file size and the tail file of the first documentary file.
It can be understood that, since the operation of the service personnel may cause the to-be-uploaded slice file, which is originally a compressed file, to be already decompressed, the searched to-be-uploaded file may be a non-compressed file, but the content of the to-be-uploaded file may coincide with the slice file that actually needs to be uploaded.
S313, if the file size and the tail file of the to-be-continued fragment file are successfully compared with the file size and the tail file of the first fragment file, the electronic equipment compresses the to-be-continued fragment file.
It can be understood that, if the file size and the tail file of the to-be-continuously-transferred documentary file fail to be compared with the file size and the tail file of the first documentary file or one of them fails to be compared, it indicates that the found to-be-continuously-transferred documentary file is not a documentary file that actually needs to be uploaded, that is, the uploading fails.
And S314, the electronic equipment uploads the compressed file of the to-be-continued slice file to the server.
Wherein the method further comprises: and merging the fragment files of the first preset number after all the fragment files are uploaded.
It can be understood that, if all the slice files are uploaded, all the slice files are merged, and after merging, the first preset number of slice files are merged into the file to be uploaded.
In addition, the related terms or explanations of the embodiments of the present application may refer to the contents described in the above embodiments.
According to the technical scheme provided by the embodiment of the application, when the file uploading is abnormally interrupted, the electronic equipment searches the to-be-continued file corresponding to the file name, the file format, the file size, the head file and the tail file of the first file uploaded by the abnormally interrupted uploading task in the electronic equipment according to at least one characteristic of the file name, the file format and the file size of the first file; then judging the file format of the searched file to be continuously transmitted; if the file to be continuously transmitted is a compressed file, comparing the size of the file to be continuously transmitted with the size of the first file, comparing the header file of the file to be continuously transmitted with the header file of the first file after the comparison is successful, and uploading the file to a server if the comparison is successful; if the file to be continuously transmitted is a non-compressed file, comparing the file size and the tail file with the file size and the tail file of the first file, compressing the file after the comparison is successful, and uploading the compressed file to the server. Therefore, by implementing the embodiment of the application, the problems that the uploaded piece file content is inconsistent with the actually uploaded piece file content, so that the piece file content cannot be combined and needs to be uploaded again can be effectively avoided, the uploading time of the large file is reduced from another angle, and the uploading efficiency is further improved.
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating another file uploading method according to an embodiment of the present application. As shown in fig. 4, the file uploading method is applied to an electronic device, and includes:
s401, the electronic device carries out fragmentation processing on files needing to be uploaded to obtain a first preset number of fragment files.
S402, the electronic equipment marks the first preset number of the piece files to generate a first preset number of mark bodies, wherein the first preset number of the piece files correspond to the first preset number of the mark bodies one to one.
S403, the electronic device sends a file uploading request to the server, wherein the file uploading request is used for requesting the server to create a second preset number of storage block units, and each block unit can store a third preset number of piece files.
It can be understood that the slice files uploaded to the server by the electronic device may be stored in the storage block units, and the number of the slice files that can be stored in all the storage block units exceeds the first preset number.
It should be noted that the electronic device sends a file upload request to the server, where the upload request may include information about the number of storage block units that need to be created and information about the size of each block unit that can store a slice file, that is, the electronic device directly tells the server that a second preset number of storage block units need to be created through the upload request, and each created block unit needs to store a third preset number of slice files. Or the uploading request includes the number of the piece files to be uploaded and the size of each piece file, the server may calculate, according to the number of the piece files to be uploaded and the size of each piece file, a storage block unit that needs to be created by a second preset number, and each created block unit needs to be capable of storing a third preset number of piece files; or, the server may calculate, according to the number of the slice files to be uploaded and the size of each slice file, creation schemes of multiple sets of storage block units, send the multiple sets of creation schemes to the electronic device, and select one of the multiple sets of creation schemes by the user.
For example, suppose the file to be uploaded is an image file, the file size is 2048MB, 2048 slice files are obtained after the slicing processing, and the size of each slice file is 1 MB; the electronic equipment sends a file uploading request to the server, wherein the uploading request comprises that 16 storage block units need to be created, and each storage block unit stores 128 1MB slice files; the server directly creates 16 storage block units that can store 128 slice files of 1 MB. Or, the upload request includes that the number of the slice files to be uploaded is 2048, and the size of each slice file is 1 MB; after receiving the upload request, the server performs calculation to obtain multiple sets of schemes, for example: the method comprises the steps of creating a plurality of creation schemes such as 32 storage block units capable of storing 64 1MB slice files, 16 storage block units capable of storing 128 1MB slice files, 8 storage block units capable of storing 256 1MB slice files and the like, and selecting one of the creation schemes.
S404, the electronic equipment uploads the slice file to one of the storage block units.
It can be understood that the uploading of the first preset number of slice files to the block unit by the electronic device may be asynchronous uploading or synchronous uploading.
S405, the electronic equipment receives uploading progress information sent by the server, wherein the uploading progress information comprises the quantity information of the sheet files stored in the storage block unit.
S406, the electronic device judges whether the number of the stored piece files in the storage block unit reaches a third preset number according to the uploading progress information.
And S407, if the number of the stored piece files in the storage block unit reaches a third preset number, the electronic device uploads the piece files to another storage block unit until all the piece files of the first preset number are uploaded to the server.
Wherein, it can be understood that the method can further comprise: the method comprises the steps that each time the electronic equipment successfully uploads one piece of file to a storage block unit in a server, the server sends uploading progress information to a client, and the uploading progress information comprises the number information of the uploaded piece of files; the electronic equipment judges whether the number of the uploaded piece files reaches a first preset number or not; if the number does not reach the first preset number, the electronic equipment uploads the next piece of file to the server; when the server finds that the storage block unit is full of the piece files, after the last piece file uploaded by the storage block unit is successfully uploaded, the uploading progress information sent by the server to the electronic equipment further comprises prompt information for informing the client that the piece files are not uploaded in the block unit any more; and the electronic equipment uploads the slice file to other storage block units according to the prompt message.
S408, when abnormal interruption occurs in uploading, the electronic equipment throws out the uploading task of the abnormal interruption.
And S409, the electronic equipment searches the to-be-continued file corresponding to the abnormally interrupted uploading task in the electronic equipment according to the mark body.
And S410, the electronic equipment uploads the searched file of the to-be-continued file to the server.
Wherein the method further comprises: and merging the fragment files of the first preset number after all the fragment files are uploaded.
It can be understood that, if all the slice files are uploaded, all the slice files are merged, and after merging, the first preset number of slice files are merged into the file to be uploaded.
In addition, the related terms or explanations of the embodiments of the present application may refer to the contents described in the above embodiments.
It can be seen that, in the technical solution provided in the embodiment of the present application, after the electronic device fragments the file to be uploaded, an upload request is sent to the server according to the fragmentation result, where the upload request is used to enable the server to create a storage block unit according to the fragmentation result, the fragment file uploaded to the server by the electronic device is stored in the storage block unit, and then the fragment files stored in the block unit are directly merged into the file to be uploaded. Therefore, by implementing the embodiment of the application, the time for combining the slice files can be effectively reduced, so that the time for uploading the files is reduced, and the uploading efficiency is further improved.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software elements for performing the respective functions in order to implement the above-described functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Referring to fig. 5, fig. 5 is a block diagram illustrating functional units of a file uploading apparatus according to an embodiment of the present application. As shown in fig. 5, the file uploading apparatus 500 is applied to an electronic device, and the file uploading apparatus 500 includes the following logic units:
the fragmentation unit 501 is configured to perform fragmentation processing on files to be uploaded to obtain a first preset number of fragment files;
a marking unit 502, configured to mark the first preset number of piece files to generate a first preset number of mark bodies, where the first preset number of piece files corresponds to the first preset number of mark bodies one to one;
a first uploading unit 503, configured to upload the first preset number of slice files to a server;
a throwing unit 504, configured to throw out, when an abnormal interrupt occurs in uploading, an uploading task of the abnormal interrupt;
a searching unit 505, configured to search, according to the tag body, a to-be-continued slice file corresponding to the abnormally interrupted uploading task;
a second uploading unit 506, configured to upload the found to-be-transferred film file to the server.
Optionally, the marking unit 502 includes:
an extracting subunit, configured to extract feature information of each of the first preset number of patch files;
and the generating subunit is used for generating a first preset number of marking bodies used for marking each piece file according to the characteristic information of each piece file.
Optionally, the tag body includes a file name, a file format, a file size, a header file and a footer file of the slice file, and the searching unit 505 includes:
the first searching subunit is used for searching a mark body corresponding to the first file according to the file name of the first file uploaded by the abnormally interrupted uploading task;
the acquiring subunit is configured to acquire the file format, the file size, and the header file and the trailer file of the first file from the tag body corresponding to the first file;
and the second searching subunit is used for searching the to-be-continued file corresponding to the abnormally interrupted uploading task in the electronic equipment according to the file name, the file format, the file size, the head file and the tail file of the first file.
Optionally, the second uploading unit 506 includes:
the first judging subunit is used for judging whether the searched file to be continuously transmitted is a compressed file;
the first comparison subunit is configured to compare the file size of the to-be-continued slice file with the file size of the first slice file if the to-be-continued slice file is a compressed file;
the second comparison subunit is configured to compare the header file of the to-be-continued documentary file with the header file of the first documentary file if the file size of the to-be-continued documentary file is successfully compared with the file size of the first documentary file;
and the first uploading subunit is configured to upload the to-be-continued fragment file to the server if the comparison between the header file of the to-be-continued fragment file and the header file of the first fragment file is successful.
Optionally, the second uploading unit 506 further includes:
the first judging subunit is further configured to judge whether the searched to-be-continued-transfer file is a compressed file;
a third comparison subunit, configured to compare, if the to-be-continued documentary file is a non-compressed file, the file size and the end file of the to-be-continued documentary file with the file size and the end file of the first documentary file;
the compressing subunit is configured to compress the to-be-continued fragment file if the file size and the tail file of the to-be-continued fragment file are successfully compared with the file size and the tail file of the first fragment file;
and the second uploading subunit is used for uploading the compressed file of the to-be-continued fragment file to the server.
Optionally, the first uploading unit 503 includes:
the sending sub-unit is used for sending a file uploading request to the server, wherein the file uploading request is used for requesting the server to create a second preset number of storage block units, and each block unit can store a third preset number of piece files;
and the third uploading subunit is used for uploading the first preset number of slice files to the second preset number of storage block units.
Optionally, the third uploading subunit includes:
the fourth uploading subunit is used for uploading the slice file to one of the storage block units;
the receiving subunit is configured to receive upload progress information sent by the server, where the upload progress information includes information on the number of the slice files stored in the storage block unit;
the second judging subunit is configured to judge whether the number of the stored slice files in the storage block unit reaches a third preset number according to the upload progress information;
the fourth uploading subunit is further configured to, if the number of the slice files already stored in the storage block unit reaches a third preset number, upload the slice files to another storage block unit until all the slice files of the first preset number are uploaded to the server.
In addition, the related terms or explanations of the embodiments of the present application may refer to the contents described in the above-mentioned method embodiments.
It can be seen that, the file uploading device provided in the embodiment of the present application performs fragmentation processing on files to be uploaded to obtain a first preset number of fragment files; marking the first preset number of the sheet files to generate a first preset number of mark bodies, wherein the first preset number of the sheet files correspond to the first preset number of the mark bodies one to one; uploading the first preset number of slice files to a server; when abnormal interruption occurs in uploading, throwing out an uploading task of the abnormal interruption; searching a to-be-continued file corresponding to the abnormally interrupted uploading task in the electronic equipment according to the mark body; and uploading the searched file of the to-be-continued piece to the server. Therefore, by implementing the technical scheme provided by the embodiment of the application, the fragment uploading technology is adopted to upload the large file, so that the time for uploading the large file is reduced, and the uploading efficiency is improved.
Referring to fig. 6 in accordance with the embodiment shown in fig. 5, fig. 6 is a schematic structural diagram of an electronic device 600 according to an embodiment of the present application, and as shown in the figure, the electronic device 600 includes an application processor 610, a memory 620, a communication interface 630, and one or more programs 621, where the one or more programs 621 are stored in the memory 620 and configured to be executed by the application processor 610, and when the one or more programs 621 are executed, the processor 610 performs the following operations: carrying out fragmentation processing on files to be uploaded to obtain a first preset number of fragment files; marking the first preset number of the sheet files to generate a first preset number of mark bodies, wherein the first preset number of the sheet files correspond to the first preset number of the mark bodies one to one; uploading the first preset number of slice files to a server; when abnormal interruption occurs in uploading, throwing out an uploading task of the abnormal interruption; searching a to-be-continued file corresponding to the abnormally interrupted uploading task in the electronic equipment according to the mark body; and uploading the searched file of the to-be-continued piece to the server.
Optionally, the processor 610 further performs the following operations: extracting feature information of each piece of file in the first preset number of pieces of files; and generating a first preset number of marking bodies for marking each piece file according to the characteristic information of each piece file.
Optionally, the tag body includes a file name, a file format, a file size, a header file and a footer file of the slice file, and the processor 610 further performs the following operations: searching a mark body corresponding to the first file according to the file name of the first file uploaded by the abnormally interrupted uploading task; acquiring the file format, the file size, the head file and the tail file of the first file from the mark body corresponding to the first file; and searching the file to be continuously uploaded corresponding to the abnormally interrupted uploading task in the electronic equipment according to the file name, the file format, the file size, the head file and the tail file of the first file.
Optionally, the processor 610 further performs the following operations: judging whether the searched file to be continuously transmitted is a compressed file; if the file to be continuously transmitted is a compressed file, comparing the file size of the file to be continuously transmitted with the file size of the first file; if the file size of the to-be-continued file is successfully compared with the file size of the first file, comparing the header file of the to-be-continued file with the header file of the first file; and if the header file of the to-be-continued film file is successfully compared with the header file of the first film file, uploading the to-be-continued film file to the server.
Optionally, the processor 610 further performs the following operations: judging whether the searched file to be continuously transmitted is a compressed file; if the file to be continuously transmitted is not a compressed file, comparing the file size and the tail file of the file to be continuously transmitted with the file size and the tail file of the first file; if the file size and the tail file of the to-be-continued fragment file are successfully compared with the file size and the tail file of the first fragment file, compressing the to-be-continued fragment file; and uploading the compressed file of the to-be-continued fragment file to the server.
Optionally, the processor 610 further performs the following operations: sending a file uploading request to the server, wherein the file uploading request is used for requesting the server to create a second preset number of storage block units, and each block unit can store a third preset number of piece files; and uploading the slice files of the first preset number to the storage block units of the second preset number.
Optionally, the processor 610 further performs the following operations: uploading a slice file to one of the storage block units; receiving uploading progress information sent by the server, wherein the uploading progress information comprises the quantity information of the stored piece files in the storage block unit; judging whether the number of the stored slice files in the storage block unit reaches a third preset number or not according to the uploading progress information; and if the number of the stored piece files in the storage block unit reaches a third preset number, uploading the piece files to another storage block unit until all the piece files of the first preset number are uploaded to the server.
In addition, the related terms or explanations of the embodiments of the present application may refer to the contents described in the above-mentioned method embodiments.
It can be seen that, in the electronic device provided in the embodiment of the present application, the files to be uploaded are subjected to fragmentation processing to obtain a first preset number of fragment files; marking the first preset number of the sheet files to generate a first preset number of mark bodies, wherein the first preset number of the sheet files correspond to the first preset number of the mark bodies one to one; uploading the first preset number of slice files to a server; when abnormal interruption occurs in uploading, throwing out an uploading task of the abnormal interruption; searching a to-be-continued file corresponding to the abnormally interrupted uploading task in the electronic equipment according to the mark body; and uploading the searched file of the to-be-continued piece to the server. Therefore, by implementing the technical scheme provided by the embodiment of the application, the fragment uploading technology is adopted to upload the large file, so that the time for uploading the large file is reduced, and the uploading efficiency is improved.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and elements referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A file uploading method is applied to an electronic device, and comprises the following steps:
carrying out fragmentation processing on files to be uploaded to obtain a first preset number of fragment files;
marking the first preset number of the sheet files to generate a first preset number of mark bodies, wherein the first preset number of the sheet files correspond to the first preset number of the mark bodies one to one;
uploading the first preset number of slice files to a server;
when abnormal interruption occurs in uploading, throwing out an uploading task of the abnormal interruption;
searching a to-be-continued file corresponding to the abnormally interrupted uploading task in the electronic equipment according to the mark body;
and uploading the searched file of the to-be-continued piece to the server.
2. The method according to claim 1, wherein the marking the first preset number of patch files to generate a first preset number of marked bodies comprises:
extracting feature information of each piece of file in the first preset number of pieces of files;
and generating a first preset number of marking bodies for marking each piece file according to the characteristic information of each piece file.
3. The method according to claim 1 or 2, wherein the tag body includes a file name, a file format, a file size, a header file and a footer file of a clip file, and the searching for the clip file to be continuously uploaded in the electronic device corresponding to the abnormally interrupted upload task according to the tag body includes:
searching a mark body corresponding to the first file according to the file name of the first file uploaded by the abnormally interrupted uploading task;
acquiring the file format, the file size, the head file and the tail file of the first file from the mark body corresponding to the first file;
and searching the file to be continuously uploaded corresponding to the abnormally interrupted uploading task in the electronic equipment according to the file name, the file format, the file size, the head file and the tail file of the first file.
4. The method according to claim 3, wherein the uploading the searched to-be-continued slice file to the server comprises:
judging whether the searched file to be continuously transmitted is a compressed file;
if the file to be continuously transmitted is a compressed file, comparing the file size of the file to be continuously transmitted with the file size of the first file;
if the file size of the to-be-continued file is successfully compared with the file size of the first file, comparing the header file of the to-be-continued file with the header file of the first file;
and if the header file of the to-be-continued film file is successfully compared with the header file of the first film file, uploading the to-be-continued film file to the server.
5. The method according to claim 3, wherein the uploading the searched to-be-continued slice file to the server comprises:
judging whether the searched file to be continuously transmitted is a compressed file;
if the file to be continuously transmitted is not a compressed file, comparing the file size and the tail file of the file to be continuously transmitted with the file size and the tail file of the first file;
if the file size and the tail file of the to-be-continued fragment file are successfully compared with the file size and the tail file of the first fragment file, compressing the to-be-continued fragment file;
and uploading the compressed file of the to-be-continued fragment file to the server.
6. The method according to any one of claims 1 to 5, wherein said uploading said first preset number of slice files to a server comprises:
sending a file uploading request to the server, wherein the file uploading request is used for requesting the server to create a second preset number of storage block units, and each storage block unit can store a third preset number of piece files;
and uploading the slice files of the first preset number to the storage block units of the second preset number.
7. The method according to claim 6, wherein the uploading the first preset number of slice files to the second preset number of storage block units comprises:
uploading a slice file to one of the storage block units;
receiving uploading progress information sent by the server, wherein the uploading progress information comprises the quantity information of the stored piece files in the storage block unit;
judging whether the number of the stored slice files in the storage block unit reaches a third preset number or not according to the uploading progress information;
and if the number of the stored piece files in the storage block unit reaches a third preset number, uploading the piece files to another storage block unit until all the piece files of the first preset number are uploaded to the server.
8. A file uploading device is applied to electronic equipment, and the device comprises:
the file uploading system comprises a fragmentation unit, a file uploading unit and a file uploading unit, wherein the fragmentation unit is used for carrying out fragmentation processing on files needing to be uploaded to obtain a first preset number of fragment files;
the marking unit is used for marking the first preset number of the sheet files to generate a first preset number of mark bodies, wherein the first preset number of the sheet files correspond to the first preset number of the mark bodies one by one;
the first uploading unit is used for uploading the first preset number of the piece files to a server;
the throwing unit is used for throwing the uploading task of the abnormal interruption when the uploading is abnormally interrupted;
the searching unit is used for searching the to-be-continued file corresponding to the abnormally interrupted uploading task according to the mark body;
and the second uploading unit is used for uploading the searched file of the to-be-continued piece to the server.
9. An electronic device, wherein the server comprises a processor and a memory, the processor being configured to implement the steps of the method according to any one of claims 1-7 when executing the computer program stored in the memory.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1-7.
CN202010022222.9A 2020-01-09 2020-01-09 File uploading method and related products Active CN111225058B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010022222.9A CN111225058B (en) 2020-01-09 2020-01-09 File uploading method and related products
PCT/CN2020/103252 WO2021139132A1 (en) 2020-01-09 2020-07-21 File uploading method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010022222.9A CN111225058B (en) 2020-01-09 2020-01-09 File uploading method and related products

Publications (2)

Publication Number Publication Date
CN111225058A true CN111225058A (en) 2020-06-02
CN111225058B CN111225058B (en) 2023-11-03

Family

ID=70832262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010022222.9A Active CN111225058B (en) 2020-01-09 2020-01-09 File uploading method and related products

Country Status (2)

Country Link
CN (1) CN111225058B (en)
WO (1) WO2021139132A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021139132A1 (en) * 2020-01-09 2021-07-15 深圳壹账通智能科技有限公司 File uploading method and related product
CN113572834A (en) * 2021-07-21 2021-10-29 广东科诺勘测工程有限公司 Patrol data uploading method, device and system and storage medium
CN113992938A (en) * 2021-10-22 2022-01-28 兰州乐智教育科技有限责任公司 Video uploading method and device, electronic equipment and computer readable storage medium
CN114866533A (en) * 2022-04-28 2022-08-05 麦加芯彩新材料科技(上海)股份有限公司 File uploading method and device and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873443A (en) * 2012-12-13 2014-06-18 联想(北京)有限公司 Information processing method, local proxy server and network proxy server
CN104468843A (en) * 2014-12-31 2015-03-25 浪潮软件股份有限公司 File uploading method and device
US20150163301A1 (en) * 2013-12-06 2015-06-11 Cellco Partnership D/B/A Verizon Wireless System for and method for media upload multithreading for large file uploads
CN104715070A (en) * 2015-04-01 2015-06-17 武汉中科通达高新技术股份有限公司 Large image file as well as generation and read method thereof
CN106776747A (en) * 2016-11-17 2017-05-31 乐视控股(北京)有限公司 File acquisition and the method for transmission, device and electronic equipment
CN106817391A (en) * 2015-12-01 2017-06-09 百度在线网络技术(北京)有限公司 Document breakpoint transmission method and apparatus
CN106921682A (en) * 2015-12-24 2017-07-04 百度在线网络技术(北京)有限公司 File uploading method and device
CN107707679A (en) * 2017-11-27 2018-02-16 小草数语(北京)科技有限公司 File uploading method and device
WO2019222934A1 (en) * 2018-05-23 2019-11-28 优视科技新加坡有限公司 File processing method, apparatus and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7913115B1 (en) * 2008-04-30 2011-03-22 Netapp, Inc. Core file transfer
CN111225058B (en) * 2020-01-09 2023-11-03 深圳壹账通智能科技有限公司 File uploading method and related products

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873443A (en) * 2012-12-13 2014-06-18 联想(北京)有限公司 Information processing method, local proxy server and network proxy server
US20150163301A1 (en) * 2013-12-06 2015-06-11 Cellco Partnership D/B/A Verizon Wireless System for and method for media upload multithreading for large file uploads
CN104468843A (en) * 2014-12-31 2015-03-25 浪潮软件股份有限公司 File uploading method and device
CN104715070A (en) * 2015-04-01 2015-06-17 武汉中科通达高新技术股份有限公司 Large image file as well as generation and read method thereof
CN106817391A (en) * 2015-12-01 2017-06-09 百度在线网络技术(北京)有限公司 Document breakpoint transmission method and apparatus
CN106921682A (en) * 2015-12-24 2017-07-04 百度在线网络技术(北京)有限公司 File uploading method and device
CN106776747A (en) * 2016-11-17 2017-05-31 乐视控股(北京)有限公司 File acquisition and the method for transmission, device and electronic equipment
CN107707679A (en) * 2017-11-27 2018-02-16 小草数语(北京)科技有限公司 File uploading method and device
WO2019222934A1 (en) * 2018-05-23 2019-11-28 优视科技新加坡有限公司 File processing method, apparatus and system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021139132A1 (en) * 2020-01-09 2021-07-15 深圳壹账通智能科技有限公司 File uploading method and related product
CN113572834A (en) * 2021-07-21 2021-10-29 广东科诺勘测工程有限公司 Patrol data uploading method, device and system and storage medium
CN113572834B (en) * 2021-07-21 2024-03-22 广东科诺勘测工程有限公司 Patrol data uploading method, device, system and storage medium
CN113992938A (en) * 2021-10-22 2022-01-28 兰州乐智教育科技有限责任公司 Video uploading method and device, electronic equipment and computer readable storage medium
CN113992938B (en) * 2021-10-22 2024-04-19 兰州乐智教育科技有限责任公司 Video uploading method and device, electronic equipment and computer readable storage medium
CN114866533A (en) * 2022-04-28 2022-08-05 麦加芯彩新材料科技(上海)股份有限公司 File uploading method and device and electronic equipment

Also Published As

Publication number Publication date
CN111225058B (en) 2023-11-03
WO2021139132A1 (en) 2021-07-15

Similar Documents

Publication Publication Date Title
CN111225058A (en) File uploading method and related product
JP4642697B2 (en) Image display device having image cache memory
CN103207870B (en) Photo classification management method, server, device and system
CN110446062B (en) Receiving processing method for big data file transmission, electronic device and storage medium
US20170164027A1 (en) Video recommendation method and electronic device
US9589063B2 (en) Two-dimensional code processing method and terminal
US10681115B2 (en) Multimedia data transmission method and device
CN111935227A (en) Method for uploading file through browser, browser and electronic equipment
US10033930B2 (en) Method of reducing a video file size for surveillance
GB2404803A (en) Image editing and distribution system
CN112235632A (en) Video processing method and device and server
CN112788090B (en) Network resource transmission method, device and system
CN106332556B (en) Method and terminal for transmitting cloud files and cloud server
JP5967164B2 (en) Form system, processing method thereof, and program
CN106358058A (en) Method and system for uploading video files and supporting breakpoint continuous uploading characteristic
EP2829070B1 (en) Method and apparatus for reducing duplicates of multimedia data items in service system
CN110838969B (en) Picture transmission method, device, equipment and medium
CN108834171B (en) Image method and device
US20010027466A1 (en) Electronic mail transfer device and system, electronic mail transfer method
US20220191345A1 (en) System and method for determining compression rates for images comprising text
CN109672710B (en) File uploading method, system and equipment
CN111432271B (en) Multi-screen interaction method and system
US10409773B2 (en) Method and device for cleaning up terminal resource and terminal
CN111343231B (en) Data extraction method and device for instant messaging, computer system and readable storage medium
CN115037741B (en) File transmission method and device

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