File transmission method and device, electronic device, and program

The described file transmission method and device address inefficiencies by providing real-time download initiation and progress tracking, enhancing efficiency and user experience in file transfers.

JP2026500637APending Publication Date: 2026-01-08TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2025534369
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-09-01
Filing Date
2024-07-08
Publication Date
2026-01-08

AI Technical Summary

Technical Problem

Current file transmission methods between sending and receiving terminals are inefficient, leading to low transmission efficiency and user dissatisfaction.

Method used

Implementing a file transmission method and device that includes displaying file receiving and sending pages with controls, allowing real-time download initiation and progress tracking, and utilizing a server to manage file blocks and associated information for seamless transmission.

Benefits of technology

Enhances file transmission efficiency and user experience by enabling real-time download initiation and progress monitoring, improving the overall file transfer process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2026500637000001_ABST
    Figure 2026500637000001_ABST
Patent Text Reader

Abstract

Provided is a file transmission method executed by a receiving terminal, the method includes the steps of: displaying a file receiving page and displaying a receiving control for a target file on the file receiving page, where the target file is a file transmitted from a sending terminal to a receiving terminal (S201); in response to a trigger operation on the receiving control, during the sending terminal's process of transmitting the target file, starting to download the contents of the target file already transmitted from the sending terminal, displaying a file download page for the target file, and displaying file transmission status information on the file download page, indicating that the sending terminal is transmitting the target file; and when the sending terminal has completed transmitting the target file, displaying download progress information on the file download page, indicating that some contents of the target file have been downloaded (S203).
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] (CROSS-REFERENCE TO RELATED APPLICATIONS) This application claims priority to a Chinese patent application filed on September 1, 2023, bearing application number 202311131821.4 and entitled "File transmission method and device therefor, electronic device, storage medium, and program product," the entire contents of which are incorporated herein by reference.

[0002] The present application relates to the field of data transmission technology, in particular to a file transmission method and apparatus, an electronic device, a storage medium, and a program product, where the storage medium is a computer-readable storage medium and the program product is a computer program product. [Background technology]

[0003] With the development of data transmission technology, a sending terminal and a receiving terminal can realize various transmission services such as a text message transmission service, a file transmission service, etc. by using data transmission technology.

[0004] Here, with regard to file transmission services, a method is currently generally adopted in which a sending terminal uploads a file to a server using a communication application, and after the file upload is completed, a receiving terminal downloads the file from the server. This method does not allow for fast transmission of files from the sending terminal to the receiving terminal.

[0005] For these reasons, there is currently a problem in that file transmission efficiency between a sending terminal and a receiving terminal is low. Summary of the Invention [Problem to be solved by the invention]

[0006] The embodiments of the present application provide a file transmission method and device, an electronic device, a storage medium, and a program product. [Means for solving the problem]

[0007] A file transmission method executed by a receiving terminal, comprising: displaying a file receiving page and displaying a receiving control for a target file on the file receiving page, the target file being a file transmitted from a transmitting terminal to the receiving terminal; In response to a trigger operation on the receiving control, during the process of the sending terminal sending the target file, starting to download the contents of the target file already sent from the sending terminal, displaying a file download page of the target file, and displaying file transmission status information on the file download page, wherein the file transmission status information indicates that the sending terminal is sending the target file; When the sending terminal completes sending the target file, displaying download progress information on the file download page, indicating that a portion of the target file has been downloaded.

[0008] Correspondingly, an embodiment of the present application provides a file transmission device, the device comprising: a first display unit configured to display a file receiving page and display a receiving control for a target file on the file receiving page, the target file being a file transmitted from a transmitting terminal to the file transmission device; a download unit configured to, in response to a trigger operation on the receiving control, start downloading the content of the target file already transmitted from the transmitting terminal during the process of the transmitting terminal transmitting the target file; a second display unit configured to display a file download page of the target file in response to a trigger operation on the receiving control, and display file transmission status information on the file download page, the file transmission status information indicating that the sending terminal is transmitting the target file; and and a third display unit configured to display download progress information on the file download page when the sending terminal completes sending the target file, the download progress information indicating that some content of the target file has been downloaded.

[0009] The present application further provides another file transmission method, performed by a sending terminal, the method comprising: displaying a file sending page, and displaying a mark of the target file and a sending control for the target file on the file sending page; transmitting the target file to a receiving terminal in response to a trigger operation on the transmission control, thereby causing the receiving terminal to start downloading the contents of the target file that have already been transmitted from the transmitting terminal during the process of the transmitting terminal transmitting the target file; displaying a file transmission page for the target file, the file transmission page including a transmission progress mark for the target file;

[0010] Correspondingly, the present application provides another file transmission device, the device comprising: a fourth display unit configured to display a file sending page and display a mark of a target file and a sending control for the target file on the file sending page; a sending unit configured to, in response to a trigger operation on the sending control, send the target file to a receiving terminal, thereby causing the receiving terminal to start downloading the content of the target file that has already been sent from the file transmission device during the process of the file transmission device sending the target file; a fifth display unit configured to display a file transmission page of the target file, the file transmission page including a transmission progress mark of the target file;

[0011] The present application further provides another file transmission method, performed by a target server, the method comprising: receiving at least one current file block of a target file sent from a sending terminal and related file upload information of the current file block; updating a predetermined file set based on the current file block and the related file upload information to obtain an updated file set; When receiving target file download information transmitted from a receiving terminal, screening the file block corresponding to the target file download information and the associated file download information corresponding to the file block from the predetermined file set; returning the file blocks and the associated file download information to the receiving terminal, thereby causing the receiving terminal to obtain the target file when the sending terminal transmits the target file.

[0012] Correspondingly, the present application provides another file transmission device, the device comprising: a receiving unit configured to receive at least one current file block of a target file sent from a sending terminal and related file upload information of the current file block; an updating unit configured to update a predetermined file set based on the current file block and the related file upload information to obtain an updated file set; a screening unit configured to, when receiving target file download information transmitted from a receiving terminal, screen file blocks corresponding to the target file download information from the predetermined file set and related file download information corresponding to the file blocks; a returning unit configured to return the file blocks and the associated file download information to the receiving terminal, thereby causing the receiving terminal to obtain the target file when the sending terminal sends the target file.

[0013] Furthermore, an embodiment of the present invention further provides an electronic device comprising a processor and a memory, wherein an application is stored in the memory, and the processor executes the application in the memory to realize a file transmission method according to an embodiment of the present invention.

[0014] Furthermore, an embodiment of the present application further provides a computer-readable storage medium storing a computer program that, when loaded by a processor, causes the processor to execute any of the file transmission methods according to the embodiments of the present application.

[0015] Furthermore, an embodiment of the present application further provides a computer program product including a computer program that, when executed by a processor, causes the processor to implement any of the file transmission methods according to the embodiments of the present application.

[0016] The details of one or more embodiments of the application are set forth in the drawings and description below. Other features, objects, and advantages of the application will become apparent from the description, drawings, and claims. [Brief explanation of the drawings]

[0017] [Figure 1] 1 is a scenario schematic diagram of a file transmission method according to an embodiment of the present application; [Figure 2]1 is an exemplary flowchart 1 of a file transmission method according to an embodiment of the present application; [Figure 3] 1 is a schematic diagram 1 of a file message display page according to an embodiment of the present application. [Figure 4] FIG. 1 is a schematic diagram of a file receiving page according to an embodiment of the present application. [Figure 5] FIG. 10 is a schematic diagram of a file receiving termination page according to an embodiment of the present application. [Figure 6] 2 is a schematic diagram 2 of a file message display page according to an embodiment of the present application. [Figure 7] 1 is a schematic diagram 1 of a file download page according to an embodiment of the present application. [Figure 8] 3 is a schematic diagram of a file message display page according to an embodiment of the present application; [Figure 9] 2 is a schematic diagram 2 of a file download page according to an embodiment of the present application. [Figure 10] 4 is a schematic diagram of a file message display page according to an embodiment of the present application. [Figure 11] FIG. 10 is a schematic diagram of a file reception cancel page according to an embodiment of the present application; [Figure 12] 5 is a schematic diagram of a file message display page according to an embodiment of the present application. [Figure 13] 6 is a schematic diagram of a file message display page according to an embodiment of the present application. [Figure 14] FIG. 1 is a schematic diagram of a file expiration page according to an embodiment of the present application; [Figure 15] FIG. 1 is a schematic diagram of an expiration indication page according to an embodiment of the present application; [Figure 16] 2 is an exemplary flowchart 2 of a file transmission method according to an embodiment of the present application; [Figure 17] 3 is an exemplary flowchart 3 of a file transmission method according to an embodiment of the present application. [Figure 18] 1 is a schematic diagram of a file transfer page according to an embodiment of the present application; [Figure 19]2 is a schematic diagram of a file transfer page according to an embodiment of the present application; [Figure 20] FIG. 10 is a schematic diagram of a retransmit page according to an embodiment of the present application. [Figure 21] 3 is a schematic diagram of a file transfer page according to an embodiment of the present application; [Figure 22] 4 is a schematic diagram of a file transfer page according to an embodiment of the present application; [Figure 23] 5 is a schematic diagram of a file transfer page according to an embodiment of the present application; [Figure 24] 6 is a schematic diagram of a file transfer page according to an embodiment of the present application. [Figure 25] FIG. 10 is a schematic diagram of a candidate retransmission page according to an embodiment of the present application; [Figure 26] 4 is an exemplary flowchart 4 of a file transmission method according to an embodiment of the present application. [Figure 27] 5 is an exemplary flowchart 5 of a file transmission method according to an embodiment of the present application. [Figure 28] 1 is a schematic diagram of a file transmission method according to an embodiment of the present application; [Figure 29] 2 is an exemplary timing chart of a file transmission method according to an embodiment of the present application; [Figure 30] FIG. 2 is a schematic diagram of a target file sending process according to an embodiment of the present application; [Figure 31] FIG. 1 is a comparison diagram of the effects of the present application and existing related art. [Figure 32] 1 is an exemplary structural diagram of a file transmission device according to an embodiment of the present application; [Figure 33] 2 is an exemplary structural diagram of a file transmission device according to an embodiment of the present application; [Figure 34] 3 is an exemplary structural diagram of a file transmission device according to an embodiment of the present application; [Figure 35] 1 is an exemplary structural diagram of an electronic device according to an embodiment of the present application; DETAILED DESCRIPTION OF THE INVENTION

[0018] In order to make the technical solutions in the embodiments of the present application clearer, the above briefly introduces drawings necessary for describing the embodiments. The drawings in the above description are only some embodiments of the present application, and it is obvious to those skilled in the art that other drawings can also be obtained according to these drawings without any creative work.

[0019] The following clearly and completely describes the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application, but it is clear that the described embodiments are only a part of the embodiments of the present application, and are not all of the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present application.

[0020] The embodiments of the present application provide a file transmission method and device, an electronic device, a computer-readable storage medium, and a computer program product, where the file transmission device can be integrated into an electronic device, and the electronic device can be a server, a terminal, or other device.

[0021] Here, the server may be an independent physical server, a server cluster or a distributed system configured by multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), big data, and artificial intelligence platforms. The terminal may be, but is not limited to, a smartphone, tablet computer, notebook computer, desktop computer, smart speaker, smart watch, in-vehicle terminal, etc. The terminal and server may be directly or indirectly connected by wired or wireless communication, and this application does not limit the connection.

[0022] For example, referring to FIG. 1 , take the file transmission device integrated into an electronic device and the electronic device as a receiving terminal as an example. The receiving terminal displays a file receiving page and displays a receiving control for a target file on the file receiving page. The target file is a file transmitted from the transmitting terminal to the receiving terminal. In response to a trigger operation on the receiving control, during the process of the transmitting terminal transmitting the target file, the transmitting terminal starts downloading the content of the target file already transmitted from the transmitting terminal and displays a file download page for the target file. The file download page displays file transmission status information, which indicates that the transmitting terminal is transmitting the target file. When the transmitting terminal completes transmitting the target file, the file download page displays download progress information, which indicates that part of the content of the target file has been downloaded.

[0023] Here, the file transmission method according to the embodiment of the present application relates to a data transmission technology, and in response to a trigger operation on a target file reception control in a file reception page, the file transmission method causes the receiving terminal to download the target file transmitted from the sending terminal, and the receiving terminal displays file transmission status information on the file download page of the target file, so that when the sending terminal completes transmitting the target file, the receiving terminal downloads a portion of the target file, and the receiving terminal can display download progress information indicating that a portion of the target file has been downloaded. That is, according to the file transmission method, during the process in which the sending terminal transmits the target file, the receiving terminal can receive the target file in real time, thereby improving the efficiency of file transmission between the sending terminal and the receiving terminal and enhancing the user's file transmission experience and enthusiasm.

[0024] It should be understood that the specific embodiments of the present application involve related data such as target files, file blocks, file transmission status information, and download progress information, and if the following examples of the present application are applicable to specific products or technologies, permission or consent must be obtained, and the collection, use and processing of related data should comply with the relevant laws, regulations and standards of the relevant countries or regions.

[0025] Each of the embodiments will be described in detail below. Note that the order of description of the following embodiments does not limit the priority of the embodiments.

[0026] This embodiment is described from the perspective of a file transmission device, which may specifically be integrated into a receiving terminal, where the receiving terminal may include equipment such as a tablet computer, a notebook computer, a personal computer (PC), a wearable device, a virtual reality device, or other smart device capable of acquiring data.

