WO2011120364A1 - 一种传输多个文件的方法及系统 - Google Patents

一种传输多个文件的方法及系统 Download PDF

Info

Publication number
WO2011120364A1
WO2011120364A1 PCT/CN2011/071229 CN2011071229W WO2011120364A1 WO 2011120364 A1 WO2011120364 A1 WO 2011120364A1 CN 2011071229 W CN2011071229 W CN 2011071229W WO 2011120364 A1 WO2011120364 A1 WO 2011120364A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
transmitted
files
transmission
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2011/071229
Other languages
English (en)
French (fr)
Inventor
沈勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Publication of WO2011120364A1 publication Critical patent/WO2011120364A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Definitions

  • the present invention belongs to the field of communications, and in particular, to a method and system for transmitting multiple files. Background of the invention
  • IM Instant Messaging
  • IM tool users can transfer data directly from the entire folder.
  • the user can drag the folder to the session window of the IM tool, or the user can select a specific folder in the local storage space after selecting the folder transfer function in the dialog window of the IM tool, thereby initiating the folder. Transfer events.
  • the system will create a folder locally on the receiving side and receive multiple files in the folder transferred by the sender in a certain order.
  • the folder transfer completion is displayed on the user interface of the receiver. This way of using IM tools for file transfer has become one of the most important functions commonly used by Internet users today.
  • the user can select a folder and transfer the folder to transfer multiple files in the folder at the same time.
  • users with slower network speeds, especially those of Education Network may take a long time to fully receive a folder containing multiple files. Therefore, in this case, although the number of user operations can be reduced by the folder transfer method as compared with the manner in which the user transfers a single file multiple times, the time for the user to wait for file transfer cannot be shortened.
  • Embodiments of the present invention provide a method and system for transmitting multiple files, which can shorten the time required for transmitting multiple files, meet user needs, and improve user experience.
  • a method of transmitting a plurality of files comprising the steps of:
  • a system for transferring multiple files including:
  • a command receiving unit configured to receive a multi-file transmission request command
  • a transmission mode determining unit configured to determine a file transmission mode according to attributes of a plurality of files to be transmitted
  • a transmitting unit configured to transmit the multiple files to be transmitted according to the file transmission mode.
  • the file transmission mode is determined according to the attributes of the plurality of files to be transmitted, and the plurality of files to be transmitted are transmitted according to the determined file transmission mode, thereby implementing a method for transmitting multiple files, which can shorten the transmission. The time required for the files to reduce the waiting time of the recipient user.
  • FIG. 1 is a flowchart of an implementation of a method for transmitting multiple files according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a transmission interface display according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of another transmission interface display according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a system for transmitting multiple files according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of a method for displaying multiple transmission files according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a system for displaying multiple transmission files according to an embodiment of the present invention. Mode for carrying out the invention
  • the file transfer mode is determined according to the attributes of the plurality of files to be transferred, and then the plurality of files to be transferred are transmitted according to the determined file transfer mode, thereby implementing a method for transmitting a plurality of files.
  • the number of files to be transmitted is at least two.
  • FIG. 1 shows an implementation flow of a method for transmitting multiple files according to an embodiment of the present invention, which is described in detail below.
  • step S101 receiving a multi-file transfer request command
  • step S102 the file transfer mode is determined according to the attributes of the plurality of files to be transferred; in step S103, the plurality of files to be transferred are transmitted according to the determined file transfer mode.
  • the method of transmitting a plurality of files may be used by a server.
  • the sender may send a multi-file transfer request command to the server, where the multi-file transfer request command may include information of the folder to be transmitted and information of the receiver.
  • the information of the folder to be transferred may include attributes, types, sizes, and the like of the file to be transmitted in the to-be-transferred folder.
  • the to-be-transferred folder includes at least two files to be transmitted, and attributes of the files to be transmitted, that is, file formats, may be the same or different.
  • the attributes of the file to be transferred may be text attributes or multimedia attributes; files of text attributes are text files; files of multimedia attributes are multimedia files, including photos, audio files, video files or audio and video files.
  • the multi-file transmission request command sent by the sending direction server may directly include at least two to-be.
  • the information of the file and the receiver information are transmitted, that is, the sender does not submit a folder to be transmitted containing a plurality of files to be transferred, but directly submits a plurality of files to be transmitted to be transmitted.
  • other information such as information of the current network, may also be included.
  • the multi-file transfer request command sent by the sender can also be implemented in other manners, and is not described here.
  • Step 102 After receiving the multi-file transfer request command, the server determines the file transfer mode according to the attributes of the file to be transferred. Step 102 is specifically as follows:
  • the compressed transmission mode is adopted.
  • multiple files to be transmitted may be compressed, and simultaneously transmitted by multiple communication channels in parallel;
  • the attributes of the plurality of files to be transmitted are all multimedia attributes, it is determined that the parallel transmission mode is adopted.
  • the multiple to-be-transmitted files may be transmitted by using multiple communication channels respectively.
  • the attributes of the plurality of files to be transmitted include the text attribute and the multimedia attribute
  • the integrated transmission mode is adopted.
  • the text compression file may be obtained by compressing the text attribute to be transmitted, and the text compression file is transmitted by using multiple communication channels.
  • the file to be transmitted of the multimedia attribute; when transmitting, the above file may be transmitted in parallel, or the file may be transmitted in sequence.
  • step S102 is to determine a file transmission mode according to the capacity and attributes of a plurality of files to be transmitted. After receiving the multiple file transfer request command, the server determines the file transfer mode according to the capacity and attributes of the plurality of files to be transferred. Step 102 specifically includes the following steps.
  • Step S1021 Determine, according to the capacity and attributes of the plurality of files to be transmitted, a ratio of the capacity of the multimedia file to the total file capacity to be transmitted.
  • Step S1022 When the ratio of the capacity of the multimedia file to the total file capacity to be transmitted is less than or equal to the first threshold, determine that the compressed transmission mode is used to perform multiple files to be transmitted. Compressed and simultaneously transmitted in multiple communication channels.
  • the files to be transmitted may be separately compressed, and then the compressed files to be transmitted are sent in parallel by using multiple communication channels; or all the files to be transmitted may be compressed together, and then multiple communication channels are simultaneously used in parallel. Send the compressed file to be transferred.
  • Step S1023 When the ratio of the capacity of the multimedia file to the total file capacity to be transmitted is greater than or equal to the second threshold, it is determined that the parallel transmission mode is adopted, and multiple communication channels are respectively used to transmit different files to be transmitted.
  • Step S1024 When the ratio of the capacity of the multimedia file to the total file capacity to be transmitted is greater than the first threshold but less than the second threshold, determine to adopt an integrated transmission mode.
  • the text compression file may be obtained by compressing the text attribute to be transmitted.
  • the file to be transmitted of the text compressed file and the multimedia attribute is transmitted by using multiple communication channels; when the transmission is performed, the file may be transmitted in parallel, or the file may be sequentially transmitted.
  • the first threshold and the second threshold may be determined according to actual needs, or determined by testing. Generally, the value of the first threshold is smaller than the value of the second threshold. The value of the first threshold may be 10% to 45%, and the value of the second threshold may be 55 to 90%. In an embodiment of the invention, the first threshold is taken as 20% and the second threshold is taken as 80%. In addition, in addition to the compressed transfer mode, parallel transfer mode, and integrated transfer mode described herein, the file transfer mode can be other transfer modes.
  • the number of communication channels used for transmission may be further determined according to current network conditions, user settings, and the like.
  • the method for transmitting the plurality of files further includes: detecting a rate of the current network transmission file.
  • step S102 when the file transfer mode is determined in step S102, it is also referred to the detected current.
  • the network transmission file rate, step S102 is specifically:
  • the file transfer mode is determined based on the detected current network transfer file rate and the capacity and attributes of the file to be transferred.
  • the server after receiving the multi-file transmission request command, the server detects the current network transmission file rate, determines the file transmission mode according to the detected current network transmission file rate, and the capacity and attributes of the file to be transmitted.
  • the first threshold and the second threshold may be determined according to the detected current network transmission file rate, and the file transmission mode is adjusted by modifying the first threshold and the second threshold. For example, if the first threshold is lowered, the determined file transfer mode may be adjusted from the original compressed transfer mode to the integrated transfer mode.
  • the implementation of the file transmission mode is determined, and may be implemented in other manners according to actual needs.
  • the method for transmitting the plurality of files further includes:
  • the current network transmission file rate is periodically detected, the remaining time required for transmission is determined, and the remaining time is transmitted.
  • the server periodically detects the current network transmission file rate, determines the remaining time required to transmit the folder to be transmitted according to the detected current network transmission file rate, and transmits the remaining time to the receiver.
  • the receiver can display the remaining time required to transfer the folder on the transmission interface according to the remaining time sent by the server. As shown in FIG. 2, the remaining time required to transmit the folder to be transmitted displayed on the transmission interface is 1 minute and 35 seconds. In addition, the remaining time can also be sent to the sender at the same time.
  • the server may further determine, according to the detected current network transmission file rate, the remaining time required to transmit each file to be transmitted, and send the remaining time to the receiver.
  • the receiving party displays the transmission on the transmission interface according to the remaining time corresponding to each received file to be transmitted. The remaining time required to transfer each file to be transferred.
  • the method for transmitting the plurality of files further includes:
  • the overall transmission information is transmitted to the recipient.
  • the browsing information of the receiving user may be stored locally in the receiving terminal or in a user behavior database of the server, and the server obtains browsing information of the receiving user from the receiving terminal or the user behavior database.
  • the browsing information records whether the recipient user has browsed the folder to be transferred or the file to be transmitted during the last process of receiving the transmission file. If the browsing information of the recipient user records that the receiving user last received the transmission file For the browsing operation, the server transmits the transmission information of each communication channel to the receiver, otherwise, the server transmits the overall transmission information to the receiver.
  • the transmission information of the communication channel may include a file name, a transmission status, and the like of the file to be transmitted; the overall transmission information includes a folder name of the folder to be transmitted, a transmission status, and a number of files to be transmitted included in the to-be-transferred folder; The transmission status further includes the transmitted capacity and the total transmission capacity.
  • the browsing information may also record whether the receiving user has browsed the to-be-transferred folder or the file to be transmitted during the process of receiving the transmission file. .
  • the server sends the transmission information of each communication channel to the receiving user, otherwise, the server sends the total to the receiving user.
  • the body transmits information.
  • the browsing information of the receiver may also be obtained by the server in real time from the receiver.
  • the receiving party may display the overall transmission state and the specific transmission state of each communication channel on the transmission interface according to the overall transmission information sent by the server and the transmission information of each communication channel, as shown in FIG. 2, in the transmission interface.
  • the folder to be transferred is named "pic"
  • the transmitted volume is 9.69MB
  • the total transmission volume is 17MB.
  • the file to be transmitted corresponding to each communication channel is "2-153912-4.png", etc., each file to be transmitted Corresponding transmitted capacity and total transmission capacity.
  • the receiver can display the overall transmission status on the transmission interface according to the overall transmission information sent by the server. As shown in FIG. 3, the folder name to be transmitted is displayed as "pic”, and the transmitted volume is 9.69MB, and the transmission amount is 17MB.
  • the quantity and the number of files that have been transferred As shown in Figure 2 and Figure 3, on the icon corresponding to the folder to be transferred, a point is used to indicate a file to be transferred. Thus, the number of points on the icon corresponding to the folder to be transferred indicates the number of files to be transferred.
  • the file to be transmitted that has been transmitted and the file to be transmitted that has not been transferred may be further represented by different colors of points on the icon corresponding to the folder to be transferred.
  • step S103 For a multimedia file corresponding to the preview information, such as a picture, a video, and the like, in order to enable the recipient user to browse the file to be transmitted in advance, as another preferred embodiment of the present invention, in step S103, a plurality of to-be-transmitted transmissions are performed according to the determined file transmission mode.
  • the preview information corresponding to the multimedia file is preferentially transmitted.
  • the file transmission mode is transmitted according to the determined file transmission mode.
  • the method for transmitting a plurality of files includes: Receiving transmission control information from the receiver;
  • the transmission control information includes a control mode, and a file name to be transmitted or a file name to be transmitted, and the control mode may be a stop mode, an cancel mode, or a startup mode.
  • the receiver wants to stop, cancel the ongoing transmission of the folder to be transferred or the file to be transferred, or wants to restart the already stopped transmission behavior, it can send transmission control information to the server, Figure 2, 3 shows the reception The interface that provides the user with the "cancel" transfer behavior.
  • the server controls to stop, cancel or initiate the transmission of the file to be transmitted according to the transmission control information.
  • the method for transmitting a plurality of files may be used for a sender terminal, and the sender terminal performs all operations of the server, and the sender terminal and the receiver terminal adopt a peer-to-peer (P2P) transmission mode.
  • the sender terminal receives the user input multi-file transmission request command, determines the file transmission mode according to the capacity and attributes of the file to be transmitted, and transmits the file. Further, the sender terminal needs to detect the current network transmission file rate, determine the remaining time required for the transmission, and send it to the receiver, etc., and the specific implementation is the same as the above implementation in the server, and details are not described herein.
  • FIG. 4 shows the structure of a system for transmitting a plurality of files according to an embodiment of the present invention, and only parts related to the embodiments of the present invention are shown for convenience of description.
  • the system can be used for servers or sender devices, and can be a software unit, a hardware unit, or a combination of hardware and software running in these servers or sender devices.
  • the system includes a command receiving unit 401, a transmission mode determining unit 402, and a transmitting unit 403.
  • the command receiving unit 401 is configured to receive a multi-file transfer request command.
  • the multi-file transfer request command includes information of a folder to be transferred and information of a receiver.
  • the information of the folder to be transferred may include attributes, types and sizes of files to be transferred in the folder to be transferred. Wait.
  • the file to be transmitted includes at least two files to be transmitted, and the attributes of the files to be transferred, that is, the file format, may be the same or different, and the multiple file transmission request command may directly include at least two to be transmitted.
  • the information of the transmission file and the information of the receiver are specifically implemented as described above, and are not described again.
  • the transmission mode determining unit 402 is configured to determine a file transmission mode based on attributes of a plurality of files to be transmitted.
  • the transmission unit 403 is configured to transmit a plurality of files to be transmitted according to the file transmission mode determined by the transmission mode determining unit 402.
  • the attribute of the file to be transmitted may be a text attribute or a multimedia attribute; the file of the text attribute is a text file; the file of the multimedia attribute is a multimedia file, including a photo, an audio file, a video file, an audio and video file, and the like.
  • the transmission mode determining unit 402 may determine to adopt the compressed transmission mode; when the attributes of the plurality of files to be transmitted are all multimedia attributes, the transmission mode determining unit 402 may Determining to adopt the parallel transmission mode; when the attributes of the plurality of files to be transmitted include the text attribute and the multimedia attribute, the transmission mode determining unit 402 may determine to adopt the integrated transmission mode.
  • the transmission mode determining unit 402 determines the file transmission mode based on the capacity and attributes of a plurality of files to be transmitted. Specifically, the transmission mode determining unit 402 includes a capacity calculating module 4021 and a mode determining module 4022.
  • the capacity calculation module 4021 is configured to determine the ratio of the capacity of the multimedia file to the total file capacity to be transmitted according to the capacity and attributes of the plurality of files to be transmitted.
  • the mode determining module 4022 is configured to determine, when the ratio determined by the capacity calculating module 4021 is less than or equal to the first threshold, to adopt a compressed transmission mode, and determine that the parallel transmission mode is adopted when the ratio determined by the capacity calculating module 4021 is greater than or equal to the second threshold. Capacity calculation module When the determined ratio of 4021 is greater than the first threshold but less than the second threshold, it is determined that the integrated transmission mode is employed.
  • the first threshold and the second threshold may be determined according to actual requirements, or determined by testing, and the specific implementation is as described above, and details are not described herein.
  • the transmission unit 403 transmits a plurality of files to be transmitted according to the file transmission mode
  • the file transmission mode is the compressed transmission mode
  • the file to be transmitted is compressed, and simultaneously transmitted by using multiple communication channels
  • the file transmission mode is parallel transmission Mode, respectively, using multiple communication channels to transmit different files to be transmitted
  • the file transmission mode is integrated transmission mode
  • the file to be transmitted of the text attribute is compressed, and the files to be transmitted of the multimedia attribute are sequentially transmitted, respectively, using different communication Channel transmission
  • the system for transferring a plurality of files further includes:
  • the network detecting unit 404 is configured to detect a current network transmission file rate.
  • the transmission mode determining unit 402 when determining the file transmission mode, also refers to the detected current network transmission file rate. For example, the transmission mode determining unit 402 can detect the current network transmission file rate and the capacity of the file to be transmitted. And attributes, determine the file transfer mode, the specific implementation of which is described above, and will not be described again.
  • the system for transmitting a plurality of files further includes:
  • the time evaluation unit 405 is configured to periodically detect the current network transmission file rate, determine the remaining time required to transmit the file, and send the remaining time. The specific implementation manner is as described above, and details are not described herein.
  • the system for transmitting the plurality of files further includes: a transmission information sending unit 406, configured to acquire the receiver User's browsing information, if obtained The obtained browsing information records that the receiving user has the operation of browsing the file to be transmitted, and then transmits the transmission information of each communication channel to the receiving party. If the obtained browsing information records that the receiving user does not browse the file to be transmitted, The receiving party sends the overall transmission information, and the specific implementation manner is as described above, and details are not described herein again.
  • the transmission unit 403 is configured to transmit a plurality of files to be transmitted, and to the multimedia file. , preferentially transfer its corresponding preview information.
  • the system for transmitting the plurality of files further includes:
  • the transmission control unit 407 receives the transmission control information from the receiver, and stops, cancels, or initiates the transmission of the file to be transmitted according to the received transmission control information, and the specific implementation manner is as described above, and details are not described herein.
  • the embodiment of the present invention further provides a method for displaying a plurality of transmission files, and the implementation process thereof is as shown in FIG. 5, and the details are as follows:
  • step S501 receiving transmission information or overall transmission information of each communication channel sent by the server or the sender;
  • step S502 according to the received transmission information or the overall transmission information of each communication channel, the file name and transmission status of each file to be transmitted, or the file name of the folder to be transmitted, the transmission status, and the number of files to be transmitted are displayed.
  • the method of displaying a plurality of transmission files may be applied to a receiver.
  • the sender and the receiver can implement file transmission through the server, and the receiver communicates with the server, and the receiver receives the transmission information or the overall transmission information of each communication channel sent by the server; the sender and the receiver can also adopt P2P transmission mode, then the sender The receiver directly communicates with the receiver, and the receiver directly receives the transmission information or the overall transmission information of each communication channel sent by the sender.
  • the transmission status may include the transmitted capacity, the total transmission capacity, and the like.
  • the receiver may display the file name and transmission status of each file to be transmitted, or the file name and transmission status of the folder to be transmitted, as shown in FIG. 2 and FIG.
  • the number of files to be transferred The receiver can also display the number of files to be transferred and the number of files that have been transferred according to different display modes. As shown in Figure 2 and 3, a dot can be used to indicate a file to be transmitted on the icon corresponding to the folder to be transferred. Thus, the number of points on the icon corresponding to the folder to be transferred indicates the number of files to be transferred.
  • the file to be transmitted that has been transmitted and the file to be transmitted that has not been transmitted may be further represented by different colors of points on the icon corresponding to the folder to be transmitted.
  • the transmission information or the overall transmission information of each communication channel may be transmitted to the receiving party according to the obtained browsing information, as a preferred embodiment of the present invention, the method for displaying a plurality of transmission files also includes:
  • the receiving party detects whether the user has browsed the to-be-transmitted folder or the file to be transmitted while receiving the multiple files transmitted by the server or the sender, and sends the record receiving party to the server or the sender according to the detection result.
  • the user has browse information for browsing the folder to be transferred or the file to be transferred.
  • the server updates the browsing information of the recipient stored in the user behavior database.
  • the sender updates the browsing information of the recipient stored locally at the sender terminal.
  • the receiving direction server sends the browsing information; when the receiving party directly communicates with the sender, the receiving direction sends the sender Send browsing information.
  • the method for displaying the plurality of transmission files further includes: receiving the remaining time sent by the server or the sender, and The remaining time received is displayed.
  • the method of displaying a plurality of transmission files is further Includes:
  • the method for displaying the plurality of transmission files further includes:
  • the transmission control information input by the user is received, and the received control information is transmitted to the server or the sender.
  • the transmission control information includes a control control mode, and a file name to be transmitted or a file name to be transmitted, and the control mode may be a stop mode, an cancel mode, or a startup mode.
  • the receiver can provide the user with the method of inputting the transmission control information through the transmission interface to stop or cancel the transmission of the file to be transmitted or the file to be transmitted.
  • Figures 2 and 3 show the interface that receives the "cancel" corresponding transmission behavior provided by the user.
  • FIG. 6 shows a structure of a system for displaying a plurality of transmission files according to an embodiment of the present invention, and only parts related to the embodiments of the present invention are shown for convenience of description.
  • the system can be used for receiver devices, but can be a software ticket running within these devices Units, hardware units, or a combination of hardware and software can also be integrated into these devices or run in the application system of these devices as separate pendants.
  • the system includes a transmission information receiving unit 601 and a transmission information display unit 602.
  • the transmission information receiving unit 601 is configured to receive transmission information or overall transmission information of each communication channel sent by the server or the sender;
  • the transmission information display unit 602 is configured to display, according to each communication channel transmission information or overall transmission information received by the transmission information receiving unit 601, a file name and a transmission status of each file to be transmitted, or a file name, a transmission status, and a folder to be transmitted.
  • the number of files to be transmitted, the transmission status may include the transmitted capacity, the total transmission capacity, and the like, and the implementation manner is as described above, and details are not described herein again.
  • each channel transmission information or overall transmission information may be sent to the receiver according to the obtained browsing information.
  • the system for displaying the plurality of transmission files further includes :
  • the browsing information sending unit is configured to detect, when receiving the plurality of files to be transmitted, whether the user has browsed the to-be-transmitted folder or the file to be transmitted, and sends the browsing information to the server or the sender according to the detection result, and the implementation manner is as follows. Said, no longer repeat them.
  • the system for displaying a plurality of transmission files further includes: a remaining time display unit, configured to receive the server or send The remaining time sent by the party, and the remaining time received is displayed.
  • a remaining time display unit configured to receive the server or send The remaining time sent by the party, and the remaining time received is displayed.
  • the system for displaying a plurality of transmission files is further Includes:
  • a preview information display unit for receiving a multimedia file sent by a server or a sender
  • the corresponding preview information is displayed, and the received preview information is displayed, and the implementation manner thereof is as described above, and details are not described herein again.
  • the system for displaying the plurality of transmission files further includes:
  • the control information sending unit is configured to receive the transmission control information input by the user, and send the received control information to the server or the sender, and the implementation manner thereof is as described above, and details are not described herein.
  • the file transmission mode is determined according to the attributes of the plurality of files to be transmitted, and the plurality of files to be transmitted are transmitted according to the determined file transmission mode, thereby implementing a method for transmitting a plurality of files, which can shorten the transmission.
  • the time required for the files reduces the waiting time of the recipient users, satisfies the user's needs, and improves the user experience when transferring multiple files.
  • the recipient user can preview the file to be transmitted in advance.
  • the corresponding transmission behavior is controlled, so that the receiver can personalize the priority of the transmission.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Description