[0027] A file transmission method executed by a receiving terminal, comprising: The method includes the steps of: displaying a file receiving page and displaying a receiving control for a target file on the file receiving page, where the target file is a file transmitted from a sending terminal to a receiving terminal; in response to a trigger operation on the receiving control, during the process of the sending terminal transmitting the target file, starting download of the contents of the target file already transmitted from the sending terminal, displaying a file download page for the target file, and displaying file transmission status information on the file download page, where the file transmission status information indicates that the sending terminal is transmitting the target file; and when the sending terminal completes transmitting the target file, displaying download progress information on the file download page indicating that part of the contents of the target file has been downloaded.

[0028] As shown in FIG. 2, the specific process of the file transmission method is as shown in steps S201 to S203.

[0029] In step S201, a file receiving page is displayed, and a receiving control for a target file is displayed on the file receiving page, where the target file is a file transmitted from a transmitting terminal to a receiving terminal.

[0030] Here, the target file is a file sent from the sending terminal to the receiving terminal, and the file receiving page includes a receiving control for the target file.

[0031] Here, the target file may include at least one file type or at least one file. Specifically, the target file may include at least one of the following: a text file, an image file, a video file, and an audio file, but is not limited thereto. If the target file is at least one of the following: a text file, an image file, a video file, and an audio file, each of the various files may include at least one file.

[0032] Of course, the target file may include at least two kinds of files, for example, the target file may include a text file and a video file. In this case, for example, by putting the text file and the video file into the same file package (e.g., a compressed file), the sending terminal can send the target file to the receiving terminal in the form of a file package (e.g., a compressed file), so that the receiving terminal can download the target file in the form of a file package.

[0033] Here, the receiving control may be a control for downloading and receiving the target file sent by the sending terminal. Specifically, the receiving control may be expressed in various formats on the file receiving page. For example, the receiving control may be expressed in the form of an icon, text, or a combination of an icon and text.

[0034] In step S201, the "display file receiving page" method may be: when the sending terminal starts to send the target file, display a file message display page corresponding to the target file, display a file display control on the file message display page, and display the file receiving page in response to a trigger operation on the file display control.

[0035] Here, the file message display page may be a page for displaying file-related content of the target file. The file-related content may include, but is not limited to, file-related messages and file-related controls of the target file. The file message display page may be an instant communication page. For example, the file message display page may be displayed by a receiving user of the receiving terminal logging in to an instant communication application, where the receiving user may refer to the account logged in to the instant communication application on the receiving terminal.

[0036] Here, the file display control can include information indicating that the sending terminal has started sending the target file. The representation format of the file display control on the file message display page includes an icon and text.

[0037] Regarding the step of "displaying a file reception page in response to a trigger operation on the file display control", the receiving terminal can display the file reception page in response to a click operation or a touch operation on the file display control.

[0038] In step S202, in response to the trigger operation on the receiving control, during the process of the sending terminal sending the target file, start downloading the content of the target file already sent from the sending terminal, display a file download page of the target file, and display file transmission status information on the file download page, where the file transmission status information indicates that the sending terminal is sending the target file.

[0039] Here, the file download page includes file transmission status information, i.e., the file download page displays file transmission status information, which indicates that the sending terminal is sending the target file.

[0040] Regarding step S202, in the present application, after the file receiving page is displayed, a file download page of the target file can be displayed in response to a trigger operation on the receiving control in the file receiving page.

[0041] Steps S201 and S202 are described below with a specific example. For example, if the target file is a text file, the sending user of the sending terminal can log in to the instant communication application, and the sending user may refer to the account logged in to the instant communication application of the sending terminal, and the receiving user of the receiving terminal can also log in to the instant communication application of the receiving terminal. Then, the sending terminal sends the text file to the receiving user of the receiving terminal by the sending user.

[0042] When the sending terminal starts sending the text file, the receiving terminal displays a file message display page for the text file using an instant communication application. As shown in FIG. 3, the file message display page may be an instant communication session page between the sending user and the receiving user. The instant communication session page displays the sending user's object identifier 31, and the display format of the object identifier may be an image. The instant communication session page may include a file display control 32, and the display format of the file display control includes an icon of the text file and the file name of the text file. As shown in FIG. 3, the file name of the text file may be "First Quarter Financial Report Data.key".

[0043] When an object (e.g., a user) performs a trigger operation on a file display control, the receiving terminal displays a file reception page in response to the trigger operation on the file display control. As shown in FIG. 4, the file reception page includes a text file reception control 41, a candidate file icon 42 for the text file, and a target return control 43. The file name of the text file is, for example, "First Quarter Financial Report Data.key", and the size attribute information of the text file is, for example, "File Size: 361MB".

[0044] Here, before the trigger operation on the receive control 41 is performed, the object can perform a click operation on the target return control 43 to display the file message display page shown in FIG.

[0045] In an embodiment of the present application, after the file download page of the target file is displayed, the sending terminal may stop sending the target file. Correspondingly, the receiving terminal responds to this situation. Specifically, when the sending terminal stops sending the target file, it displays a file receiving termination page, which includes a page return control and target file transmission termination instruction information. In response to a trigger operation on the page return control, it displays a file message display page, and displays a first file status indication mark on the file message display page, which indicates that the transmission of the target file has terminated.

[0046] Here, there may be various reasons why the sending terminal stops sending the target file, such as a network interruption or an object operating the sending terminal to stop sending the target file, where the object operating the sending terminal may, for example, cause the sending terminal to temporarily suspend the sending of the target file or cause the sending terminal to force-terminate the instant communication application.

[0047] Furthermore, if the sending terminal stops sending the target file and the stopping time exceeds a predetermined time threshold, a file receiving termination page can be displayed.

[0048] Here, the expression format of the page return control may be an icon or text. Here, the transmission stop instruction information may refer to information indicating that the sending terminal has stopped sending the target file.

[0049] Here, the target file is taken as an example. For example, in this application, when the sending terminal stops sending the text file, a file reception termination page is displayed. As shown in FIG. 5, the file reception termination page may include a page return control 51, a text file name such as "First Quarter Financial Report Data.key," size attribute information for the text file such as "File Size: 361 MB," and an instruction to stop transmission of the text file such as "The other party has stopped sending." When an object clicks on the page return control, the receiving terminal may display a file message display page in response to the click on the page return control. Then, as shown in FIG. 6, a first file status indicator 61 may be displayed on the file message display page. The first file status indicator 61 may be displayed as an icon. Here, the first file status indicator 61 may be displayed on the file display control 32.

[0050] In an embodiment of the present application, after the file download page of the target file is displayed, the download of the target file can be canceled, and then the download of the target file can be continued. For example, the file download page includes a cancel control, based on which the receiving terminal displays a file receiving page in response to a trigger operation on the cancel control, and continues the download of the target file in response to a trigger operation on the receive control on the file receiving page.

[0051] It can be seen that when the receiving terminal responds to the trigger operation on the cancel control, a file receiving page is displayed, in this case indicating that the receiving terminal has canceled the download of the target file.

[0052] Here, the target file is an example of a text file. For example, as shown in FIG. 7, the file download page displays file transmission status information such as "The other party is sending a file," a status icon 71 corresponding to the file transmission status information, and a cancel control 72. Here, the status icon 71 may be a dynamic icon. The cancel control on the file download page may be represented as a text mark such as "Cancel download." When the object clicks on the cancel control, the receiving terminal cancels the download of the text file and displays the file receiving page shown in FIG. 4. Then, when the object clicks on the receive control 41 on the file receiving page, the receiving terminal can continue downloading the text file in response to the trigger operation on the receive control.

[0053] Furthermore, when a click operation is performed on the receive control 41 in the file receiving page, the receiving terminal obtains the expiration status of the target file in response to the click operation on the receive control 41, where the expiration status may be a status indicating whether the target file has expired, and if the expiration status indicates that the target file has not expired, continues downloading the text file, and if the expiration status indicates that the target file has expired, displays a file expiration page. As shown in Figure 14, the file expiration page includes file expiration instruction information such as "The file has expired" and a target page return control 141.

[0054] Then, when a click operation is performed on the target page return control 141, the receiving terminal can display a file message display page in response to the click operation on the target page return control 141, where the file message display page can include a first file status indication mark, which indicates that the transmission of the target file has ended, as shown in Figure 6 above.

[0055] The first file status indication mark can be displayed on the file display control. When a click operation is performed on the file display control in the file message display page, an expiration notification page is displayed, and as shown in Figure 15, the expiration notification page can include expiration notification information such as "The file has expired" and a confirmation control 151 corresponding to the expiration notification information. When a trigger operation is performed on the confirmation control 151, the receiving terminal hides the expiration notification page in response to the trigger operation on the confirmation control, and displays the file message display page shown in Figure 6.

[0056] The file download page shown in FIG. 7 may further include a candidate return control 73. If the object clicks on the candidate return control 73 before the receiving terminal cancels the download of the text file, a file message display page is displayed. As shown in FIG. 8, a third file status indicator 81 is displayed on the file message display page, and the third file status indicator 81 indicates that the target file is being sent. Here, the third file status indicator 81 can be displayed on the file display control 32. The representation format of the third file status indicator 81 may be an icon, specifically a dynamic icon.

[0057] In this application, after displaying the file receiving page, the receiving terminal can download the target file, and specifically, the manner in which the receiving side downloads the target file may be as shown in steps S2021 to S2024.

[0058] In step S2021, in response to a trigger operation on the receiving control, the sending terminal obtains initial file download information of the target file during the process of sending the target file.

[0059] Regarding step S2021, it can be understood that when the object performs a trigger operation on the receiving control, the receiving terminal displays the file download page of the target file in the display interface, and at the same time, the receiving terminal can download the target file by obtaining the initial file download information of the target file.

[0060] Here, the initial file download information may refer to information for downloading the target file. Specifically, the initial file download information may include at least one of the following, but is not limited to: file block identifiers of file blocks in the target file, sequence information of the file blocks, file block download information of the file blocks in the target file, and reference download information associated with the file block download information.

[0061] Here, the file block may refer to the file content constituting the target file. When the sending terminal divides the target file, candidate file blocks can be obtained. The sending terminal then transmits the candidate file blocks to the receiving terminal for downloading as file blocks. Here, the file block download information may include, but is not limited to, at least one of file block transmission status information and file block sequence information. The reference download information may be combined with the file block download information to refer to information for downloading the file block. Here, the reference download information may include, but is not limited to, at least one of file block reference transmission status information and file block reference sequence information.

[0062] Regarding step S2021, the method of "obtaining initial file download information of the target file" may be a method of obtaining a file identifier of the target file, sending a file download request including the file identifier to the target server, causing the target server to return initial file download information based on the file identifier, and receiving the initial file download information of the target file.

[0063] Here, the method of "obtaining a file identifier of the target file" may be a method of obtaining a file message of the target file sent from the sending terminal and extracting the file identifier of the target file from the file message.

[0064] Specifically, the method of "obtaining a file message of a target file sent from a sending terminal" may be a method of sending a message acquisition request to a message server, causing the message server to return a file message corresponding to the message acquisition request, where the file message is a message sent by the sending terminal to the message server, and receiving the file message.

[0065] Here, regarding file messages, what can be understood is that when a receiving terminal receives a file message, a file display control corresponding to the file message is displayed on the displayed file message display page, specifically, the file display control 32 shown in Figure 3 is displayed.

[0066] Here, the target server includes a cache server and a storage server, and the cache server may refer to a server that temporarily stores data such as a target file for a predetermined period of time, and the cache server may be a server corresponding to the geographical area where the receiving terminal is located, and the storage server may refer to a server that can permanently store data.

[0067] In the present application, the target file and the information related to the target file may be cached in a cache server, or the target file and the information related to the target file may be cached in a storage server. Based on this, the method of "sending a file download request including a file identifier to a target server and having the target server return initial file download information based on the file identifier" may be a method of sending a file download request including a file identifier to a cache server to cause the cache server to inquire about initial file download information corresponding to the file identifier, and if the initial file download information returned from the cache server has not been received, sending a file download request including the file identifier to a storage server to cause the storage server to return initial file download information based on the file identifier, and receiving the initial file download information returned from the storage server.

[0068] It can be understood that the initial file download information and the target file may not exist in the cache server corresponding to the geographical area where the receiving terminal is located, and in view of this, the receiving terminal requests the initial file download information from the storage server.

[0069] It can be understood that a cache server can only store interaction data between receiving terminals and sending terminals in the geographical region where the cache server is located, and the interaction data can be considered to be target files and related information of the target files, such as initial file download information. Receiving terminals and sending terminals located in the same geographical region can correspond to the same cache server, and receiving terminals and sending terminals located in different geographical regions can correspond to different cache servers, and different cache servers can store different interaction data.

[0070] When the cache server receives interaction data between the receiving terminal and the sending terminal, the cache server can transmit the interaction data to the storage server to store the interaction data. In view of this, when the receiving terminal has not obtained the initial file download information returned from the cache server corresponding to the geographical region where the receiving terminal is located, the receiving terminal requests the initial file download information from the storage server.

[0071] In step S2022, based on the initial file download information, request the target server for the file blocks and the associated file download information corresponding to the file blocks, thereby causing the target server to return the file blocks and the associated file download information.

[0072] Here, the initial file download information includes file block download information and reference download information associated with the file block download information. Based on this, in the present application, after obtaining the initial file download information, the file blocks of the target file and the associated file download information corresponding to the file blocks can be requested from the target server. Specifically, in step S2022, the manner of "requesting the file blocks of the target file and the associated file download information corresponding to the file blocks from the target server based on the initial file download information" can be a manner of fusing the file block download information and the reference download information to obtain the merged download information, and requesting the file blocks of the target file and the associated file download information corresponding to the file blocks from the target server based on the merged download information.

[0073] Here, the method of "merging file block download information and reference download information to obtain merged download information" may be a method of determining target sequence information that is the same as the reference sequence information included in the reference download information from the sequence information included in the file block download information, determining target transmission status information corresponding to the target sequence information from the transmission status information of the file block download information, fusing the target transmission status information with the reference transmission status information in the reference download information to obtain merged transmission status information, and generating merged download information based on the merged transmission status information.

[0074] Here, the fusion transmission status information may be the fusion download information, or the fusion download information may be based on the fusion status information and the target sequence information.

[0075] For example, the sending terminal can divide the target file into 256 candidate file blocks, and then upload the candidate file blocks to the target server according to the sequence information in the target file of each candidate file block. If the candidate file block is successfully uploaded to the target server, the transmission status information corresponding to the candidate file block is 1; if the file block is not successfully uploaded to the target server, the transmission status information corresponding to the candidate file block is 0.

[0076] Correspondingly, when a receiving terminal requests a file block from the candidate file blocks, the file block download information may include sequence information and transmission status information for each of the 256 file blocks. The reference download information may include reference sequence information and reference transmission status information for each of the 129th to 256th file blocks. Based on this, the present application can determine that the target sequence information in the sequence information in the file block download information is the same as the reference sequence information in the reference download information, from 129th to 256th.

[0077] Correspondingly, in the transmission status information of the file block download information, the target transmission status information corresponding to the target sequence information is the transmission status information of the 129th to 256th file blocks. Based on this, the candidate transmission status information of the 129th to 256th file blocks in the reference download information can be added to the transmission status information of the 129th to 256th file blocks in the file block download information to obtain the merged download information.

[0078] In this application, after merging the file block download information and the reference download information to obtain the merged download information, the file block and the associated file download information corresponding to the file block can be requested from the target server. Specifically, the method of "requesting the target server the file block and the associated file download information corresponding to the file block based on the merged download information" can be a method of identifying the current transmission status of the file block corresponding to the merged download information from the merged download information, and if the current transmission status is an uploaded status, requesting the target server the file block corresponding to the associated file download information and the associated file download information corresponding to the file block.

[0079] Here, the uploaded state may refer to the state of being successfully uploaded to the target server.

[0080] If the fusion transmission status information in the post-fusion download information is 1, it can be determined that the current transmission status of the file block is an uploaded state, and if the fusion transmission status information in the post-fusion download information is 0, it can be determined that the current transmission status of the file block is a not-uploaded state.

[0081] In step S2023, the related file download information and the file block are received, and the related file download information is set as the initial file download information.

[0082] Here, the server may return at least one file block at a time, and if the server returns multiple file blocks at a time, the receiving terminal can receive multiple file blocks in parallel.

[0083] In step S2024, return to the step of requesting file blocks and associated file download information corresponding to the file blocks from the target server based on the initial file download information, and continue until all of the associated file download information becomes initial file download information, thereby obtaining multiple file blocks corresponding to the target file, and combining the multiple file blocks to obtain the target file.

[0084] In step S2024, the method of "combining a plurality of file blocks to obtain the target file" can be to combine file blocks according to the sequence information of the file blocks to obtain the target file.

[0085] In step S203, when the sending terminal completes sending the target file, download progress information indicating that a part of the target file has been downloaded is displayed on the file download page.

[0086] Here, the download progress information indicates that a part of the content of the target file has been downloaded.

[0087] It can be understood that while the sending terminal is sending file blocks, the receiving terminal is receiving file blocks, so when the sending terminal has completed sending the target file, the download progress information displayed on the file download page will indicate that some of the contents of the target file have been downloaded.

[0088] Specifically, the target file is a text file. When the sending terminal completes sending the text file, the receiving terminal has already downloaded part of the target file. As shown in FIG. 9, the download progress information may include a progress bar 91 and progress indicator information corresponding to the progress bar, such as "receiving file." The progress bar may be a circular progress bar.

[0089] Although not shown in Fig. 9, the file download page may include a candidate page return control 92. The object can perform a click operation on the candidate page return control 92. In this case, the receiving terminal can display a file message display page in response to the click operation on the candidate page return control 92. As shown in Fig. 10, the file message display page can display a fourth file status indication mark 101, which indicates that the receiving terminal is downloading the target file. Here, the fourth file status indication mark 101 can be displayed on the file display control 32.

[0090] In an embodiment of the present application, after the download progress information of the target file is displayed on the file download page, even if the receiving terminal suspends the reception of the target file, the download of the target file can still be continued. Specifically, when the receiving terminal suspends the reception of the target file, the receiving terminal displays a file reception cancellation page, and the file reception cancellation page includes a reception continuation control, and the download of the target file can be continued in response to a trigger operation on the reception continuation control.

[0091] Here, the reason why the receiving terminal suspends the reception of the target file may be a network interruption or may be triggered by an object operation, etc. If the receiving terminal suspends the reception of the target file due to a trigger caused by an object operation, the file download page may include a pause control in response to this situation, and based on this, before "displaying the file reception cancel page", the receiving terminal can suspend the reception of the target file and display the file reception cancel page in response to the trigger operation on the pause control.

[0092] In the present application, after displaying the file reception abort page, the receiving terminal can display a file message display page, and the file reception abort page can include a return control in addition to a continue reception control. Based on this, after the step of "displaying the file reception abort page", the receiving terminal can further return to the file message display page. Specifically, the receiving terminal can display the file message display page in response to a trigger operation on the return control, and display a second file status indication mark on the file message display page, and the second file status indication mark indicates that the transmission of the target file has been aborted.

[0093] Here, the display format of the return control on the file reception cancellation page may include an icon and a text identifier.

[0094] The file reception cancel page will be described here using an example in which the target file is a text file. For example, as shown in FIG. 9, the file download page may further include a pause control, and a progress bar 91 is set on the pause control. In response to a trigger operation on the pause control, the receiving terminal pauses receiving the text file and displays the file reception cancel page. As shown in FIG. 11, the file reception cancel page may further include a return control 111 and a continue receiving control 112.

[0095] Before the object performs a trigger operation on the continue receiving control 112, the object can perform a trigger operation on the return control, in this case the receiving terminal can display a file message display page in response to the trigger operation on the return control 111, and a second file status indication mark 121 is displayed on the file message display page as shown in Figure 12. When the object performs a trigger operation on the continue receiving control, the receiving terminal can continue downloading the text file in response to the trigger operation on the continue receiving control.

[0096] If the receiving terminal temporarily stops receiving the target file due to a network interruption, the file reception interruption page displayed on the receiving terminal may be as shown in Figure 11. In this case, by clicking the return control 111 on the file reception interruption page, the receiving terminal can display a file message display page, which displays a second file status indicator and file reception status information such as "reception interrupted" as shown in Figure 13. Here, the file reception status information may be information indicating the reception status of the target file at the receiving terminal.

[0097] Furthermore, when the receiving terminal pauses the reception of the target file due to a network interruption or a trigger operation on the pause control, the receiving terminal can obtain the candidate expiration status of the target file in response to a click operation on the continue reception control 112 in the file reception cancellation page, where the candidate expiration status may be a status indicating whether the target file has expired, and if the candidate expiration status indicates that the target file has not expired, the download of the text file continues, and if the candidate expiration status indicates that the target file has expired, the file expiration page shown in Figure 14 is displayed.

[0098] Thereafter, when a click operation is performed on the target page return control 141, the receiving terminal can display the file message display page shown in Figure 13 in response to the click operation on the target page return control 141, where the second file status indication mark displayed on the file message display page can be displayed on the file display control. When a click operation is performed on the file display control, an expiration notification page is displayed as shown in Figure 15.

[0099] Furthermore, when the sending terminal completes sending the target file and the receiving terminal completely receives the target file, the receiving terminal can display a file message display page, and the file message display page may be as shown in FIG. 3.

[0100] Steps S201 to S203 will be further described here by taking an example in which the target file is a text file, and as shown in FIG. 16, specifically, steps S1 to S17 are shown.

[0101] In step S1, when the sending terminal starts sending a target file, it displays a file message display page corresponding to the target file.

[0102] Here, the file message display page displays the file display control.

[0103] In step S2, in response to a trigger operation on the file display control in the file message display page, a file reception page is displayed.

[0104] Here, the file receiving page includes a receiving control for the target file.

[0105] In step S3, in response to a trigger operation on the receive control in the file receive page, it is determined whether the sending terminal has completed sending the target file.

[0106] If the sending terminal has not completed sending the target file, execute step S4; if the sending terminal has completed sending the target file, execute step S7.

[0107] In step S4, a file download page including file transmission status information is displayed.

[0108] Here, the file transmission status information indicates that the sending terminal is sending the target file.

[0109] In step S5, it is determined whether the sending terminal has stopped sending the target file.

[0110] If the sending terminal stops sending the target file and the stop time exceeds a predetermined time threshold, execute step S6; if the sending terminal stops sending the target file and the sending terminal completes sending the target file, execute step S7.

[0111] In step S6, a file reception termination page including transmission stop instruction information is displayed.

[0112] In step S7, the download progress information of the target file is displayed on the file download page.

[0113] Here, the download progress information indicates that a part of the content of the target file has been downloaded.

[0114] In step S8, it is determined whether the reception of the target file is suspended.

[0115] If the reception of the target file is paused, execute step S9; if the reception of the target file is not paused, continue receiving the target file.

[0116] In step S9, a file reception cancel page including a reception continuation control is displayed.

[0117] In step S10, in response to a trigger operation on the receiving continuation control, the candidate expiration status of the target file is obtained.

[0118] In step S11, it is determined whether the candidate expiration status indicates that the target file is expired.

[0119] If the candidate expiration status indicates that the target file is not expired, step S12 is executed, and if the candidate expiration status indicates that the target file is expired, step S17 is executed.

[0120] In step S12, the download of the target file continues.

[0121] In step S13, it is determined whether the receiving terminal has voluntarily stopped receiving the target file.

[0122] Here, if the receiving terminal responds to the trigger operation on the cancel control in the file download page, it is determined that the receiving terminal has voluntarily stopped receiving the target file, and in this case, execute step S14.

[0123] If the receiving terminal is in a network interruption state, it is determined that the receiving terminal has passively stopped receiving the target file, in this case, the execution returns to step S5.

[0124] In step S14, the file reception page is displayed.

[0125] In step S15, in response to a trigger operation on the receive control of the file receive page, the deadline status of the target file is obtained.

[0126] In step S16, it is determined whether the expiration status indicates that the target file has expired.

[0127] If the deadline status indicates that the target file is expired, execute step S17; if the deadline status indicates that the target file is not expired, return to execute step S5.

[0128] In step S17, the file expiration page is displayed.

[0129] In the present application, a file receiving page is displayed, and a receiving control for a target file is displayed on the file receiving page, the target file is a file transmitted from a sending terminal to a receiving terminal, and in response to a trigger operation on the receiving control, during the process of the sending terminal transmitting the target file, a file download page for the target file is displayed, and file transmission status information is displayed on the file download page, and the file transmission status information indicates that the sending terminal is transmitting the target file, and when the sending terminal completes transmitting the target file, download progress information indicating that some of the content of the target file has been downloaded can be displayed on the file download page. In this application, the receiving terminal receives the target file in response to a trigger operation on the target file reception control in the file receiving page, thereby allowing the receiving terminal to receive the target file in real time during the process of the sending terminal sending the target file, and improving the efficiency of file transmission between the sending terminal and the receiving terminal. As a result, the receiving terminal can display file transmission status information on the file download page of the target file, thereby improving the user's file transmission experience. As a result, when the sending terminal completes sending the target file, the receiving terminal can complete downloading some of the content of the target file, improving the efficiency of file transmission between the sending terminal and the receiving terminal. The receiving terminal can display download progress information indicating that some of the content of the target file has been downloaded, thereby improving the user's file transmission experience and enthusiasm.

[0130] Based on the method described in the above embodiment, the following examples will be used to further explain the method in detail.

[0131] In this embodiment, the file transmission device is specifically integrated into an electronic device, and the electronic device is a sending terminal.

[0132] As shown in FIG. 17, the specific process of the file transmission method is as follows: steps S1701 to S1703.

[0133] In step S1701, a file sending page is displayed, and a target file and a sending control for the target file are displayed on the file sending page.

[0134] Here, the file sending page includes a target file mark and a target file sending control. The sending control may refer to a control used to send the target file. The target file mark includes, but is not limited to, at least one of the file name and a file icon of the target file.

[0135] In step S1701, the method of "displaying a file sending page" may be a method of displaying a file sending page, where the file sending page includes a file selection control, obtaining multiple candidate files in response to a trigger operation on the file selection control, and displaying the file sending page in response to a selection operation on the candidate files.

[0136] It can be understood that when the sending terminal responds to a selection operation on a candidate file, the sending terminal screens the target file from the candidate files and displays a file sending page.

[0137] In step S1702, in response to a trigger operation on the transmission control, the target file is transmitted to the receiving terminal, causing the receiving terminal to start downloading the contents of the target file already transmitted from the transmitting terminal during the process of the transmitting terminal transmitting the target file.