一种传输多个文件的方法及系统
技术领域
本发明属于通信领域, 尤其涉及一种传输多个文件的方法及系统。 发明背景
即时通信( Instant Messaging, IM )工具已经是网民不可缺少的网络 工具之一, 具有非常高的普及率。 通过 IM工具提供的点对点技术, 用 户可以在互联网上与朋友进行即时沟通, 甚至同时和几个朋友进行即时 沟通, 也被称为群聊。
利用 IM工具, 用户可以直接对整个文件夹中的数据进行传输。 在 进行文件夹传输时, 用户可以拖动文件夹到 IM工具的会话窗口, 或者 用户可以在 IM工具的对话窗口内选择文件夹传输功能后选择本地存储 空间内的特定文件夹, 从而发起文件夹传输事件。 系统会在接收方本地 建立一个文件夹并按照一定顺序接收发送方传输的文件夹中的多个文 件, 当文件夹中的所有文件传输完成, 接收方的用户界面上才显示文件 夹传输完成。 这种利用 IM工具进行文件传输的方式现已成为当今网民 普遍使用 IM工具的重要功能之一。
通过现有 IM工具提供的文件夹传输方式, 用户可以选择文件夹, 并通过传输该文件夹来同时传输该文件夹中的多个文件。 但是, 对于所 处网络的网速较慢的用户, 尤其是教育网的用户, 可能需要很长时间才 能完整接收到一个包含多文件的文件夹。 因此, 对于这种情况, 与用户 多次传输单个文件的方式相比, 虽然通过文件夹传输方式可以减少用户 的操作次数, 但是却无法缩短用户等待文件传输的时间。
综上所述, 现有 IM工具在采用文件夹传输方式来同时传输多个文 件时, 并不能缩短传输时间, 不能满足用户需求, 用户使用体验低。 发明内容
本发明实施例提供一种传输多个文件的方法和系统, 能够缩短传输 多个文件所需要的时间, 满足用户需要, 提高用户体验。
一种传输多个文件的方法, 包括下述步骤:
接收多文件传输请求命令;
根据多个待传输文件的属性确定文件传输模式;
根据所述文件传输模式传输所述多个待传输文件。
一种传输多个文件的系统, 包括:
命令接收单元, 用于接收多文件传输请求命令;
传输模式确定单元, 用于根据多个待传输文件的属性确定文件传输 模式; 以及
传输单元, 用于根据所述文件传输模式传输所述多个待传输文件。 在本发明实施例中,根据多个待传输文件的属性确定文件传输模式, 再根据确定的文件传输模式传输该多个待传输文件, 实现了一种传输多 个文件的方法, 能够缩短传输多个文件所需要的时间, 减少接收方用户 的等待时间。 附图简要说明
图 1是本发明实施例提供的传输多个文件的方法的实现流程图。 图 2是本发明实施例提供的一种传输界面显示示意图。
图 3是本发明实施例提供的另一种传输界面显示示意图。
图 4是本发明实施例提供的传输多个文件的系统的结构示意图。 图 5是本发明实施例提供的显示多个传输文件的方法的流程图。 图 6 是本发明实施例提供的显示多个传输文件的系统的结构示意 图。 实施本发明的方式
为了使本发明的目的、 技术方案及优点更加清楚明白, 以下结合附 图及实施例, 对本发明进行进一步详细说明。 应当理解, 此处所描述的 具体实施例仅仅用以解释本发明, 并不用于限定本发明。
在本发明实施例中, 根据多个待传输文件的属性确定文件传输模 式, 再根据确定的文件传输模式传输该多个待传输文件, 实现了一种传 输多个文件的方法。 在本发明实施例中, 多个待传输文件的数量为至少 两个。
图 1示出了本发明实施例提供的传输多个文件的方法的实现流程, 详述如下。
在步骤 S101中, 接收多文件传输请求命令;
在步骤 S102中, 根据多个待传输文件的属性确定文件传输模式; 在步骤 S103中, 根据确定的文件传输模式传输该多个待传输文件。 在本发明实施例中, 该传输多个文件的方法可以被服务器使用。 发 送方可以向服务器发送多文件传输请求命令, 该多文件传输请求命令中 可以包括待传输文件夹的信息和接收方的信息。 其中待传输文件夹的信 息可以包括该待传输文件夹中的待传输文件的属性, 类型和大小等。 该 待传输文件夹中包括至少两个待传输文件, 且各待传输文件的属性, 即 文件格式, 可以相同也可以不相同。 待传输文件的属性可以为文本属性 或多媒体属性; 文本属性的文件即文本文件; 多媒体属性的文件即多媒 体文件, 包括照片、 音频文件、 视频文件或音视频文件等。 另外, 发送 方向服务器发送的多文件传输请求命令中也可以直接包括至少两个待 传输文件的信息和接收方信息, 即发送方不再提交一个包含多个待传输 文件的待传输文件夹, 而是直接提交要传输的多个待传输文件。 另外, 在多文件传输请求命令中,还可以包括其他信息,如当前网络的信息等。 当然, 发送方发送的该多文件传输请求命令还可以采用以其他方式实 现, 这里不再——赘述。
服务器在接收到多文件传输请求命令后, 根据待传输文件的属性确 定文件传输模式, 步骤 102具体为:
当多个待传输文件的属性均为文本属性时, 确定采用压缩传输模 式, 具体地, 可以对多个待传输文件进行压缩, 并同时采用多个通信通 道并行发送;
当多个待传输文件的属性均为多媒体属性时, 确定采用并行传输模 式, 具体地, 可以分别采用多个通信通道传输该多个待传输文件;
当多个待传输文件的属性包括文本属性和多媒体属性时, 确定采用 综合传输模式, 具体地, 可以通过压缩文本属性的待传输文件得到文本 压缩文件, 采用多个通信通道传输该文本压缩文件和多媒体属性的待传 输文件; 在进行传输时, 可以并行传输上述文件, 也可以依次传输上述 文件。
为了进一步提高传输效率, 作为本发明的一个优选实施例, 步骤 S102为根据多个待传输文件的容量和属性确定文件传输模式。服务器在 接收到多文件传输请求命令后, 根据多个待传输文件的容量和属性确定 文件传输模式, 步骤 102具体包括如下步骤。
步骤 S1021 , 根据多个待传输文件的容量和属性, 确定多媒体文件 的容量占全部待传输文件容量的比例。
步骤 S1022, 当多媒体文件的容量占全部待传输文件容量的比例小 于或等于第一阈值时, 确定采用压缩传输模式, 对多个待传输文件进行 压缩, 并同时采用多个通信通道并行发送。
具体地, 可以对各待传输文件分别进行压缩, 再同时采用多个通信 通道并行发送各压缩后的待传输文件; 也可以对所有的待传输文件一起 进行压缩, 再同时采用多个通信通道并行发送压缩后的待传输文件。
步骤 S1023 , 当多媒体文件的容量占全部待传输文件容量的比例大 于或等于第二阈值时, 确定采用并行传输模式, 分别采用多个通信通道 传输不同待传输文件。
步骤 S1024, 当多媒体文件的容量占全部待传输文件容量的比例大 于第一阈值但小于第二阈值时, 确定采用综合传输模式, 具体地, 可以 通过压缩文本属性的待传输文件得到文本压缩文件, 采用多个通信通道 传输该文本压缩文件和多媒体属性的待传输文件; 在进行传输时, 可以 并行传输上述文件, 也可以依次传输上述文件。
其中, 第一阈值和第二阈值可以根据实际需求确定, 或者通过测试 确定。 一般地, 第一阈值的取值小于第二阈值的取值, 第一阈值的取值 范围可以为 10% ~ 45 % , 第二阈值的取值范围可以为 55 ~ 90%。 在本发 明实施例中, 第一阈值取 20% , 第二阈值取 80%。 另外, 除了这里描述 的压缩传输模式、 并行传输模式和综合传输模式外, 文件传输模式还可 以为其他的传输模式。
在本发明实施例中, 当采用多个通信通道进行传输时, 还可以进一 步根据当前的网络状况、 用户设置等, 确定进行传输所采用的通信通道 的数量。
进一步地, 为了更准确地确定文件传输模式, 作为本发明的另一个 优选实施例, 在步骤 S102之前, 该传输多个文件的方法还包括: 检测 当前网络传输文件的速率。
此时, 在步骤 S102确定文件传输模式时, 还要参考检测到的当前 网络传输文件速率, 步骤 S102具体为:
根据检测到的当前网络传输文件速率, 以及待传输文件的容量和属 性, 确定文件传输模式。
在本发明实施例中, 服务器接收到多文件传输请求命令后, 检测当 前网络传输文件速率, 根据检测到的当前网络传输文件速率, 以及待传 输文件的容量和属性, 确定文件传输模式。 具体实现时, 可以根据检测 到的当前网络传输文件速率确定第一阈值和第二阈值, 并通过对第一阈 值和第二阈值的修改, 来调整文件传输模式。 例如, 将第一阈值降低, 则确定的文件传输模式可能由原来的压缩传输模式调整为综合传输模 式。 当然, 根据检测到的当前网络传输文件速率, 以及待传输文件的容 量和属性, 确定文件传输模式的实现, 还可以根据实际需求等采用其他 方式实现。
为了向接收方提供文件传输估计时间, 作为本发明的另一个优选实 施例, 在步骤 S103 ,根据确定的文件传输模式传输多个待传输文件的同 时, 该传输多个文件的方法还包括:
定时检测当前网络传输文件速率, 确定传输所需的剩余时间并发送 该剩余时间。
服务器定时检测当前网络传输文件速率, 根据检测到的当前网络传 输文件速率确定传输待传输文件夹所需的剩余时间, 将该剩余时间发送 给接收方。 接收方可以根据服务器发送的剩余时间, 在传输界面显示传 输文件夹所需剩余时间, 如图 2所示, 在传输界面显示的传输待传输文 件夹所需的剩余时间为 1分 35秒。 另外, 还可以同时将该剩余时间发 送给发送方。 当然, 服务器还可以根据检测到的当前网络传输文件速率 确定传输各待传输文件所需的剩余时间, 将剩余时间发送给接收方。 由 接收方根据接收到的各待传输文件对应的剩余时间, 在传输界面显示传 输各待传输文件所需的剩余时间。
另外, 为了根据接收方用户的使用习惯, 向接收方提供文件传输信 息, 作为本发明的另一个优选实施例,
在步骤 S103 , 根据确定的文件传输模式传输多个待传输文件的同 时, 该传输多个文件的方法还包括:
获取接收方用户的浏览信息;
如果获取到的浏览信息记录接收方用户有浏览待传输文件的操作, 则向接收方发送各通信通道的传输信息;
如果获取到的浏览信息记录接收方用户没有浏览待传输文件的操 作, 则向接收方发送总体传输信息。
在本发明实施例中, 接收方用户的浏览信息可以存储在接收方终端 的本地或者位于服务器的用户行为数据库等中, 服务器从接收方终端或 者用户行为数据库中获取接收方用户的浏览信息, 该浏览信息记录接收 方用户在上次接收传输文件的过程中, 是否有浏览待传输文件夹或者待 传输文件的操作, 如果接收方用户的浏览信息记录了接收方用户在上次 接收传输文件时有浏览操作, 则服务器向接收方发送各通信通道的传输 信息, 否则, 服务器向接收方发送总体传输信息。 其中, 通信通道的传 输信息可以包括待传输文件的文件名、 传输状态等; 总体传输信息包括 待传输文件夹的文件夹名、 传输状态, 以及待传输文件夹下包括的待传 输文件数量等; 传输状态又进一步包括已传输容量和总传输容量等。
除了仅记录接收方用户在上一次接收传输文件过程中是否有浏览 操作, 该浏览信息还可以记录接收方用户在之前接收传输文件的过程 中, 是否有浏览待传输文件夹或者待传输文件的操作。 对应地, 如果接 收方的浏览信息记录了接收方用户有过一次浏览操作, 则服务器向接收 方用户发送各通信通道的传输信息, 否则, 服务器向接收方用户发送总 体传输信息。 另外, 在向接收方发送各通信通道的传输信息时, 还可以 同时发送总体传输信息。 在本发明实施例中, 接收方的浏览信息还可以 是服务器从接收方实时获取到的。
在本发明实施例中, 接收方可以根据服务器发送的总体传输信息和 各通信通道的传输信息, 在传输界面显示总体传输状态和各通信通道的 具体传输状态, 如图 2 所示, 在传输界面显示了待传输文件夹名称为 "pic" , 已传输量为 9.69MB, 总传输量为 17MB, 各通信通道对应传输 的待传输文件为 "2-153912-4.png"等, 各待传输文件对应的已传输容量 和总传输容量。 另外, 接收方可以根据服务器发送的总体传输信息, 在 传输界面显示总体传输状态, 如图 3所示, 显示出待传输文件夹名称为 "pic" , 已传输量为 9.69MB, 应传输量为 17MB。 数量及已传输完成的文件数量。 如图 2、 3 所示, 在待传输文件夹对应 的图标上, 利用一个点表示一个待传输文件, 这样, 待传输文件夹对应 的图标上的点的数量就表示待传输文件的数量。 另外, 还可以进一步通 过待传输文件夹对应的图标上的点的不同颜色来表示已传输完成的待 传输文件和还未传输完成的待传输文件。
对于对应有预览信息的图片、 视频等多媒体文件, 为了使接收方用 户能够预先浏览待传输文件, 作为本发明的另一个优选实施例, 在步骤 S103 , 根据确定的文件传输模式传输多个待传输文件时,
对于多媒体文件, 优先传输该多媒体文件对应的预览信息。
为了便于接收方个性化控制待传输文件的传输顺序, 控制是否需要 接收相应的待传输文件夹或者待传输文件, 作为本发明的另一个优先实 施例, 在步骤 S103,根据确定的文件传输模式传输多个待传输文件的同 时, 该传输多个文件的方法还包括: 接收来自接收方的传输控制信息;
根据接收到的传输控制信息,停止、取消或启动待传输文件的传输。 在本发明实施例中, 该传输控制信息包括控制模式, 以及待传输文 件夹名或待传输文件名, 控制模式可以为停止模式、 取消模式或启动模 式。 如果接收方想要停止、 取消正在进行的传输待传输文件夹或待传输 文件的行为, 或想要重新启动已经停止的传输行为, 可以向服务器发送 传输控制信息, 图 2、 3 示出了接收方向用户提供的 "取消" 传输行为 的界面。 服务器在接收到接收方发送的传输控制信息后, 根据该传输控 制信息控制停止、 取消或启动传输待传输文件的行为。
另外, 上述传输多个文件的方法还可以用于发送方终端, 由发送方 终端执行上述服务器的全部操作, 发送方终端与接收方终端采用端对端 ( Peer to Peer, P2P )传输模式。 具体实现时, 发送方终端接收用户输入 多文件传输请求命令, 根据待传输文件的容量和属性, 确定文件传输模 式并进行传输。 进一步地, 发送方终端还需要检测当前网络传输文件速 率, 确定传输所需的剩余时间并发送给接收方等, 其具体实现同上述在 服务器中的实现, 不再赘述。
图 4示出了本发明实施例提供的传输多个文件的系统的结构, 为了 便于说明仅示出了与本发明实施例相关的部分。
该系统可以用于服务器或者发送方设备, 可以是运行于这些服务器 或者发送方设备内的软件单元、 硬件单元或者软硬件相结合的单元。
如图 4所示,该系统包括命令接收单元 401 ,传输模式确定单元 402 和传输单元 403。
命令接收单元 401用于接收多文件传输请求命令。 该多文件传输请 求命令中包括待传输文件夹的信息和接收方的信息。 其中待传输文件夹 的信息可以包括该待传输文件夹中的待传输文件的属性, 类型和大小 等。 该待传输文件夹中包括至少两个待传输文件, 且各待传输文件的属 性, 即文件格式, 可以相同也可以不相同, 该多文件传输请求命令还可 以直接包括要传输的至少两个待传输文件的信息和接收方的信息, 其具 体实现如上所述, 不再赘述。
传输模式确定单元 402用于根据多个待传输文件的属性确定文件传 输模式。
传输单元 403用于根据传输模式确定单元 402确定的文件传输模式 传输多个待传输文件。
在本发明实施例中, 待传输文件的属性可以为文本属性或多媒体属 性; 文本属性的文件即文本文件; 多媒体属性的文件即多媒体文件, 包 括照片、 音频文件、 视频文件、 音视频文件等。 如上所述, 当多个待传 输文件的属性均为文本属性时, 传输模式确定单元 402可以确定采用压 缩传输模式; 当多个待传输文件的属性均为多媒体属性时, 传输模式确 定单元 402可以确定采用并行传输模式; 当多个待传输文件的属性包括 文本属性和多媒体属性时, 传输模式确定单元 402可以确定采用综合传 输模式。
为了进一步提高传输效率, 作为本发明的一个优选实施例, 传输模 式确定单元 402根据多个待传输文件的容量和属性确定文件传输模式。 具体地, 传输模式确定单元 402包括容量计算模块 4021和模式确定模 块 4022。
容量计算模块 4021 用于根据多个待传输文件的容量和属性, 确定 多媒体文件的容量占全部待传输文件容量的比例。
模式确定模块 4022用于当容量计算模块 4021确定的比例小于或等 于第一阈值时, 确定采用压缩传输模式, 当容量计算模块 4021 确定的 比例大于或等于第二阈值时, 确定采用并行传输模式, 当容量计算模块 4021确定的比例大于第一阈值但小于第二阈值时,确定采用综合传输模 式。
其中, 第一阈值和第二阈值可以根据实际需求确定, 或者通过测试 确定, 其具体实现如上所述, 不再赘述。
对应地,传输单元 403在根据文件传输模式传输多个待传输文件时, 当文件传输模式为压缩传输模式, 对待传输文件进行压缩, 并同时采用 多个通信通道发送; 当文件传输模式为并行传输模式, 分别利用多个通 信通道传输不同待传输文件; 当文件传输模式为综合传输模式, 则对文 本属性的待传输文件进行压缩, 而对多媒体属性的待传输文件依次发 送, 分别利用不同的通信通道传输, 其具体实现如上所述, 不再赘述。
为了更准确地确定文件传输模式, 作为本发明的一个优选实施例, 该传输多个文件的系统还包括:
网络检测单元 404 , 用于检测当前网络传输文件速率。
此时, 传输模式确定单元 402在确定文件传输模式时, 还要参考检 测到的当前网络传输文件速率, 例如传输模式确定单元 402可以根据检 测到的当前网络传输文件速率, 以及待传输文件的容量和属性, 确定文 件传输模式, 其具体实现方式如上所述, 不再赘述。
为了向接收方提供文件传输估计时间, 作为本发明的另一个优选实 施例, 该传输多个文件的系统还包括:
时间评估单元 405 , 用于定时检测当前网络传输文件速率, 确定传 输文件所需剩余时间并发送该剩余时间, 其具体实现方式如上所述, 不 再赘述。
另外, 为了根据接收方用户的使用习惯, 向接收方提供文件传输信 息, 作为本发明的另一个优选实施例, 该传输多个文件的系统还包括: 传输信息发送单元 406, 用于获取接收方用户的浏览信息, 如果获 取到的浏览信息记录该接收方用户有浏览待传输文件的操作 , 则向接收 方发送各通信通道的传输信息, 如果获取到的浏览信息记录接收方用户 没有浏览待传输文件的操作, 则向接收方发送总体传输信息, 其具体实 现方式如上所述, 不再赘述。
对于对应有预览信息的图片、 视频等多媒体文件, 为了使接收方用 户能够预先浏览待传输文件, 作为本发明的另一个优选实施例, 传输单 元 403在传输多个待传输文件时, 对于多媒体文件, 优先传输其对应的 预览信息。
为了便于接收方个性化控制传输的优先级, 控制是否需要接收相应 的待传输文件夹或者待传输文件, 作为本发明的另一个优先实施例, 该 传输多个文件的系统还包括:
传输控制单元 407 , 接收来自接收方的传输控制信息, 根据接收到 的传输控制信息, 停止、 取消或启动传输待传输文件的行为, 其具体实 现方式如上所述, 不再赘述。
对应上述传输多个文件的方法, 本发明实施例还提供一种显示多个 传输文件的方法, 其实现流程如图 5所示, 详述如下:
在步骤 S501 中, 接收服务器或者发送方发送的各通信通道的传输 信息或总体传输信息;
在步骤 S502 中, 根据接收到的各通信通道的传输信息或总体传输 信息, 显示各待传输文件的文件名和传输状态, 或待传输文件夹的文件 名、 传输状态和待传输文件数量。
在本发明实施例中, 该显示多个传输文件的方法可以应用于接收 方。 发送方与接收方之间可以通过服务器实现文件传输, 则接收方与服 务器进行通信, 接收方接收服务器发送的各通信通道的传输信息或总体 传输信息等; 发送方与接收方之间还可以采用 P2P传输模式, 则发送方 与接收方直接进行通信, 接收方直接接收发送方发送的各通信通道的传 输信息或总体传输信息等。 其中, 传输状态可以包括已传输容量和总传 输容量等。 接收方在接收到各通信通道的传输信息或总体传输信息后, 可以通过图 2、 3 所示的方式显示各待传输文件的文件名和传输状态, 或待传输文件夹的文件名、 传输状态和待传输文件数量。 接收方还可以 根据不同的显示方式显示出待传输文件的数量及已传输完成的文件数 量, 如图 2、 3 所示, 可以在待传输文件夹对应的图标上用一个点表示 一个待传输文件, 这样, 待传输文件夹对应的图标上点的数量就表示待 传输文件的数量。 另外, 还可以进一步通过待传输文件夹对应的图标上 点的不同颜色来表示已传输完成的待传输文件和还未传输完成的待传 输文件等。
在上述传输多个文件的方法中, 可以根据获取到的浏览信息, 向接 收方发送各通信通道的传输信息或总体传输信息, 作为本发明的一个优 选实施例, 该显示多个传输文件的方法还包括:
在接收多个待传输文件的同时, 检测用户是否有浏览待传输文件夹 或者待传输文件的操作, 根据检测结果向服务器或者发送方发送浏览信 息。
在本发明实施例中, 接收方在接收服务器或者发送方传输的多文件 的同时, 检测用户是否有浏览待传输文件夹或者待传输文件的操作, 根 据检测结果向服务器或者发送方发送记录接收方用户在接收传输文件 的过程中, 是否有浏览待传输文件夹或者待传输文件操作的浏览信息。 服务器在接收到该浏览信息后, 更新存储在用户行为数据库中的接收方 的浏览信息。 发送方在接收到该浏览信息后, 更新存储在发送方终端本 地的接收方的浏览信息。 当接收方与服务器进行通信时, 接收方向服务 器发送浏览信息; 当接收方与发送方直接进行通信时, 接收方向发送方 发送浏览信息。
为了让用户即时了解接收文件所需要的时间, 提高用户的体验性, 作为本发明的另一个优先实施例, 该显示多个传输文件的方法还包括: 接收服务器或者发送方发送的剩余时间, 并显示接收到的剩余时 间。
对于对应有预览信息的图片、 视频等多媒体文件, 为了使接收方用 户能够预先浏览待传输文件, 提高用户的体验性, 作为本发明的另一个 优选实施例, 该显示多个传输文件的方法还包括:
接收服务器或者发送方发送的多媒体文件对应的预览信息, 并显示 接收到的预览信息。
为了便于接收方个性化控制传输的优先级, 控制是否需要接收相应 的待传输文件夹或者待传输文件, 作为本发明的另一个优先实施例, 该 显示多个传输文件的方法还包括:
接收用户输入的传输控制信息, 向服务器或者发送方发送接收到的 控制信息。
在本发明实施例中, 该传输控制信息包括控制控制模式, 以及待传 输文件夹名或待传输文件名, 控制模式可以为停止模式、 取消模式或启 动模式。 接收方可以通过传输界面向用户提供输入传输控制信息的方 式, 以停止、 取消正在传输待传输文件夹或待传输文件的行为。 图 2、 3 示出了接收方向用户提供的 "取消" 相应传输行为的界面。 当接收方与 服务器进行通信时, 接收方向服务器发送接收到的控制信息; 当接收方 与发送方直接进行通信时, 接收方向发送方发送接收到的控制信息。
图 6示出了本发明实施例提供的显示多个传输文件的系统的结构, 为了便于说明仅示出了与本发明实施例相关的部分。
该系统可以用于接收方设备, 可以是运行于这些设备内的软件单 元、 硬件单元或者软硬件相结合的单元, 也可以作为独立的挂件集成到 这些设备中或者运行于这些设备的应用系统中。
如图 6所示, 该系统包括传输信息接收单元 601和传输信息显示单 元 602。
传输信息接收单元 601 , 用于接收服务器或者发送方发送的各通信 通道的传输信息或总体传输信息;
传输信息显示单元 602, 用于根据传输信息接收单元 601接收到的 各通信通道传输信息或总体传输信息, 显示各待传输文件的文件名和传 输状态, 或待传输文件夹的文件名、 传输状态和待传输文件数量, 该传 输状态可以包括已传输容量和总传输容量等, 其实现方式如上所述, 不 再赘述。
在上述传输多个文件的系统中, 可以根据获取到的浏览信息, 向接 收方发送各通道传输信息或总体传输信息, 作为本发明的一个优选实施 例, 该显示多个传输文件的系统还包括:
浏览信息发送单元, 用于在接收多个待传输文件的同时, 检测用户 是否有浏览待传输文件夹或者待传输文件的操作, 根据检测结果向服务 器或者发送方发送浏览信息, 其实现方式如上所述, 不再赘述。
为了让用户即时了解接收文件所需要的时间, 提高用户的体验性, 作为本发明的另一个优先实施例, 该显示多个传输文件的系统还包括: 剩余时间显示单元, 用于接收服务器或者发送方发送的剩余时间, 并显示接收到的剩余时间, 其实现方式如上所述, 不再赘述。
对于对应有预览信息的图片、 视频等多媒体文件, 为了使接收方用 户能够预先浏览待传输文件, 提高用户的体验性, 作为本发明的另一个 优选实施例, 该显示多个传输文件的系统还包括:
预览信息显示单元, 用于接收服务器或者发送方发送的多媒体文件 对应的预览信息, 并显示接收到的预览信息, 其实现方式如上所述, 不 再赘述。
为了便于接收方个性化控制传输的优先级, 控制是否需要接收相应 的待传输文件夹或者待传输文件, 作为本发明的另一个优先实施例, 该 显示多个传输文件的系统还包括:
控制信息发送单元, 用于接收用户输入的传输控制信息, 并向服务 器或者发送方发送接收到的控制信息,其实现方式如上所述,不再赘述。
在本发明实施例中, 根据多个待传输文件的属性确定文件传输模 式, 再根据确定的文件传输模式传输该多个待传输文件, 实现了一种传 输多个文件的方法, 能够缩短传输多个文件所需要的时间, 减少接收方 用户的等待时间, 满足用户需要, 提高传输多个文件时的用户体验。
并且, 通过在传输过程中发送不同的提示信息, 包括剩余时间、 各 通信通道的传输信息、总体传输信息等,有效反馈用户当前的传输状态。
进一步地, 通过优先传输多媒体文件对应的预览信息, 使得接收方 用户能够预先浏览待传输文件。
另外, 根据接收到的传输控制信息, 控制相应传输行为, 便于接收 方个性化控制传输的优先级。
本领域普通技术人员可以理解, 实现上述实施例方法中的全部或部 分步骤是可以通过程序来指令相关的硬件来完成, 所述的程序可以在存 储于一计算机可读取存储介质中, 所述的存储介质, 如 ROM/RAM、 磁 盘、 光盘等。
以上所述仅为本发明的较佳实施例而已, 并不用以限制本发明, 凡 在本发明的精神和原则之内所作的任何修改、 等同替换和改进等, 均应 包含在本发明的保护范围之内。