[0138] Regarding step S1702, in the present application, the trigger operation on the sending control can be set as a time countdown, and when the time countdown of the trigger control ends, the sending terminal sends a target file to the receiving terminal in response to the trigger operation on the sending control, thereby causing the receiving terminal to start downloading the contents of the target file that have already been sent from the sending terminal in the process of the sending terminal sending the target file.

[0139] Alternatively, for step S1702, a candidate object, for example, a user can perform a click operation on a send control, and correspondingly, the sending terminal can send a target file to the receiving terminal in response to the trigger operation on the send control, thereby causing the receiving terminal to start downloading the contents of the target file already sent from the sending terminal in the process of the sending terminal sending the target file.

[0140] In the embodiment of the present application, the sending terminal may directly send the target file to the receiving terminal, or the receiving terminal may download the target file from the target server during the process of the sending terminal sending the target file to the target server.

[0141] In the process of a sending terminal sending a target file to a target server, when a receiving terminal downloads the target file from the target server, the specific method of the step of "sending the target file to the receiving terminal in response to a trigger operation on the sending control" in step S1702 may be as shown in steps S17021 to S17024.

[0142] In step S17021, in response to a trigger operation on the transmission control, the target file is divided to obtain at least one candidate file block.

[0143] In step S17021, the method of "dividing the target file to obtain at least one candidate file block" may be a method of obtaining predetermined division parameters, and dividing the target file based on the predetermined division parameters to obtain at least one candidate file block.

[0144] Here, the predetermined division parameter may refer to a parameter used to divide the target file into at least one candidate file block. The predetermined division parameter may include the size of the candidate file block to be divided. For example, the predetermined division parameter may be set to 1 MB, and in this application, the target file may be divided into candidate file blocks of 1 MB size according to the size of 1 MB.

[0145] In step S17022, at least one current file block is screened from the candidate file blocks, and related file upload information corresponding to the current file block is obtained.

[0146] Here, the current file block is a file block that has not been uploaded; specifically, the current file block is a file block that is to be uploaded to the target server.

[0147] After dividing the target file into candidate file blocks, the current file block can be screened from the candidate file blocks and the current file block can be uploaded to the target server.

[0148] It can be understood here that after dividing the target file into candidate files, candidate sequence information corresponding to each candidate file block can be obtained, and based on this, in step S17022, the manner of "screening at least one current file block from the candidate file blocks" can be a manner of screening at least one current file block from the candidate file blocks based on the candidate sequence information.

[0149] For example, at least one candidate file block may be selected as the current file block in sequence according to the candidate sequence information, for example, the third candidate file block and the fourth candidate file block may be selected as the current file block.

[0150] In step S17022, the method of "obtaining related file upload information corresponding to the current file block" may be a method of obtaining specific file transmission information corresponding to the current file block, detecting upload status information of the uploaded target file block in the candidate file block, and updating the specific file transmission information based on the upload status information to obtain related file upload information corresponding to the current file block.

[0151] Here, the predetermined file transmission information may refer to transmission information corresponding to a predetermined target file, and specifically, the predetermined file transmission information may include predetermined upload status information and candidate sequence information corresponding to each candidate file block of a predetermined number of candidate file blocks.

[0152] Here, the method of the step “detecting upload status information of uploaded target file blocks in the candidate file block” may be a method of obtaining file block upload records, querying file block sequence information of uploaded target file blocks in the candidate file block from the file block upload records, and if file block sequence information exists, extracting upload status information corresponding to the file block sequence information from the file block upload records, and taking the upload status information corresponding to the file block sequence information as the upload status information of the target file block.

[0153] Here, the method of "updating specific file transmission information based on upload status information and obtaining related file upload information corresponding to the current file block" may be a method of using upload status information to replace specific upload status information in specific file transmission information and obtaining related file upload information corresponding to the current file block.

[0154] Correspondingly, the upload status information can only replace a part of the predetermined upload status information. For example, if there are 10 candidate file blocks, and the first five candidate file blocks among them are uploaded target file blocks according to the sequence information, only these five target file blocks have upload status information. Correspondingly, only the upload status information of these five target file blocks can replace the predetermined upload status information corresponding to these five target file blocks. Based on this, the related file upload information can include related upload information corresponding to the candidate file blocks, and the related upload information can include upload status information and candidate sequence information, or can include upload status information, predetermined status information, and candidate sequence information.

[0155] The step of "obtaining related file upload information corresponding to the current file block" is explained here by way of example. For example, in this application, bit states 0 and 1 can be used to represent upload status information and predetermined status information. If the target file has not been uploaded, the predetermined upload status information can be set to 0. If an uploaded target file block exists in the candidate file block, the upload status information corresponding to the target file block can replace the predetermined upload information corresponding to the target file block, for example, the upload status information 1 corresponding to the target file block can replace the predetermined upload information 0 corresponding to the target file block, thereby updating the predetermined file transmission information and obtaining the related file upload information.

[0156] In step S17023, the current file block and related file upload information are sent to the target server, causing the target server to send the current file block of the target file to the receiving terminal based on the related file upload information.

[0157] Here, after the sending terminal sends at least one current file block and related file upload information to the target server, when the target server receives the current file block and related file upload information, the target server can store the current file block and related file upload information and allow the receiving terminal to download them from the target server.

[0158] In step S17024, return to the step of screening at least one current file block from the candidate file blocks, and perform the process until each candidate file block is a current file block, thereby causing the target server to send each current file block of the target file to the receiving terminal.

[0159] In step S1703, a file transmission page for the target file is displayed, and the file transmission page includes a transmission progress mark for the target file.

[0160] Here, the file transmission page includes a target file transmission progress mark, which can indicate the progress of the sending terminal transmitting the target file.

[0161] Here, the file transmission page may be a candidate instant communication session page. The candidate instant communication session page may be an instant communication session page between a sending user of a sending terminal and a receiving user of a receiving terminal. The sending user and the receiving user can display the instant communication session page through an instant communication application.

[0162] Here, the file transmission page may further include a transmission status control corresponding to the transmission progress mark, and specifically, the transmission progress mark may be displayed on the transmission status control.

[0163] After the step of "displaying the file transmission page of the target file", the present application can further stop the transmission of the target file to the receiving terminal. Specifically, when the sending terminal sends the target file, it can stop the transmission of the target file to the receiving terminal in response to a trigger operation on the transmission status control, and replace the transmission progress mark with a stop mark to stop the transmission of the target file.

[0164] Here, we take the example of a target file being a text file, where the file transmission page may be a candidate instant communication session page, specifically, the file transmission page is an instant communication session page between the sending user of the sending terminal and the receiving user of the receiving terminal.

[0165] As shown in FIG. 18 , when a sending terminal sends a text file, the file transmission page may include a transmission status control control 181, a file name such as “First Quarter Financial Report Data.key” displayed on the transmission status control control 181, and a transmission progress mark 182 displayed on the transmission status control control 181.

[0166] The object can perform a click operation on the transmission status control, in which case the sending terminal can stop sending the text file to the receiving terminal in response to a stop operation on the transmission status control. In this case, as shown in Figure 19, the sending progress mark on the file transmission page is replaced with a stop mark 191 that stops sending the text file.

[0167] In the present application, after the transmission of the target file to the receiving terminal is stopped, the target file may become invalid. In this situation, the target file can be sent again. Specifically, if the stop time of the stop of the transmission of the target file to the receiving terminal exceeds a predetermined time threshold, a resend page can be displayed in response to a trigger operation on the transmission status control, and the resend page includes a resend control. In response to the trigger operation on the resend control, the target file can be sent again to the receiving terminal.

[0168] It can be understood that if the stop time of the target file transmission to the receiving terminal exceeds a predetermined time threshold, the target file may become invalid, and in this case, if the sending terminal needs to transmit the target file, the sending terminal needs to transmit the target file again. Here, the sending terminal transmits the target file to the target server, which can cause the target server to transmit the target file to the receiving terminal.

[0169] Here, the resend page may be displayed as a pop-up window, and if the resend page is a pop-up window, the resend page may be displayed above the file transfer page.

[0170] Here, take the target file as an example. For example, if the pause time of the target file transmission to the receiving terminal exceeds a predetermined time threshold, a retransmission page is displayed in response to a trigger operation on the transmission status control. As shown in FIG. 20, the retransmission page includes a retransmission control 201, a target cancellation control 202, and retransmission instruction information such as "The pause time is too long, so the file needs to be sent again."

[0171] When the candidate object clicks on the resend control 201, the sending terminal resends the target file to the receiving terminal in response to the click on the resend control 201. In this case, as shown in FIG. 24 , the sending terminal hides the resend page and displays the file transmission page, where the stop mark 191 on the file transmission page is replaced with an end mark 211 and a candidate transmission status control control 241 is displayed. The end mark 211 can indicate that the transmission of the target file has been terminated, and a file name such as "First Quarter Financial Report Data.key" and a candidate transmission progress mark 242 are displayed on the candidate transmission status control control 241. Here, the candidate transmission progress mark 242 indicates the progress of the sending terminal in transmitting the target file. Here, the display format of the candidate transmission progress mark 242 may be the same as the display format of the transmission progress mark.

[0172] When the candidate object performs a click operation on the target cancel control 202, the sending terminal responds to the click operation on the target cancel control 202 by hiding the resend page and displaying the file transfer page, and as shown in FIG. 21 , the stop mark 191 on the file transfer page is replaced with the end mark 211.

[0173] In the present application, after replacing the transmission progress mark with a stop mark to stop transmitting the target file, the stop mark can also be replaced with a transmission progress mark again. Specifically, when the transmitting terminal stops transmitting the target file, in response to a trigger operation on the transmission status control, the transmitting terminal continues transmitting the target file and replaces the stop mark with a transmission progress mark.

[0174] For example, when the sending terminal stops sending the target file, the mark displayed on the transmission status control control on the file transmission page becomes a stop mark. If the object can perform a click operation on the transmission status control control, the sending terminal can continue sending the text file to the receiving terminal in response to the stop operation on the transmission status control control, and at this time, the stop mark on the transmission status control control is replaced with a transmission progress mark.

[0175] After the step of "displaying the file transmission page of the target file", if the sending terminal is disconnected from the network, replace the transmission progress mark with a candidate stop mark on the file transmission page and display interrupt instruction information, where the candidate stop mark indicates that the sending terminal has stopped sending the target file, and the interrupt instruction information indicates that the sending terminal has interrupted sending the target file.

[0176] When the sending terminal is disconnected from the network, the file transmission page includes a candidate stop mark 221 and interruption instruction information such as "transmission interrupted" as shown in Figure 22. When the interruption time during which the sending terminal interrupts the transmission of the target file exceeds the target predetermined time threshold, the candidate retransmission page shown in Figure 25 is displayed in response to a trigger operation on the transmission status control 181. The candidate retransmission page includes a candidate retransmission control 251, a candidate cancel control 252, and interruption instruction information such as "the interruption time is too long, so the file needs to be sent again." In this case, the sending terminal hides the candidate retransmission page and displays the file transmission page shown in Figure 24.

[0177] When the candidate object clicks on the candidate resend control 251 in the candidate resend page, the sending terminal resends the target file to the receiving terminal in response to the click on the candidate resend control 251.

[0178] When the candidate object performs a click operation on the candidate cancel control 252, the sending terminal responds to the click operation on the candidate cancel control 252 by hiding the resend page and displaying the file transfer page shown in FIG.

[0179] After the step of "displaying the file transmission page of the target file", when the transmission of the target file stops, detect the application status information of the instant communication application for transmitting the target file in the transmitting terminal, and determine whether the application status information indicates that the instant communication application is closed. If the application status information indicates that the instant communication application is closed, when the instant communication application is launched, display the file transmission page shown in Figure 22, and the file transmission page includes a candidate stop mark 221 and interrupt instruction information such as "transmission interrupted".

[0180] If the interruption time during which the transmitting terminal interrupted the transmission of the target file does not exceed the target predetermined time threshold, the transmitting terminal continues transmitting the target file in response to a trigger operation on the transmission state control unit 181 .

[0181] If the interruption time during which the sending terminal interrupts the transmission of the target file exceeds the target predetermined time threshold, the processing method of the sending terminal can refer to the above description of Figures 20 and 21, and will not be described again here.

[0182] After step S1703, when the sending terminal completes sending the target file, it displays a file transmission page and replaces the transmission progress mark on the file transmission page with a completion mark. Here, as shown in Figure 23, the file transmission page includes a completion mark 231 and the file name of the target file, such as "first quarter financial report data.key".

[0183] Steps S1701 to S1703 will be further described here by taking an example in which the target file is a text file, and as shown in FIG. 27, specifically, steps S2701 to S2718.

[0184] In step S2701, a file transmission page including a file transmission control is displayed.

[0185] In step S2702, in response to a trigger operation on the transmission control, the target file is transmitted to the receiving terminal, causing the receiving terminal to start downloading the contents of the target file already transmitted from the transmitting terminal during the process of the transmitting terminal transmitting the target file.

[0186] In step S2703, a file transmission page including a transmission progress mark for the target file is displayed.

[0187] In step S2704, it is determined whether the sending terminal has voluntarily stopped sending the target file.

[0188] Regarding step S2704, when the sending terminal sends the target file, if the sending terminal stops sending the target file to the receiving terminal in response to a trigger operation on the transmission status control, it can be determined that the sending terminal has voluntarily paused the sending of the target file, and step S2705 is executed; if the sending terminal does not stop sending the target file to the receiving terminal in response to a trigger operation on the transmission status control, it can be determined that the sending terminal has not voluntarily paused the sending of the target file, and step S2709 is executed.