Claims

权利要求书
1、 一种传输多个文件的方法, 其特征在于, 所述方法包括: 接收多文件传输请求命令;
根据多个待传输文件的属性确定文件传输模式;
根据所述文件传输模式传输所述多个待传输文件。
2、如权利要求 1所述的方法, 其特征在于, 所述待传输文件的属性 包括文本属性和多媒体属性。
3、如权利要求 2所述的方法, 其特征在于, 所述根据多个待传输文 件的属性确定文件传输模式包括:
当所述多个待传输文件的属性均为文本属性时, 确定所述文件传输 模式为压缩传输模式;
当所述多个待传输文件的属性均为多媒体属性时, 确定所述文件传 输模式为并行传输模式;
当所述多个待传输文件的属性包括文本属性和多媒体属性时, 确定 所述文件传输模式为综合传输模式。
4、如权利要求 2所述的方法, 其特征在于, 所述根据多个待传输文 件的属性确定文件传输模式包括: 根据所述多个待传输文件的容量和属 性确定所述文件传输模式。
5、如权利要求 4所述的方法, 其特征在于, 根据所述多个待传输文 件的容量和属性确定所述文件传输模式包括:
根据所述多个待传输文件的容量和属性, 确定所述多个待传输文件 中多媒体文件的容量占全部待传输文件容量的比例;
当所述多媒体文件的容量占全部待传输文件容量的比例小于或等于 第一阈值时, 确定所述文件传输模式为压缩传输模式; 当所述多媒体文件的容量占全部待传输文件容量的比例大于或等于 第二阈值时, 确定所述文件传输模式为并行传输模式;
当所述多媒体文件的容量占全部待传输文件容量的比例大于第一阈 值但 d、于第二阈值时, 确定所述文件传输模式为综合传输模式。
6、 如权利要求 3、 4或 5所述的方法, 其特征在于, 所述压缩传输 模式包括: 对所述多个待传输文件进行压缩, 并同时采用多个通信通道 并行发送;
所述并行传输模式包括: 采用多个通信通道分别传输所述多个待传 输文件;
所述综合传输模式包括: 通过压缩文本属性的待传输文件得到文本 压缩文件, 采用多个通信通道传输所述文本压缩文件和多媒体属性的待 传输文件。
7、如权利要求 4或 5所述的方法, 其特征在于, 在所述根据多个待 传输文件的容量和属性确定文件传输模式之前, 所述方法还包括检测当 前网络传输文件速率;
所述根据多个待传输文件的容量和属性, 确定所述文件传输模式包 括:
根据所述当前网络传输文件速率, 以及所述待传输文件的容量和属 性, 确定所述文件传输模式。
8、如权利要求 1或 2所述的方法, 其特征在于, 在所述根据确定的 文件传输模式传输所述多个待传输文件时, 所述方法还包括:
获取接收方的用户的浏览信息;
如果所述浏览信息记录接收方用户有浏览待传输文件的操作, 则向 所述接收方发送每个用于传输所述多个待传输文件的通信通道的传输 信息; 如果所述浏览信息记录接收方用户没有浏览待传输文件的操作, 则 向所述接收方发送用于传输所述多个待传输文件的通信通道的总体传 输信息。
9、如权利要求 1或 2所述的方法, 其特征在于, 在所述根据确定的 文件传输模式传输所述多个待传输文件时, 所述方法还包括:
优先传输所述待传输文件中的多媒体文件对应的预览信息。
10、 如权利要求 1或 2所述的方法, 其特征在于, 在所述根据确定 的文件传输模式传输所述多个待传输文件时, 所述方法还包括:
接收来自接收方的传输控制信息;
根据所述传输控制信息, 停止、 取消或启动传输所述待传输文件。
11、 如权利要求 1或 2所述的方法, 其特征在于, 在所述根据确定 的文件传输模式传输所述多个待传输文件时, 所述方法还包括:
定时检测当前网络传输文件速率, 确定传输所述待传输文件所需的 剩余时间并发送所述剩余时间。
12、 如权利要求 1所述的方法, 其特征在于, 所述方法还包括: 通过多个通信通道接收所述多个待传输文件时, 接收服务器或者发 送方发送的所述每个通信通道的传输信息或所述多个通信通道的总体 传输信息;
根据所述每个通信通道的传输信息或所述多个通信通道的总体传输 信息, 显示所述每个待传输文件的文件名和传输状态, 或显示包括所述 多个待传输文件的待传输文件夹的文件名、 传输状态和待传输文件数 量。
13、 如权利要求 12所述的方法, 其特征在于, 所述方法还包括: 在接收所述多个待传输文件时, 检测用户是否有浏览所述待传输文 件夹或者浏览包含所述多个待传输文件的待传输文件的操作, 根据检测 结果向服务器或者发送方发送浏览信息; 或者
接收服务器或者发送方发送的剩余时间, 并显示接收到的所述剩余 时间; 或者
接收服务器或者发送方发送的所述多个待传输文件中的多媒体文件 对应的预览信息, 并显示接收到的所述预览信息; 或者
接收用户输入的传输控制信息, 向服务器或者发送方发送接收到的 所述控制信息。
14、 一种传输多个文件的系统, 其特征在于, 所述系统包括: 命令接收单元, 用于接收多文件传输请求命令;
传输模式确定单元, 用于根据多个待传输文件的属性确定文件传输 模式; 以及
传输单元, 用于根据所述文件传输模式传输所述多个待传输文件。
15、如权利要求 14所述的系统, 其特征在于, 所述待传输文件的属 性包括文本属性和多媒体属性。
16、如权利要求 15所述的系统, 其特征在于, 所述传输模式确定单 元包括:
容量计算模块, 用于根据所述多个待传输文件的容量和属性, 确定 所述多个待传输文件中多媒体文件的容量占全部待传输文件容量的比 例; 以及
模式确定模块, 用于当所述容量计算模块确定的比例小于或等于第 一阈值时, 确定所述文件传输模式为压缩传输模式, 当所述容量计算模 块确定的比例大于或等于第二阈值时, 确定所述文件传输模式为并行传 输模式, 当所述容量计算模块确定的比例大于第一阈值但小于第二阈值 时, 确定所述文件传输模式为综合传输模式。
17、 如权利要求 16所述的系统, 其特征在于, 所述系统还包括: 网络检测单元, 用于检测当前网络传输文件速率; 所述传输模式确定单元中的模式确定模块还用于根据所述当前网络 传输文件速率确定所述第一阈值和所述第二阈值。
18、 如权利要求 14所述的系统, 其特征在于, 所述系统还包括: 时间评估单元, 用于定时检测当前网络传输文件速率, 确定传输所 述待传输文件所需剩余时间并发送所述剩余时间; 或者
传输信息发送单元, 用于获取接收方的用户的浏览信息, 如果所述 浏览信息记录接收方用户有浏览待传输文件的操作, 则向所述接收方发 送每个用于传输所述多个待传输文件的通信通道的传输信息, 如果所述 浏览信息记录接收方用户没有浏览待传输文件的操作, 则向所述接收方 发送用于传输所述多个待传输文件的通信信道的总体传输信息; 或者 传输控制单元, 用于接收来自接收方的传输控制信息, 根据接收到 的传输控制信息, 停止、 取消或启动相应待传输文件的传输行为。
19、如权利要求 14所述的系统, 其特征在于, 所述传输单元还用于 优先传输所述待传输文件中的多媒体文件对应的预览信息。
20、 如权利要求 14所述的系统, 其特征在于, 所述系统还包括: 传输信息接收单元, 用于通过多个通信通道接收所述多个待传输文 件时, 接收服务器或者发送方发送的所述每个通信通道的传输信息或所 述多个通信通道的总体传输信息; 以及
传输信息显示单元, 用于根据所述传输信息接收单元接收到的所述 每个通信通道的传输信息或所述多个通信通道的总体传输信息, 显示所 述每个待传输文件的文件名和传输状态, 或显示包括所述多个待传输文 件的待传输文件夹的文件名、 传输状态和待传输文件数量。
21、 如权利要求 14所述的系统, 其特征在于, 所述系统还包括: 浏览信息发送单元, 用于在接收所述多个待传输文件时, 检测用户 是否有浏览所述待传输文件夹或者所述待传输文件的操作, 根据检测结 果向服务器或者发送方发送浏览信息; 或者
剩余时间显示单元, 用于接收服务器或者发送方发送的剩余时间, 并显示接收到的剩余时间; 或者
预览信息显示单元, 用于接收服务器或者发送方发送的所述多个待 传输文件中的多媒体文件对应的预览信息, 并显示接收到的预览信息; 或者
控制信息发送单元, 用于接收用户输入的传输控制信息, 并向服务 器或者发送方发送接收到的控制信息。
22、 一种计算机可读存储介质, 其特征在于, 存储计算机程序用以 使计算机设备执行如权利要求 1至 13中任一项所述的方法。
PCT/CN2011/071229 2010-03-30 2011-02-24 一种传输多个文件的方法及系统 Ceased WO2011120364A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010138384.5 2010-03-30
CN 201010138384 CN102209085B (zh) 2010-03-30 2010-03-30 一种传输多个文件的方法及系统