[0189] In step S2705, on the file transmission page, the transmission progress mark is replaced with a stop mark to stop the transmission of the target file.

[0190] In step S2706, it is determined whether the stop time during which the transmission of the target file to the receiving terminal has been stopped exceeds a predetermined time threshold.

[0191] If the stop time exceeds a predetermined time threshold (for example, 5 days), step S2707 is executed, and if the stop time does not exceed the predetermined time threshold, step S2709 is executed.

[0192] In step S2707, in response to a trigger operation on the transmission status control, a resend page including a resend control is displayed.

[0193] In step S2708, in response to a trigger operation on the retransmission control, the target file is retransmitted to the receiving terminal.

[0194] In step S2709, it is determined whether the transmitting terminal has been disconnected from the network.

[0195] If the transmitting terminal is disconnected from the network, step S2710 is executed, and if the transmitting terminal is not disconnected from the network, step S2714 is executed.

[0196] In step S2710, the transmission progress mark is replaced with a candidate stop mark on the file transmission page, and interrupt instruction information is displayed.

[0197] In step S2711, it is determined whether the interruption time during which the sending terminal interrupted the transmission of the target file exceeds the target predetermined time threshold.

[0198] If the interruption time during which the sending terminal interrupted the transmission of the target file exceeds the target predetermined time threshold, execute step S2712; if the interruption time during which the sending terminal interrupted the transmission of the target file does not exceed the target predetermined time threshold, execute step S2714.

[0199] In step S2712, in response to a trigger operation on the transmission status control, a candidate retransmission page is displayed.

[0200] In step S2713, in response to a trigger operation on the candidate retransmission control, the target file is retransmitted to the receiving terminal.

[0201] In step S2714, application state information of the transmitting terminal is detected.

[0202] In step S2715, a determination is made whether the application state information indicates that the instant communications application is closed.

[0203] If the application state information indicates that the Instant Communication application is closed, then execute step S2716; if the application state information does not indicate that the Instant Communication application is closed, continue transmitting the target file.

[0204] In step S2716, when the real-time communication application is launched, a file transfer page is displayed.

[0205] In step S2717, it is determined whether the interruption time during which the sending terminal interrupted the transmission of the target file exceeds the target predetermined time threshold.

[0206] If the interruption time during which the sending terminal interrupted the transmission of the target file exceeds the target specified time threshold, return to execution of step S2707; if the interruption time during which the sending terminal interrupted the transmission of the target file does not exceed the target specified time threshold, execute step S2718.

[0207] In step S2718, in response to a trigger operation on the transmission state control, transmission of the target file continues.

[0208] In an embodiment of the present application, a file sending page is displayed, the file sending page including a target file mark and a sending control for the target file, and the target file is sent to the receiving terminal in response to a trigger operation on the sending control, thereby causing the receiving terminal to start downloading the content of the target file sent from the sending terminal during the process of the sending terminal sending the target file, and a file transmission page for the target file can be displayed, the file transmission page including a target file transmission progress mark. In an embodiment of the present application, the sending terminal sends the target file to the receiving terminal in response to a trigger operation on the sending control, thereby causing the receiving terminal to receive the target file when the sending terminal sends the target file, thereby improving the efficiency of file transmission between the sending terminal and the receiving terminal. Furthermore, in an embodiment of the present application, a target file transmission progress mark can be displayed on the file transmission page, allowing the user to understand the transmission progress of the target file and improving the user's file transmission experience.

[0209] Based on the method described in the above embodiment, the following examples will be used to further explain the method in detail.

[0210] In this embodiment, the file transmission device is specifically integrated into an electronic device, and the electronic device is the target server.

[0211] As shown in FIG. 26, the specific process of the file transmission method is as shown in steps S2601 to S2604.

[0212] In step S2601, at least one current file block of a target file sent from a sending terminal and related file upload information of the current file block are received.

[0213] Here, the target file includes multiple candidate file blocks, and the current file block may refer to a file block among the multiple candidate file blocks that the sending terminal is uploading. The sending terminal can upload multiple current file blocks in parallel at one time.

[0214] Here, for specific details of the related file upload information, please refer to the explanation in the above embodiment.

[0215] Before step S2601, the target server receives a file upload request for the target file sent from the sending terminal, and then returns a file identifier of the target file to the sending terminal according to the file upload request, thereby allowing the sending terminal to send a file message including the file identifier to the receiving terminal. It can be understood that when the receiving terminal receives the file message, the displayed file message display page displays a file display control corresponding to the file message.

[0216] When a sending terminal sends a file message including a file identifier to a receiving terminal, the sending terminal transmits the file message to a message server, and the receiving terminal can then retrieve the file message from the message server. Here, the message server may refer to a server used to send and receive at least the file message.

[0217] It can be understood that after the sending terminal obtains the file identifier from the target server, the process of the sending terminal sending the current file block of the target file to the target server may be performed in parallel with the process of the sending terminal sending the file message to the message server.

[0218] In step S2602, the predetermined file set is updated based on the current file block and related file upload information to obtain an updated file set.

[0219] It should be noted that steps S2601 and S2602 are repeated processes. For example, after step S2602, the updated file set is set as a predetermined file set, and the process returns to the step of receiving at least one current file block of the target file sent from the sending terminal and the related file upload information of the current file block, until the sending terminal stops sending the current file block and the related file upload information to the target server, thereby obtaining the updated file set.

[0220] In the embodiment of the present application, the target server may include a cache server and a storage server, and the description of the cache server and the storage server can be specifically referred to in the above embodiment, and will not be repeated here.

[0221] (1) About the cache server In this application, a cache server is used to receive at least one current file block of a target file sent from a sending terminal and related file upload information of the current file block.

[0222] Then, for step S2602, the cache server can be used as the target server to update the predetermined file set based on the current file block and related file upload information to obtain the updated file set.

[0223] Here, the predetermined file set includes a predetermined file block subset and a predetermined transmission information subset, where the predetermined file block subset is a file block set used by the cache server to store the current file block transmitted from the transmitting terminal, and the predetermined transmission information subset may refer to a set used by the cache server to store related file upload information transmitted from the transmitting terminal.

[0224] A specific manner of the step of "using a cache server to update a specified file set based on the current file block and related file upload information and obtain an updated file set" may be to use a cache server to update a specified file block subset based on the current file block and obtain an updated file block subset, use a cache server to update a specified transmission information subset based on related file upload information and obtain an updated transmission information subset, and generate an updated file set based on the updated file block subset and the updated transmission information subset.

[0225] Here, in this application, the current file block is stored in a predetermined file block subset, and an updated file block subset can be obtained. After the current file block is stored, it is also called a file block. Based on this, when a receiving terminal downloads a target file, it can download file blocks from the predetermined file block subset of the target server.

[0226] Here, the related file upload information can be stored in a predetermined transmission information subset to obtain an updated transmission information subset. Specifically, the related file upload information can be stored in a predetermined transmission information subset, and the related file upload information can replace the past related file upload information in the predetermined transmission information subset to obtain an updated transmission information subset.

[0227] Here, the past related file upload information may refer to related file upload information within the past time.

[0228] In the present application, a cache server can be used to receive at least one current file block of a target file sent from a sending terminal and related file upload information of the current file block, and then the cache server can be used to send the current file block and related file upload information to a storage server.

[0229] (2) Storage Server After the storage server receives the current file block and related file upload information sent from the cache server, it can use the cache server as a target server to send the current file block and related file upload information to the storage server, and use the storage server as a target server to receive the current file block and related file upload information, and update the specified file dataset based on the current file block and related file upload information to obtain an updated file dataset.

[0230] Here, the update file data set includes a predetermined binding data subset and a predetermined upload information subset, where the predetermined binding data subset may be a set for storing a current file block and reference upload information of the current file block, and the predetermined upload information subset may be a set for storing related file upload information.

[0231] Here, the related upload information of the candidate file block included in the related file upload information includes two types of information, such as (1) related upload information of the candidate file block that has a strong correlation with the current file block, (2) related upload information of the candidate file block that has a weak correlation with the current file block, and (3) related upload information of the current file block.

[0232] Here, the reference upload information may include (1) related upload information of candidate file blocks that have a strong correlation with the current file block, and (2) related upload information of the current file block. For details about the related upload information, please refer to the description in the above embodiment, and the description will not be repeated here.

[0233] It can be understood that when the sending terminal divides the target file, it can divide the target file into multiple independent candidate file blocks with a size of 1 MB, and then the sending terminal can classify the 128 candidate file blocks into one block. If the candidate file block and the current file block are in the same block, this situation can be said to have a strong correlation between the candidate file block and the current file block. If the candidate file block and the current file block are not in the same block, for example, if the candidate file block and the current file block are in two adjacent blocks, this situation can be said to have a weak correlation between the candidate file block and the current file block.

[0234] In this application, each block can represent reference upload information corresponding to the block using 16 bytes. The related file upload information may include the reference upload information of the block where the current file block is located and the reference upload information of the adjacent block of the current file block, or may only include the reference upload information of the block where the current file block is located.

[0235] When a sending terminal uploads a current file block, it can simultaneously send the current file block and its associated file upload information to the target server. However, if the associated file upload information occupies too many bytes, the data is likely to become unstable. Therefore, in this application, the associated file upload information can be configured to include reference upload information corresponding to a maximum of three blocks.

[0236] For example, when the transmitting terminal uploads the 100th current file block, the associated file upload information included in the 100th current file block includes 16 bytes of reference upload information corresponding to the first block; when the transmitting terminal uploads the 200th current file block, the associated file upload information included in the 200th current file block includes (1) 16 bytes of reference upload information corresponding to the first block, and (2) 16 bytes of reference upload information corresponding to the second block.

[0237] When the sending terminal uploads the 300th current file block, the related file upload information included in the 300th current file block includes: (1) 16 bytes of reference upload information corresponding to the first block; (2) 16 bytes of reference upload information corresponding to the second block; and (3) 16 bytes of reference upload information corresponding to the third block.

[0238] By analogy, when the transmitting terminal uploads the 800th current file block, the related file upload information included in the 800th current file block includes: (1) 16 bytes of reference upload information corresponding to the 5th block; (2) 16 bytes of reference upload information corresponding to the 6th block; and (3) 16 bytes of reference upload information corresponding to the 7th block.

[0239] In an embodiment of the present application, the storage server may update a specific file dataset after receiving the current file block and related file upload information. Specifically, the method of "updating a specific file dataset based on the current file block and related file upload information and obtaining an updated file dataset" may be a method of using the storage server to extract reference upload information corresponding to the current file block from the related file upload information, binding the current file block and the reference upload information to obtain file block binding data, using the storage server to update a specific binding data subset based on the file block binding data to obtain an updated binding data subset, using the storage server to update the specific upload information subset based on the related file upload information to obtain an updated upload information subset, and determining an updated file dataset based on the updated upload information subset and the updated binding data subset.

[0240] Here, the storage server can be used to store file block binding data in a predetermined binding data subset, replace past file block binding data in the predetermined data subset, and update the predetermined binding data subset; the storage server can be used to store related file upload information in a predetermined upload information subset, replace past related file upload information in the predetermined upload information subset, and update the predetermined upload information subset.

[0241] Here, the past file block binding data may refer to file block binding data within the past time.

[0242] The step of "using a storage server to update the predetermined upload information subset based on related file upload information to obtain an updated upload information subset" is described below with an example. For example, before updating the predetermined upload information subset, the target server may pre-establish block indexes for the predetermined upload information subset, each block index including index information corresponding to a current block, and the index information may include predetermined reference upload information corresponding to the current block where the current file block is located and predetermined reference upload information of the block immediately following the current block.

[0243] For example, the first block index includes the predetermined reference upload information of the first block and the predetermined reference upload information of the second block, the second block index includes the predetermined reference upload information of the second block and the predetermined reference upload information of the third block, the third block index includes the predetermined reference upload information of the third block and the predetermined reference upload information of the fourth block, and so on.

[0244] Here, the predetermined reference upload information may include predetermined status information corresponding to the candidate file block and candidate sequence information corresponding to the candidate file block. Here, the predetermined status information can be set to 0, indicating that the candidate file block has not been uploaded. Note that the predetermined status information is 0 during the first update, and the predetermined status information does not need to be 0 during other rounds of updates after the first update.

[0245] The process of updating the upload information subset may be as follows: For example, when uploading the 100th current file block, the first block index needs to be updated, and the first block index includes the predetermined status information of the first block and the predetermined status information of the second block. In this application, the first block index can be updated based on the related file upload information of the 100th current file block to obtain the updated first block index. In this case, in the index information of the updated first block index, the predetermined status information of the first block has been updated and the updated status information has been obtained. Generally, the updated status information is all 1, and the predetermined status information of the second block is all 0.

[0246] When uploading the 200th current file block, in this situation, the updated first block index is set as the first block index, the updated status information is set as the predetermined status information, and the first block index and the second block index are updated. When uploading the 200th current file block, in this situation, the predetermined status information of the second block is updated. This ensures that the receiving terminal can download the file block of the first block before downloading the file block of the second block, and can also download the reference download information of the third block, so that the download of the file block of the target file can continue.

[0247] When uploading the 300th current file block, in this situation, the updated first block index is the first block index, the updated second block index is the second block index, the updated status information is the predetermined status information, and then the first block index, the second block index, and the third block index are updated, and so on.

[0248] In step S2603, if the target file download information sent from the receiving terminal is received, the file block corresponding to the target file download information and the associated file download information corresponding to the file block are screened from the predetermined file set.