Publications (1)

Publication Number Publication Date
WO2011120364A1 true WO2011120364A1 (zh) 2011-10-06

Family

ID=44697749

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/071229 Ceased WO2011120364A1 (zh) 2010-03-30 2011-02-24 一种传输多个文件的方法及系统

Country Status (2)

Country Link
CN (1) CN102209085B (zh)
WO (1) WO2011120364A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769274A (zh) * 2018-08-27 2018-11-06 优视科技新加坡有限公司 一种对话式文件传输方法、装置和设备/终端/服务器

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102412875B (zh) * 2011-12-26 2017-05-10 中兴通讯股份有限公司 文件发送、接收方法及装置和文件传输方法及系统
CN103813002A (zh) * 2012-11-14 2014-05-21 广州三星通信技术研究有限公司 用于在终端中发送图片的设备和方法
CN103023755B (zh) * 2012-12-07 2015-12-23 东莞宇龙通信科技有限公司 数据传输的方法及电子设备
US20140324990A1 (en) * 2013-04-27 2014-10-30 Xiao Long Zhang Method and device for transmitting and receiving multiple files
CN103281362B (zh) * 2013-05-14 2016-09-14 周信兰 一种文件传输协议
CN104899515B (zh) * 2014-03-04 2019-04-16 北京奇安信科技有限公司 一种应用程序安全性的变更方法和装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996006399A1 (de) * 1994-08-25 1996-02-29 Siemens Aktiengesellschaft Verfahren zur simultanen digitalen verarbeitung mehrerer von/zu audio-videogeräten zu übertragenden datenpakete in einem rechnersystem
CN1917635A (zh) * 2006-08-25 2007-02-21 中山大学 一种矢量图形数据传输方法
CN101626384A (zh) * 2009-08-05 2010-01-13 腾讯科技(深圳)有限公司 一种基于tcp协议传输数据包的方法和系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1929478B (zh) * 2005-09-09 2010-05-05 华为技术有限公司 一种减少传输带宽占用的方法
CN101267454A (zh) * 2008-04-30 2008-09-17 中兴通讯股份有限公司 一种文件传输信息的提示方法及系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996006399A1 (de) * 1994-08-25 1996-02-29 Siemens Aktiengesellschaft Verfahren zur simultanen digitalen verarbeitung mehrerer von/zu audio-videogeräten zu übertragenden datenpakete in einem rechnersystem
CN1917635A (zh) * 2006-08-25 2007-02-21 中山大学 一种矢量图形数据传输方法
CN101626384A (zh) * 2009-08-05 2010-01-13 腾讯科技(深圳)有限公司 一种基于tcp协议传输数据包的方法和系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769274A (zh) * 2018-08-27 2018-11-06 优视科技新加坡有限公司 一种对话式文件传输方法、装置和设备/终端/服务器
CN108769274B (zh) * 2018-08-27 2021-12-24 优视科技新加坡有限公司 一种对话式文件传输方法、装置和设备/终端/服务器