[0249] In step S2603, the method of "screening file blocks corresponding to target file download information and related file download information corresponding to file blocks from a specified file set" may be a method of extracting sequence information of the file blocks to be downloaded from the target file download information, extracting file blocks corresponding to the sequence information from a specified file block subset of the specified file set, and extracting related file download information corresponding to the sequence information from a specified transmission information subset of the specified file set.

[0250] Here, the related file download information may include reference download information of the block in which the file block is located, reference download information of a block adjacent to the block in which the file block is located, or reference download information of the block in which the file block is located.

[0251] It can be understood that the reference download information may be the reference upload information corresponding to when the sending terminal currently uploads the file block.

[0252] In step S2604, the file block and related file download information are returned to the receiving terminal, thereby allowing the receiving terminal to obtain the target file when the sending terminal sends it.

[0253] It should be noted that steps S2603 and S2604 are repeated processes. After step S2604, the present application generates target file download information based on the related file download information. When the target file download information sent from the receiving terminal is received, the application returns to the step of screening the file block corresponding to the target file download information and the related file download information corresponding to the file block from the specified file set, and continues until each related file download information is all converted into target file download information, thereby allowing the receiving terminal to receive the file block corresponding to each target file download information returned by the target server.

[0254] Here, the related file download information can be used as initial file download information, and then the target file download information can be generated based on the initial file download information. Here, in this application, the sequence information of the file block whose current transmission status is uploaded can be identified from the initial file download information, and the sequence information of the file block whose transmission status is uploaded can be used as the target file download information, or the initial file download information can be used as the target file download information.

[0255] In the embodiment of the present application, the process in which steps S2601 and S2602 are repeated and the process in which steps S2603 and S2604 are repeated may be processes that are executed in parallel.

[0256] Steps S2601 and S2604 will be described taking as an example that the receiving terminal downloads the target file from the storage server.

[0257] As shown in FIG. 28, the sending terminal can divide the target file into multiple candidate file blocks, and divide the candidate file blocks into n blocks (e.g., block 1, block 2, ..., and block n). Here, in the present application, 128 candidate file blocks can be regarded as one block, and each candidate file block has corresponding associated upload information, which can be represented by one bit state. Based on this, each block has 128 corresponding bit states, for example, 1 or 0. Because block n is the last block, block n includes 88 candidate file blocks, and block n can correspond to 88 bit states. In this example, the associated upload information is represented by the bit state. Note that if a candidate file block has been uploaded, the corresponding bit state is 1, and if a candidate file block has not been uploaded, the corresponding bit state is 0.

[0258] 28, for example, a sending terminal is currently sending a current file block x in upload block 3 to a cache server of a target server, where x1 represents the bit state of the current file block. When the sending terminal sends the current file block x, it also sends related file upload information corresponding to the current file block, for example, the related file upload information includes the bit state of block 1, the bit state of block 2, and the bit state of block 3. Then, the cache server sends the current file block x, the bit state of block 1, the bit state of block 2, and the bit state of block 3 to the storage server.

[0259] After receiving the current file block x, the bit state of block 1, the bit state of block 2, and the bit state of block 3, the storage server binds the current file block x with the bit state of block 3 to obtain file block binding data, updates a predetermined binding data subset in the storage server, and obtains an updated binding data subset. Based on the bit state of block 1, the bit state of block 2, and the bit state of block 3, the storage server updates a predetermined upload information subset in the storage server to obtain an updated upload information subset.

[0260] When the sending terminal stores the target file in the target server, the receiving terminal can request the target server to download the target file. If the receiving terminal requests the target file from the cache server of the target server and the target file is not available, the receiving terminal can request the target file from the storage server.

[0261] For example, when a receiving terminal requests the first file block from a storage server, the receiving terminal can send a file download request including a file identifier to the storage server, causing the storage server to return initial file download information and the first file block based on the file identifier.

[0262] After requesting the first file block from the storage server, the receiving terminal can subsequently request file blocks. For example, the receiving terminal can request the storage server to download file block y in the second block.

[0263] The receiving terminal can send target file download information of file block y to the storage server. After receiving the target file download information, the storage server can obtain reference download information of file block y and file block y from the updated binding data subset based on the target file download information, for example, the bit state of block 2, and file block download information obtained from the predetermined upload information subset, for example, the bit state of block 2 and the bit state of block 3. Then, the storage server can simultaneously send the current file block x, the reference download information, and the file block download information to the receiving terminal.

[0264] After receiving the current file block x, the reference download information, and the file block download information, the receiving terminal can merge the reference download information and the file block download information to obtain merged download information, and then generate target file download information based on the merged download information, and send the target file download information to the storage server to request the file block and related file download information.

[0265] Here, the fusion download information can be used as the target file download information, or the sequence information of the file block whose current transmission status is in the uploaded state can be identified from the fusion download information, and the sequence information of the file block in the uploaded state can be used as the target file download information.

[0266] The receiving terminal can further use the merged download information to update the local bit state of the receiving terminal, and obtain the updated bit state. As shown in Figure 28, the local bit state can be set by the receiving terminal corresponding to the bit state of each block of the transmitting terminal.

[0267] In the embodiment of the present application, the target server is used as a relay station for the target file, which is advantageous for the receiving terminal to download the target file during the process of the sending terminal uploading the target file, thereby improving the efficiency of file transmission.

[0268] Based on the method described in the above embodiment, a more detailed description will now be given, taking as an example a case where the target server includes a cache server.

[0269] As shown in FIG. 29, the specific process of the file transmission method is as shown in steps S2901 to S2917.

[0270] In step S2901, the sending terminal displays a file sending page including a mark of the target file and a sending control for the target file.

[0271] Specifically, the sending terminal displays a file transmission page, the file transmission page including a file selection control, and in response to a trigger operation on the file selection control, obtains multiple candidate files, and in response to a selection operation on the candidate files, displays a file transmission page including a mark of the target file and a transmission control for the target file.

[0272] In step S2902, the sending terminal sends a file upload request to the cache server in response to a trigger operation on the send control.

[0273] Regarding step S2902, it can be understood that in response to a trigger operation on the sending control, the sending terminal sends the target file to the cache server by sending a file upload request to the cache server, thereby causing the cache server to send the target file to the receiving terminal, thereby allowing the receiving terminal to receive the target file when the sending terminal sends the target file.

[0274] After step S2902, the sending terminal can further display a file transmission page of the target file, where the file transmission page includes a transmission progress mark of the target file.

[0275] Here, after the step of "displaying the file transmission page of the target file", the present application can further stop the transmission of the target file to the receiving terminal. Specifically, when the sending terminal sends the target file, it can stop the transmission of the target file to the receiving terminal in response to a trigger operation on the transmission status control, and replace the transmission progress mark with a stop mark to stop the transmission of the target file.

[0276] Here, in the present application, after the transmission of the target file to the receiving terminal is stopped, the target file may become invalid. In this situation, the target file can be sent again. Specifically, if the stop time of the stop of the transmission of the target file to the receiving terminal exceeds a predetermined time threshold, a resend page can be displayed in response to a trigger operation on the transmission status control, and the resend page includes a resend control. In response to the trigger operation on the resend control, the target file can be sent again to the receiving terminal.

[0277] In step S2903, the cache server receives the file upload request and returns a file identifier to the sending terminal based on the file upload request.

[0278] In step S2904, the sending terminal receives the file identifier and generates a file message based on the file identifier.

[0279] In step S2905, the sending terminal sends a file message including the file identifier to the message server.

[0280] In step S2906, the message server receives and stores the file message.

[0281] In step S2907, the sending terminal divides the target file to obtain at least one candidate file block.

[0282] Specifically, the method of "dividing the target file to obtain at least one candidate file block" may be to obtain predetermined division parameters, and divide the target file based on the predetermined division parameters to obtain at least one candidate file block.

[0283] In step S2908, the sending terminal screens at least one current file block from the candidate file blocks, and obtains related file upload information corresponding to the current file block.

[0284] Here, the method of "obtaining related file upload information corresponding to the current file block" may be to obtain specific file transmission information corresponding to the current file block, detect the upload status information of the uploaded target file block in the candidate file block, and update the specific file transmission information based on the upload status information to obtain related file upload information corresponding to the current file block.

[0285] In step S2909, the sending terminal sends the current file block and related file upload information to the cache server.

[0286] In step S2910, the cache server receives the current file block and the related file upload information, and updates the predetermined file set based on the current file block and the related file upload information to obtain an updated file set.

[0287] In step S2910, the specified file set includes a specified file block subset and a specified transmission information subset. A specific manner in which the cache server updates the specified file set and obtains an updated file set based on the current file block and related file upload information may be to use the cache server to update the specified file block subset based on the current file block and obtain the updated file block subset, use the cache server to update the specified transmission information subset based on the related file upload information and obtain the updated transmission information subset, and generate an updated file set based on the updated file block subset and the updated transmission information subset.

[0288] In step S2911, the receiving terminal obtains a file message including a file identifier from the message server.

[0289] In step S2912, the receiving terminal displays a file message display page including a file display control corresponding to the file message.

[0290] In step S2913, the receiving terminal displays a file receiving page including a receiving control for the target file in response to the trigger operation on the file display control.

[0291] In step S2914, the receiving terminal displays the file download page of the target file in response to the trigger operation on the receiving control.

[0292] Here, the file download page includes file transmission status information, i.e., the file download page displays file transmission status information, and the file transmission status information indicates that the sending terminal is sending the target file.

[0293] In an embodiment of the present application, after the file download page of the target file is displayed, the sending terminal may stop sending the target file. Correspondingly, the receiving terminal responds to this situation. Specifically, when the sending terminal stops sending the target file, it displays a file receiving termination page, which includes a page return control and target file transmission termination instruction information. In response to a trigger operation on the page return control, it displays a file message display page, and displays a first file status indication mark on the file message display page, which indicates that the transmission of the target file has terminated.

[0294] In an embodiment of the present application, after the file download page of the target file is displayed, the download of the target file can be canceled, and then the download of the target file can be continued. For example, the file download page includes a cancel control, based on which the receiving terminal displays a file receiving page in response to a trigger operation on the cancel control, and continues the download of the target file in response to a trigger operation on the receive control on the file receiving page.

[0295] In step S2915, the receiving terminal transmits the target file download information to the cache server.

[0296] Specifically, the method by which the receiving terminal sends the target file download information to the cache server may be to obtain the initial file download information of the target file, use the initial file download information as the target file download information, and send the target file download information to the cache server.

[0297] Here, the method of "obtaining initial file download information of the target file" may be a method of obtaining a file identifier of the target file, sending a file download request including the file identifier to the target server, causing the target server to return initial file download information based on the file identifier, and receiving the initial file download information of the target file.

[0298] Specifically, the method of "obtaining a file identifier of a target file" may be a method of obtaining a file message of the target file sent from the sending terminal and extracting the file identifier of the target file from the file message.

[0299] Specifically, the method of "sending a file download request including a file identifier to a target server and having the target server return initial file download information based on the file identifier" may be a method of sending a file download request including a file identifier to a cache server, causing the cache server to query the initial file download information corresponding to the file identifier, and if the initial file download information returned from the cache server is not received, sending a file download request including the file identifier to a storage server, causing the storage server to return the initial file download information based on the file identifier, and receiving the initial file download information returned from the storage server.

[0300] In step S2916, the cache server screens the file blocks corresponding to the target file download information from the predetermined file set and the associated file download information corresponding to the file blocks.

[0301] In step S2917, the cache server returns the file blocks and related file download information to the receiving terminal, thereby allowing the receiving terminal to obtain the target file when the sending terminal sends the target file.

[0302] Here, steps S2905 and S2907 can be executed in parallel. Step S2911 can be executed after step S2905 and before or after any step before step S2911. Steps S2914 and S2915 can be executed in parallel.

[0303] Steps S2901 to S2917 will now be further explained.

[0304] As shown in Figure 30, the sending terminal displays a file sending page including a mark for the target file and a sending control for the target file, and the sending terminal sends a file upload request to the cache server in response to a trigger operation on the sending control. The cache server then receives the file upload request and returns a file identifier to the sending terminal based on the file upload request. The sending terminal then receives the file identifier and generates a file message based on the file identifier. The sending terminal then sends the file message including the file identifier to the message server. After receiving the file message, the message server can return success information to the sending terminal.

[0305] The sending terminal can send a target file to a cache server. Specifically, the sending terminal can divide the target file to obtain at least one candidate file block. Then, the sending terminal can screen at least one current file block from the candidate file blocks and obtain associated file upload information corresponding to the current file block. For example, the sending terminal can screen at least one current file block from the candidate file blocks, where the current file block is also called a slice. For example, the current file block may include slice 1 and slice 2 in FIG. 30. The sending terminal can further obtain a bit status of the uploaded slice, and the bit status of the uploaded slice can be used as associated file upload information corresponding to the current file block. In this application, the bit status can be referred to as bit.

[0306] The sending terminal can send bits of slice 1 and the slice uploaded before slice 1, and bits of slice 2 and the slice uploaded before slice 2 to the cache server in parallel. When the cache server receives bits of slice 1 and the slice uploaded before slice 1, and bits of slice 2 and the slice uploaded before slice 2, it can update the specified file set and send success information back to the sending terminal.

[0307] By analogy, the sending terminal can cause the cache server to update a given file set by sending a slice and the bits of the slice uploaded before the slice to the cache server, and repeat this process until all slices of the target file have been sent to the cache server. When the sending terminal has sent all slices of the target file to the cache server, it sends an upload completion message to the cache server. Upon receiving the upload completion message, the cache server returns a success message to the sending terminal.

[0308] Of course, if the network is interrupted or the sending terminal stops sending the target file, the sending terminal can stop sending the target file.

[0309] In the process of the sending terminal sending the slice to the cache server, the receiving terminal can request the file message of the target file by sending a message get request to the message server. When the message server receives the message get request, the message server returns the file message to the receiving terminal.

[0310] The receiving terminal can then generate a file download request based on the file identifier in the file message, and then request the cache server to download the first slice of the target file based on the file download request. The cache server can return the first slice and initial file download information corresponding to the first slice based on the file identifier. The initial file download information can include bits for the slices uploaded by the sending terminal. After receiving the initial file download information, the receiving terminal can update its local bit state based on the initial file download information.

[0311] Thereafter, the receiving terminal can continue to request slices (e.g., slice 1 and slice 2) from the cache server using the initial file download information as the target file download information. Each time the cache server returns a slice to the receiving terminal, it also returns the associated file download information corresponding to the slice. The receiving terminal can continue to request slices from the cache server using the associated file download information as the initial file download information and the initial file download information as the target file download information, and repeats this step until the download of all slices of the target file is completed.

[0312] Of course, if the network is interrupted, the receiving terminal stops receiving the target file, or the sending terminal stops sending the target file, the receiving terminal can stop downloading the target file.

[0313] The present application can improve the efficiency of file transmission between a receiving terminal and a transmitting terminal. As shown in FIG. 31, according to the present application, the uploading and downloading of target files can be performed in parallel, whereas in the existing related technology, the uploading and downloading of target files and the transmission of file messages are performed serially, so it can be seen that in the existing related technology, it takes a longer time to transmit the target file.

[0314] This application can support downloading of target files while they are being uploaded, which effectively reduces the waiting time from when a user receives a target file until they click to complete the download, while also ensuring the consistency of the message timeline between the sending terminal and the receiving terminal.

[0315] In the present application, a file receiving page is displayed, and a receiving control for a target file is displayed on the file receiving page, the target file is a file transmitted from a sending terminal to a receiving terminal, and in response to a trigger operation on the receiving control, during the process of the sending terminal transmitting the target file, a file download page for the target file is displayed, and file transmission status information is displayed on the file download page, and the file transmission status information indicates that the sending terminal is transmitting the target file, and when the sending terminal completes transmitting the target file, download progress information indicating that some of the content of the target file has been downloaded can be displayed on the file download page. In this application, the receiving terminal receives the target file in response to a trigger operation on the target file reception control in the file receiving page, thereby allowing the receiving terminal to receive the target file in real time during the process of the sending terminal sending the target file, and improving the efficiency of file transmission between the sending terminal and the receiving terminal. As a result, the receiving terminal can display file transmission status information on the file download page of the target file, thereby improving the user's file transmission experience. As a result, when the sending terminal completes sending the target file, the receiving terminal can complete downloading some of the content of the target file, improving the efficiency of file transmission between the sending terminal and the receiving terminal. The receiving terminal can display download progress information indicating that some of the content of the target file has been downloaded, thereby improving the user's file transmission experience and enthusiasm.

[0316] To better implement the above method, an embodiment of the present application further provides a file transmission device, which can be integrated into an electronic device, such as a receiving terminal, and the receiving terminal may include a tablet computer, a notebook computer, and / or a personal computer, etc.

[0317] For example, as shown in FIG. 32, the file transmission device may include a first display unit 3201, a second display unit 3202, a third display unit 3203, and a download unit 3204.

[0318] (1) First display unit 3201 The first display unit 3201 can be configured to display a file receiving page, and display a receiving control for a target file on the file receiving page, where the target file is a file transmitted from a sending terminal to a receiving terminal.

[0319] For example, the first display unit 3201 can be further configured to display a file message display page corresponding to the target file when the sending terminal starts sending the target file, display a file display control on the file message display page, and display a file receiving page in response to a trigger operation on the file display control.

[0320] (2) Second display unit 3202 The second display unit 3202 can be configured to, in response to a trigger operation on the receiving control, start downloading the content of the target file already sent from the sending terminal during the process of the sending terminal sending the target file, display a file download page of the target file, and display file transmission status information on the file download page, where the file transmission status information indicates that the sending terminal is sending the target file.

[0321] For example, the second display unit 3202 can be further configured to display a file reception termination page when the sending terminal stops sending the target file, the file reception termination page including a page return control and target file transmission stop instruction information, and to display a file message display page in response to a trigger operation on the page return control and display a first file status indication mark on the file message display page, the first file status indication mark indicating that the transmission of the target file has terminated.

[0322] For example, the file download page may include a cancel control, and the second display unit 3202 may be further configured to display a file receiving page in response to a trigger operation on the cancel control, and to continue downloading the target file in response to a trigger operation on the receive control on the file receiving page.

[0323] (3) Third display unit 3203 The third display unit 3203 can be configured to display download progress information on the file download page, indicating that some content of the target file has been downloaded, when the sending terminal completes sending the target file.

[0324] For example, the third display unit 3203 can be configured to display a file reception stop page when the receiving terminal pauses receiving the target file, the file reception stop page including a continue receiving control, and continue downloading the target file in response to a trigger operation on the continue receiving control.

[0325] (4) About Download Unit 3204 The download unit 3204 can be configured to, in response to a trigger operation on the receiving control, start downloading the contents of the target file already transmitted from the transmitting terminal in the process of the transmitting terminal transmitting the target file.

[0326] The download unit 3204 can be configured to, in response to a trigger operation on the receiving control, obtain initial file download information of the target file during the process of the sending terminal sending the target file, and based on the initial file download information, request file blocks of the target file and related file download information corresponding to the file blocks from the target server, thereby causing the target server to return the file blocks and related file download information, receive the related file download information and file blocks, use the related file download information as initial file download information, and return to the step of requesting file blocks and related file download information corresponding to the file blocks from the target server based on the initial file download information, until all of the related file download information becomes initial file download information, obtain multiple file blocks corresponding to the target file, combine the multiple file blocks, and obtain the target file.

[0327] For example, the download unit 3204 can be specifically configured to obtain a file identifier of a target file, send a file download request including the file identifier to a target server, have the target server return initial file download information based on the file identifier, and receive the initial file download information of the target file.

[0328] As can be seen from the above, the first display unit 3201 in the embodiment of the present application can be configured to display a file receiving page and display a receiving control for a target file on the file receiving page, where the target file is a file transmitted from a sending terminal to a receiving terminal; the second display unit 3202 can be configured to, in response to a trigger operation on the receiving control, start downloading the content of the target file already transmitted from the sending terminal during the process of the sending terminal transmitting the target file, and display a file download page for the target file, and display file transmission status information on the file download page, where the file transmission status information indicates that the sending terminal is transmitting the target file; and the third display unit 3203 can be configured to display download progress information on the file download page, where the sending terminal completes transmitting the target file, indicating that some content of the target file has been downloaded. In this application, the receiving terminal receives the target file in response to a trigger operation on the target file reception control in the file receiving page, thereby allowing the receiving terminal to receive the target file in real time during the process of the sending terminal sending the target file, and improving the efficiency of file transmission between the sending terminal and the receiving terminal. As a result, the receiving terminal can display file transmission status information on the file download page of the target file, thereby improving the user's file transmission experience. As a result, when the sending terminal completes sending the target file, the receiving terminal can complete downloading some of the content of the target file, improving the efficiency of file transmission between the sending terminal and the receiving terminal. The receiving terminal can display download progress information indicating that some of the content of the target file has been downloaded, thereby improving the user's file transmission experience and enthusiasm.

[0329] To better implement the above method, an embodiment of the present application further provides a file transmission device, which can be integrated into an electronic device, such as a sending terminal, and the sending terminal may include a tablet computer, a notebook computer, and / or a personal computer, etc.

[0330] For example, as shown in FIG. 33, the file transmission device may include a fourth display unit 3301, a sending unit 3302, and a fifth display unit 3303.

[0331] (1) About the 4th display unit 3301 The fourth display unit 3301 may be configured to display a file sending page, and to display marks of target files and sending controls for the target files on the file sending page.

[0332] (2) About the transmitting unit 3302 The sending unit 3302 can be configured to, in response to a trigger operation on the sending control, send a target file to the receiving terminal, thereby causing the receiving terminal to start downloading the contents of the target file already sent from the sending terminal in the process of the sending terminal sending the target file.

[0333] For example, the sending unit 3302 can be configured to, in response to a trigger operation on the sending control, split the target file, obtain at least one candidate file block, screen at least one current file block from the candidate file blocks, obtain related file upload information corresponding to the current file block, where the current file block is a file block that has not been uploaded, send the current file block and the related file upload information to the target server, have the target server send the current file block of the target file to the receiving terminal based on the related file upload information, and return to the step of screening at least one current file block from the candidate file blocks, and perform the process until each candidate file block becomes the current file block, thereby causing the target server to send each current file block of the target file to the receiving terminal.

[0334] (3) Fifth display unit 3303 The fifth display unit 3303 can be configured to display a file transmission page of the target file, where the file transmission page includes a transmission progress mark of the target file.

[0335] For example, the fifth display unit 3303 can be configured to, when the sending terminal sends the target file, stop sending the target file to the receiving terminal in response to a trigger operation on the transmission status control, and replace the sending progress mark with a stop mark that stops sending the target file.

[0336] For example, the fifth display unit 3303 can be configured to, when the sending terminal stops sending the target file, continue sending the target file to the receiving terminal and replace the stop mark with a transmission progress mark in response to a trigger operation on the transmission status control.

[0337] In an embodiment of the present application, the fourth display unit 3301 can be configured to display a file sending page, the file sending page including a target file mark and a sending control for the target file; the sending unit 3302 can be configured to send the target file to the receiving terminal in response to a trigger operation on the sending control, thereby causing the receiving terminal to start downloading the content of the target file sent from the sending terminal during the process of the sending terminal sending the target file; the fifth display unit 3303 can be configured to display a file transmission page for the target file, the file transmission page including a target file transmission progress mark. In an embodiment of the present application, the sending terminal sends the target file to the receiving terminal in response to a trigger operation on the sending control, thereby causing the receiving terminal to receive the target file when the sending terminal sends the target file, thereby improving the efficiency of file transmission between the sending terminal and the receiving terminal; further, an embodiment of the present application can further display a target file transmission progress mark on the file transmission page, allowing the user to understand the target file transmission progress and enhance the user's file transmission experience.

[0338] To better implement the above method, an embodiment of the present application further provides a file transmission device, which can be integrated into an electronic device, such as a server.

[0339] For example, as shown in FIG. 34, the file transmission device may include a receiving unit 3401, an updating unit 3402, a screening unit 3403, and a returning unit 3404.

[0340] (1) About the receiving unit 3401 The receiving unit 3401 may be configured to receive at least one current file block of a target file sent from a sending terminal and related file upload information of the current file block.

[0341] (2) Regarding the updated unit 3402 The update unit 3402 can be configured to update a predetermined file set based on the current file block and related file upload information to obtain an updated file set.

[0342] For example, the target server includes a cache server and a storage server, and the update unit 3402 can be configured to use the cache server to update a predetermined file set based on the current file block and related file upload information and obtain an updated file set, use the cache server to send the current file block and related file upload information to the storage server, use the storage server to receive the current file block and related file upload information, update a predetermined file data set based on the current file block and related file upload information, and obtain an updated file data set.

[0343] (3) Screening Unit 3403 The screening unit 3403 can be configured to, when receiving target file download information sent from a receiving terminal, screen file blocks corresponding to the target file download information and related file download information corresponding to the file blocks from a predetermined file set.

[0344] (4) Return unit 3404 The returning unit 3404 can be configured to return file blocks and related file download information to the receiving terminal, thereby allowing the receiving terminal to obtain the target file when the sending terminal sends the target file.

[0345] The embodiments of the present application further provide an electronic device, and as shown in FIG. 35 , an exemplary structural diagram of the electronic device according to the embodiments of the present invention is shown, specifically, The electronic device may include components such as a processor 3501 with one or more processing cores, a memory 3502 of one or more computer-readable storage media, a power supply 3503, and an input unit 3504. Those skilled in the art will understand that the structure of the electronic device shown in FIG. 35 is not intended to limit the electronic device, and may include more or fewer components than those shown in the drawings, or a combination of some components, or a different component arrangement.

[0346] The processor 3501 is the control center of the electronic device, and performs overall monitoring of the electronic device by connecting each part of the entire electronic device using various interfaces and lines, executing software programs and / or modules stored in the memory 3502, and accessing data stored in the memory 3502 to perform various functions and data processing of the electronic device. Optionally, the processor 3501 may include one or more processing cores, and the processor 3501 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, applications, etc., and the modem processor mainly processes wireless communication. It should be understood that the modem processor may not be integrated into the processor 3501.

[0347] The memory 3502 can be configured to store software programs and modules, and the processor 3501 executes the software programs and modules stored in the memory 3502 to perform various functional applications and data processing. The memory 3502 can mainly include a program storage area and a data storage area, where the program storage area can store an operating system and an application required for at least one function (e.g., an audio playback function, an image playback function, etc.), and the data storage area can store data created in accordance with the use of the electronic device. Furthermore, the memory 3502 can include high-speed random access memory and non-volatile memory (e.g., at least one disk memory, flash memory, or other non-volatile solid-state memory). Correspondingly, the memory 3502 can further include a memory controller to provide the processor 3501 with access to the memory 3502.