Also Published As

Publication number Publication date
CN102209085B (zh) 2013-10-09
CN102209085A (zh) 2011-10-05

Similar Documents

Publication Publication Date Title
WO2011120364A1 (zh) 一种传输多个文件的方法及系统
US9720747B2 (en) Method for flow control and reliable communication in a collaborative environment
EP2511867A1 (en) Managing instant messaging sessions on multiple devices
JP2014523568A (ja) 効率的な状態調整
US8554939B1 (en) Systems and methods for downloading and viewing images
CN107924391A (zh) 共享协同编辑文档的方法和装置
EP3085010B1 (en) Presence-based content sharing
US20130179507A1 (en) Communicating Media Data
WO2014201803A1 (en) Method and system for synchronizing duplicated contents in multiple terminals
CN102035859A (zh) 一种显示上传进度的方法、系统和装置
KR20150032152A (ko) 전자 장치 간의 편집 동작을 실행하는 방법 및 장치
US20100057854A1 (en) References to history points in a chat history
CN101354691A (zh) 能与至少一个装置连接的主机设备及连接方法
CN102377688B (zh) 一种文件的传输方法和设备
TW201227268A (en) Data backup system and data backup and retrival method
CN102841792B (zh) Sns应用中的信息编辑方法及装置
CN101336527B (zh) 控制网络装置的方法和系统、以及存储执行所述方法的程序的记录介质
EP2786550B1 (en) Communicating media data
US20150082157A1 (en) Method and device for realizing operations between devices
WO2022242129A1 (zh) 多公网连接驱动方法、装置、计算机设备和存储介质
CN103838586A (zh) 文件开启的系统及方法
US8788593B1 (en) Systems and methods for downloading attachments
CN105656921A (zh) 数据传输方法、装置及设备
US20150074265A1 (en) Transmission apparatus, transmission method, computer-readable storage medium storing transmission program, and relay system
CN110012108A (zh) 数据副本存储方法、下载方法、云存储系统及相关装置

Legal Events

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

Ref document number: 11761938

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 9103/CHENP/2012

Country of ref document: IN

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205N DATED 08/02/2013)

122 Ep: pct application non-entry in european phase

Ref document number: 11761938

Country of ref document: EP

Kind code of ref document: A1