[0348] The electronic device further includes a power supply 3503 for supplying power to each component, and preferably, the power supply 3503 can be logically connected to the processor 3501 via a power management system, thereby enabling the power management system to manage functions such as charging, discharging, and power consumption management. The power supply 3503 can further include any component such as one or more DC or AC power sources, a recharging system, a power failure detection circuit, a power converter or inverter, and a power status indicator.

[0349] The electronic device further comprises an input unit 3504, which may be configured to receive input digital or textual information and to receive keyboard, mouse, joystick, optical or trackball signal inputs associated with user settings and function control of the mobile phone.

[0350] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 3501 in the electronic device loads executable files corresponding to the processes of one or more application programs into the memory 3502 in accordance with the following instructions, and the processor 3501 executes the application programs stored in the memory 3502 to achieve various functions.

[0351] The method includes the steps of: displaying a file receiving page and displaying a receiving control for a target file on the file receiving page, where the target file is a file transmitted from a sending terminal to a receiving terminal; in response to a trigger operation on the receiving control, during the process of the sending terminal transmitting the target file, starting download of the contents of the target file already transmitted from the sending terminal, displaying a file download page for the target file, and displaying file transmission status information on the file download page, where the file transmission status information indicates that the sending terminal is transmitting the target file; and when the sending terminal completes transmitting the target file, displaying download progress information on the file download page indicating that part of the contents of the target file has been downloaded.

[0352] The specific implementation of each of the above operations can be referred to in the previous embodiments, and will not be described again here.

[0353] Those skilled in the art will recognize that all or part of the steps in the various methods of the above embodiments can be performed by a computer program, or by hardware under computer program control, and the computer program can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0354] Therefore, an embodiment of the present application provides a computer-readable storage medium having stored thereon a computer program that, when loaded by a processor, causes the processor to execute any file transmission method according to the embodiment of the present application.

[0355] The specific implementation of each of the above operations can be referred to in the previous embodiments, and will not be described again here.

[0356] Here, the computer-readable storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk, an optical disk, or the like.

[0357] The instructions stored in the computer-readable storage medium can perform steps in any of the file transmission methods provided in the embodiments of the present application, thereby realizing the beneficial effects that can be achieved in any of the file transmission methods provided in the embodiments of the present application, and details can be found in the above embodiments, which will not be repeated here.

[0358] According to one aspect of the present application, there is provided a computer program product or computer program including computer instructions stored on a computer-readable storage medium, wherein a processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions to cause the electronic device to perform the methods provided in various alternative embodiments according to the above examples.

[0359] The various technical features in the above embodiments can be combined in any way, and for the sake of brevity, not all possible combinations of each technical feature in the above embodiments are described, but as long as there is no contradiction in the combinations between features, all should be considered within the scope described in this specification.

[0360] The above examples only represent some embodiments of the present application, and the descriptions are specific and detailed, but should not be understood as limitations on the scope of the claims of the present application. It should be noted that those skilled in the art can make various modifications and changes without departing from the spirit of the present application, and these also fall within the scope of protection of the present application. Therefore, the scope of protection of the claims of the present application should be based on the attached claims.

Claims

1. A file transmission method executed by a receiving terminal, comprising: displaying a file receiving page and displaying a receiving control for a target file on the file receiving page, the target file being a file transmitted from a transmitting terminal to the receiving terminal; In response to a trigger operation on the receiving control, during the process of the sending terminal sending the target file, starting to download the contents of the target file already sent from the sending terminal, displaying a file download page of the target file, and displaying file transmission status information on the file download page, wherein the file transmission status information indicates that the sending terminal is sending the target file; When the sending terminal completes sending the target file, displaying download progress information on the file download page, which indicates that a part of the target file has been downloaded. File transmission method.

2. The step of displaying the file receiving page includes: When the sending terminal starts sending the target file, displaying a file message display page corresponding to the target file, and displaying a file display control on the file message display page; displaying the file receiving page in response to a trigger operation on the file display control; The file transmission method according to claim 1 .

3. The file transmission method includes: When the sending terminal stops sending the target file, displaying a file receiving termination page, the file receiving termination page including a page return control and instruction information to stop transmitting the target file; and displaying the file message display page in response to a trigger operation on the page return control, and displaying a first file status indication mark on the file message display page, the first file status indication mark indicating that transmission of the target file has ended. The file transmission method according to claim 2.

4. the file download page includes a cancel control; The file transmission method includes: displaying the file receiving page in response to a trigger operation on the cancel control; and continuing downloading the target file in response to a trigger operation on a receive control of the file receiving page. The file transmission method according to claim 1 .

5. The file transmission method includes: When the receiving terminal suspends receiving the target file, displaying a file reception cancel page, the file reception cancel page including a continue receiving control; and continuing downloading the target file in response to a trigger operation on the continue receiving control. The file transmission method according to claim 2.

6. the file reception cancellation page includes a return control; The file transmission method includes: displaying the file message display page in response to a trigger operation on the return control; displaying a second file status indication mark on the file message display page, the second file status indication mark indicating that the transmission of the target file has been stopped; The file transmission method according to claim 5.

7. In the process of the sending terminal sending the target file, the step of starting to download the content of the target file already sent from the sending terminal includes: In the process of transmitting the target file, the transmitting terminal obtains initial file download information of the target file; requesting file blocks of the target file and associated file download information corresponding to the file blocks from the target server based on the initial file download information, thereby causing the target server to return the file blocks and associated file download information; receiving the related file download information and the file block, and setting the related file download information as the initial file download information; Returning to the step of requesting the target server for the file blocks of the target file and the associated file download information corresponding to the file blocks based on the initial file download information, and executing this until each associated file download information becomes the initial file download information, to obtain a plurality of file blocks corresponding to the target file, and combining the plurality of file blocks to obtain the target file; The file transmission method according to claim 1 .

8. The step of obtaining initial file download information of the target file includes: obtaining a file identifier of the target file; sending a file download request including the file identifier to the target server, causing the target server to return the initial file download information based on the file identifier; receiving initial file download information of the target file; The file transmission method according to claim 7.

9. the target servers include cache servers and storage servers; sending a file download request including the file identifier to the target server, thereby causing the target server to return the initial file download information based on the file identifier; sending a file download request including the file identifier to the cache server, thereby causing the cache server to query initial file download information corresponding to the file identifier; if initial file download information returned from the cache server has not been received, sending a file download request including the file identifier to the storage server, causing the storage server to return the initial file download information based on the file identifier; receiving initial file download information returned from the storage server; The file transmission method according to claim 8.

10. the initial file download information includes file block download information and reference download information associated with the file block download information; The step of requesting a file block of the target file and related file download information corresponding to the file block from the target server based on the initial file download information includes: merging the file block download information and the reference download information to obtain merged download information; and requesting file blocks of the target file and related file download information corresponding to the file blocks from the target server based on the merged download information. The file transmission method according to claim 7.

11. The step of requesting the target server for the file blocks of the target file and the associated file download information corresponding to the file blocks based on the merged download information includes: identifying a current transmission status of a file block corresponding to the merged download information from the merged download information; If the current transmission status is an uploaded status, requesting a file block corresponding to the related file download information and the related file download information corresponding to the file block from the target server; The file transmission method according to claim 10.

12. A file transmission method executed by a sending terminal, comprising: displaying a file sending page, and displaying a mark of the target file and a sending control for the target file on the file sending page; transmitting the target file to a receiving terminal in response to a trigger operation on the transmission control, thereby causing the receiving terminal to start downloading the contents of the target file that have already been transmitted from the transmitting terminal during the process of the transmitting terminal transmitting the target file; displaying a file transmission page for the target file, the file transmission page including a transmission progress mark for the target file; File transmission method.

13. the file transmission page further displays a transmission status control corresponding to the transmission progress mark; After displaying the file transmission page of the target file, the file transmission method includes: When the transmitting terminal transmits the target file, stopping transmission of the target file to the receiving terminal in response to a trigger operation on the transmission state control; and replacing the transmission progress mark with a stop mark to stop transmitting the target file. The file transmission method according to claim 12.

14. After replacing the transmission progress mark with a stop mark for stopping the transmission of the target file, the file transmission method includes: If the sending terminal stops sending the target file, continuing to send the target file to the receiving terminal in response to a trigger operation on the transmission state control; and replacing the stop mark with the transmission progress mark. The file transmission method according to claim 13.

15. After stopping the transmission of the target file to the receiving terminal, the file transmission method includes: a step of displaying a retransmission page in response to a trigger operation on the transmission status control when a stop time of the stop of transmission of the target file to the receiving terminal exceeds a predetermined time threshold, the retransmission page including a retransmission control; and retransmitting the target file to the receiving terminal in response to a trigger operation on the retransmission control. The file transmission method according to claim 13.

16. The step of transmitting the target file to the receiving terminal in response to a trigger operation on the transmission control includes: In response to a trigger operation on the transmission control, dividing the target file to obtain at least one candidate file block; screening at least one current file block from the candidate file blocks and obtaining related file upload information corresponding to the current file block, where the current file block is a file block that has not been uploaded; sending the current file block and the related file upload information to a target server, thereby causing the target server to send the current file block of the target file to the receiving terminal based on the related file upload information; causing the target server to transmit each current file block of the target file to a receiving terminal by returning to the step of screening at least one current file block from the candidate file blocks until each of the candidate file blocks has become the current file block; The file transmission method according to claim 12.

17. The step of obtaining related file upload information corresponding to the current file block includes: obtaining predetermined file transmission information corresponding to the current file block, and detecting upload status information of the uploaded target file block in the candidate file block; updating the predetermined file transmission information based on the upload status information to obtain file upload information corresponding to the current file block; 17. The file transmission method according to claim 16.

18. 1. A file transmission method executed by a target server, comprising: receiving at least one current file block of a target file sent from a sending terminal and related file upload information of the current file block; updating a predetermined file set based on the current file block and the related file upload information to obtain an updated file set; When receiving target file download information transmitted from a receiving terminal, screening the file block corresponding to the target file download information and the associated file download information corresponding to the file block from the predetermined file set; and returning the file blocks and the associated file download information to the receiving terminal, thereby causing the receiving terminal to obtain the target file when the sending terminal transmits the target file. File transmission method.

19. the target servers include cache servers and storage servers; The step of updating a predetermined file set based on the current file block and the related file upload information to obtain an updated file set includes: employing the cache server to update a predetermined file set based on the current file block and the related file upload information to obtain an updated file set; The cache server is adapted to update a predetermined file set based on the current file block and the related file upload information, and after obtaining an updated file set, the file transmission method includes: employing the cache server to send the current file block and the related file upload information to the storage server; employing the storage server to receive the current file block and the related file upload information, and updating a predetermined file dataset based on the current file block and the related file upload information to obtain an updated file dataset; 19. The file transmission method according to claim 18.

20. the update file data set includes a predetermined binding data subset and a predetermined upload information subset; updating a predetermined file dataset based on the current file block and the related file upload information to obtain an updated file dataset; Employing the storage server to extract reference upload information corresponding to the current file block from the related file upload information, and bind the current file block with the reference upload information to obtain file block binding data; employing the storage server to update the predetermined binding data subset based on the file block binding data to obtain an updated binding data subset; employing the storage server to update the predetermined upload information subset based on the related file upload information to obtain an updated upload information subset; determining the update file data set based on the update upload information subset and the update binding data subset; 20. The file transmission method of claim 19.

21. A file transmission device, a first display unit configured to display a file receiving page and display a receiving control for a target file on the file receiving page, the target file being a file transmitted from a transmitting terminal to the file transmission device; a download unit configured to, in response to a trigger operation on the receiving control, start downloading the content of the target file already transmitted from the transmitting terminal during the process of the transmitting terminal transmitting the target file; a second display unit configured to display a file download page of the target file in response to a trigger operation on the receiving control, and display file transmission status information on the file download page, the file transmission status information indicating that the sending terminal is transmitting the target file; and and a third display unit configured to display download progress information on the file download page when the sending terminal completes sending the target file, the download progress information indicating that a portion of the target file has been downloaded. File transmission device.

22. A file transmission device, a fourth display unit configured to display a file sending page and display a mark of a target file and a sending control for the target file on the file sending page; a sending unit configured to, in response to a trigger operation on the sending control, send the target file to a receiving terminal, thereby causing the receiving terminal to start downloading the content of the target file that has already been sent from the file transmission device during the process of the file transmission device sending the target file; a fifth display unit configured to display a file transmission page of the target file, the file transmission page including a transmission progress mark of the target file; File transmission device.

23. A file transmission device, a receiving unit configured to receive at least one current file block of a target file sent from a sending terminal and related file upload information of the current file block; an updating unit configured to update a predetermined file set based on the current file block and the related file upload information to obtain an updated file set; a screening unit configured to, when receiving target file download information transmitted from a receiving terminal, screen file blocks corresponding to the target file download information from the predetermined file set and related file download information corresponding to the file blocks; a returning unit configured to return the file blocks and the related file download information to the receiving terminal, thereby causing the receiving terminal to obtain the target file when the sending terminal sends the target file; File transmission device.

24. An electronic device comprising a processor and a memory, 21. An electronic device, wherein an application is stored in the memory, and wherein the processor executes the steps of the file transmission method according to claim 1 by executing the application in the memory.

25. A computer program product for causing a processor to carry out the file transmission method according to any one of claims 1 to 20.

Citation Information

Patent Citations

  • Image management device, image management method, and program

    JP2022068683A

  • File transfer system and method using communication network

    KR1020090105398A