CN105763601A - File sharing method and device - Google Patents
File sharing method and device Download PDFInfo
- Publication number
- CN105763601A CN105763601A CN201610067365.5A CN201610067365A CN105763601A CN 105763601 A CN105763601 A CN 105763601A CN 201610067365 A CN201610067365 A CN 201610067365A CN 105763601 A CN105763601 A CN 105763601A
- Authority
- CN
- China
- Prior art keywords
- routing device
- file
- download
- request
- file destination
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/176—Support for shared access to files; File sharing support
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0815—Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
- H04L65/402—Support for services or applications wherein the services involve a main real-time session and one or more additional parallel non-real time sessions, e.g. downloading a file in a parallel FTP session, initiating an email or combinational services
- H04L65/4025—Support for services or applications wherein the services involve a main real-time session and one or more additional parallel non-real time sessions, e.g. downloading a file in a parallel FTP session, initiating an email or combinational services where none of the additional parallel sessions is real time or time sensitive, e.g. downloading a file in a parallel FTP session, initiating an email or combinational services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Multimedia (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本公开提供一种文件分享方法及装置,该方法包括:在接收到携带有下载链接的文件分享请求后,询问用户是否同意将所述下载链接所指向的目标文件下载到路由设备;当确认用户同意将目标文件下载到路由设备时,生成携带有所述下载链接的文件下载请求;将所述文件下载请求发送给路由设备,以使所述路由设备向所述下载链接对应的服务器请求目标文件;当本地与所述路由设备处于同一网络时,接收所述路由设备推送的目标文件。由此可见,本公开可以在终端设备不方便接收文件时,选择将该文件下载到路由设备,当终端设备与路由设备处于同一网络时,该终端设备可以直接从路由设备获取该文件,从而提高了分享文件的便利性和实用性。
The present disclosure provides a file sharing method and device. The method includes: after receiving a file sharing request carrying a download link, asking the user whether to agree to download the target file pointed to by the download link to the routing device; When agreeing to download the target file to the routing device, generate a file download request carrying the download link; send the file download request to the routing device, so that the routing device requests the target file from the server corresponding to the download link ; When the local and the routing device are in the same network, receiving the target file pushed by the routing device. It can be seen that the disclosure can choose to download the file to the routing device when the terminal device is inconvenient to receive the file, and when the terminal device and the routing device are in the same network, the terminal device can directly obtain the file from the routing device, thereby improving It improves the convenience and practicality of sharing files.
Description
技术领域technical field
本公开涉及通信技术领域,特别涉及一种文件分享方法及装置。The present disclosure relates to the field of communication technologies, and in particular to a file sharing method and device.
背景技术Background technique
网络技术的快速发展,使得网络应用的功能越来越丰富,以社交应用为例,用户可以通过终端设备中的社交应用将网络上的图片、文本或音视频文件分享给其他用户。相关技术中,当终端设备不方便接收分享文件时,则文件分享失败,实用性较差。With the rapid development of network technology, the functions of network applications are becoming more and more abundant. Taking social applications as an example, users can share pictures, text or audio and video files on the network with other users through social applications in terminal devices. In the related art, when the terminal device is inconvenient to receive the shared file, the file sharing fails, and the practicability is poor.
发明内容Contents of the invention
为了解决上述问题,本公开提供一种文件分享方法及装置。In order to solve the above problems, the present disclosure provides a file sharing method and device.
具体地,本公开是通过如下技术方案实现的:Specifically, the present disclosure is achieved through the following technical solutions:
根据本公开实施例的第一方面,提供一种文件分享方法,所述方法包括:According to a first aspect of an embodiment of the present disclosure, a file sharing method is provided, the method comprising:
在接收到携带有下载链接的文件分享请求后,询问用户是否同意将所述下载链接所指向的目标文件下载到路由设备;After receiving the file sharing request carrying the download link, ask the user whether to agree to download the target file pointed to by the download link to the routing device;
当确认用户同意将目标文件下载到路由设备时,生成携带有所述下载链接的文件下载请求;When confirming that the user agrees to download the target file to the routing device, generate a file download request carrying the download link;
将所述文件下载请求发送给路由设备,以使所述路由设备向所述下载链接对应的服务器请求目标文件;sending the file download request to a routing device, so that the routing device requests a target file from a server corresponding to the download link;
当本地与所述路由设备处于同一网络时,接收所述路由设备推送的目标文件。When the local area and the routing device are in the same network, the target file pushed by the routing device is received.
在一实施例中,在所述询问用户是否同意将所述下载链接所指向的目标文件下载到路由设备之前,还包括:In one embodiment, before the user is asked whether to agree to download the target file pointed to by the download link to the routing device, it also includes:
判断所述目标文件是否符合预设的询问条件;judging whether the target file meets a preset inquiry condition;
当所述目标文件符合预设的询问条件时,执行询问用户是否同意将所述下载链接所指向的目标文件下载到路由设备的步骤。When the target file meets the preset query condition, perform a step of asking the user whether to agree to download the target file pointed to by the download link to the routing device.
在一实施例中,所述判断所述目标文件是否符合预设的询问条件,包括:In one embodiment, the judging whether the target file meets a preset query condition includes:
判断本地是否接入无线网络;Determine whether the local area is connected to the wireless network;
当本地未接入无线网络时,判断所述目标文件的文件大小是否超过预设文件大小,如果超过,则符合预设的询问条件。When the local area is not connected to the wireless network, it is judged whether the file size of the target file exceeds the preset file size, and if it exceeds, it meets the preset query condition.
在一实施例中,所述将所述文件下载请求发送给路由设备,包括:In an embodiment, the sending the file download request to the routing device includes:
检测是否绑定有路由设备;Detect whether there is a routing device bound;
当绑定有路由设备时,将所述文件下载请求发送给已绑定的路由设备。When a routing device is bound, the file download request is sent to the bound routing device.
在一实施例中,所述方法还包括:In one embodiment, the method also includes:
当未绑定路由设备时,展示路由设备登录页面,其中,所述页面用于为用户提供输入账号关联信息的接口;When the routing device is not bound, display the routing device login page, wherein the page is used to provide the user with an interface for inputting account associated information;
接收用户输入的账号关联信息,以使服务器对所述账号关联信息对应的账号进行鉴权;Receive account association information input by the user, so that the server authenticates the account corresponding to the account association information;
当鉴权成功时,展示所述账号下已关联的路由设备;When the authentication is successful, display the associated routing device under the account;
接收用户输入的路由设备选择操作,根据所述选择操作确定用户选择的路由设备;receiving a routing device selection operation input by the user, and determining the routing device selected by the user according to the selection operation;
所述将所述文件下载请求发送给路由设备,包括:The sending the file download request to the routing device includes:
将所述文件下载请求发送给用户选择的路由设备。Send the file download request to the routing device selected by the user.
根据本公开实施例的第二方面,提供一种文件分享方法,所述方法包括:According to a second aspect of an embodiment of the present disclosure, a file sharing method is provided, the method comprising:
接收终端设备发送的携带有下载链接的文件下载请求;Receive a file download request with a download link sent by the terminal device;
向服务器请求所述下载链接所指向的目标文件;requesting the target file pointed to by the download link from the server;
接收服务器发送的目标文件;Receive the target file sent by the server;
当本地与所述终端设备处于同一网络时,向所述终端设备推送所述目标文件。When the local area and the terminal device are in the same network, push the target file to the terminal device.
在一实施例中,在所述接收服务器发送的目标文件之后,还包括:In one embodiment, after receiving the target file sent by the server, it further includes:
生成指向路由设备内目标文件的下载链接。Generates a download link to the target file within the routing device.
根据本公开实施例的第三方面,提供一种文件分享装置,所述装置包括:According to a third aspect of the embodiments of the present disclosure, there is provided a file sharing device, the device comprising:
询问模块,被配置为在接收到携带有下载链接的文件分享请求后,询问用户是否同意将所述下载链接所指向的目标文件下载到路由设备;The inquiry module is configured to, after receiving the file sharing request carrying the download link, ask the user whether to agree to download the target file pointed to by the download link to the routing device;
请求生成模块,被配置为当确认用户同意将目标文件下载到路由设备时,生成携带有所述下载链接的文件下载请求;The request generation module is configured to generate a file download request carrying the download link when it is confirmed that the user agrees to download the target file to the routing device;
发送模块,被配置为将所述文件下载请求发送给路由设备,以使所述路由设备向所述下载链接对应的服务器请求目标文件;A sending module configured to send the file download request to a routing device, so that the routing device requests a target file from a server corresponding to the download link;
文件接收模块,被配置为当本地与所述路由设备处于同一网络时,接收所述路由设备推送的目标文件。The file receiving module is configured to receive the target file pushed by the routing device when the local area and the routing device are in the same network.
在一实施例中,所述装置还包括:In one embodiment, the device also includes:
判断模块,被配置为判断所述目标文件是否符合预设的询问条件,并在判断结果为是时,触发所述询问模块执行询问用户是否同意将所述下载链接所指向的目标文件下载到路由设备的动作。The judging module is configured to judge whether the target file meets the preset inquiry condition, and when the judgment result is yes, trigger the inquiry module to execute asking whether the user agrees to download the target file pointed to by the download link to the router device action.
在一实施例中,所述判断模块,包括:In one embodiment, the judgment module includes:
第一判断子模块,被配置为判断本地是否接入无线网络;The first judging submodule is configured to judge whether the local area is connected to the wireless network;
第二判断子模块,被配置为当本地未接入无线网络时,判断所述目标文件的文件大小是否超过预设文件大小,如果超过,则符合预设的询问条件。The second judging submodule is configured to judge whether the file size of the target file exceeds the preset file size when the local area is not connected to the wireless network, and if so, it meets the preset query condition.
在一实施例中,所述发送模块,包括:In one embodiment, the sending module includes:
检测子模块,被配置为检测是否绑定有路由设备;The detection sub-module is configured to detect whether a routing device is bound;
第一发送子模块,被配置为在所述检测子模块的检测结果为是的情况下,将所述文件下载请求发送给已绑定的路由设备。The first sending submodule is configured to send the file download request to the bound routing device when the detection result of the detection submodule is yes.
在一实施例中,所述装置还包括:In one embodiment, the device also includes:
第一展示子模块,被配置为在所述检测子模块的检测结果为否的情况下,展示路由设备登录页面,其中,所述页面用于为用户提供输入账号关联信息的接口;The first display submodule is configured to display a routing device login page when the detection result of the detection submodule is negative, wherein the page is used to provide an interface for the user to input account association information;
鉴权子模块,被配置为接收用户输入的账号关联信息,以使服务器对所述账号关联信息对应的账号进行鉴权;The authentication submodule is configured to receive account association information input by the user, so that the server authenticates the account corresponding to the account association information;
第二展示子模块,被配置为当鉴权成功时,展示所述账号下已关联的路由设备;The second display submodule is configured to display the associated routing device under the account when the authentication is successful;
设备确定子模块,被配置为接收用户输入的路由设备选择操作,根据所述选择操作确定用户选择的路由设备;The device determination submodule is configured to receive a routing device selection operation input by the user, and determine the routing device selected by the user according to the selection operation;
第二发送子模块,被配置为将所述文件下载请求发送给用户选择的路由设备。The second sending submodule is configured to send the file download request to the routing device selected by the user.
根据本公开实施例的第四方面,提供一种文件分享装置,所述装置包括:According to a fourth aspect of the embodiments of the present disclosure, there is provided a file sharing device, the device comprising:
请求接收模块,被配置为接收终端设备发送的携带有下载链接的文件下载请求;The request receiving module is configured to receive a file download request carrying a download link sent by the terminal device;
文件下载模块,被配置为向服务器请求所述下载链接所指向的目标文件,接收服务器发送的目标文件;The file download module is configured to request the target file pointed to by the download link from the server, and receive the target file sent by the server;
推送模块,被配置为当本地与所述终端设备处于同一网络时,向所述终端设备推送所述目标文件。The push module is configured to push the target file to the terminal device when the local terminal is in the same network as the terminal device.
在一实施例中,所述装置还包括:In one embodiment, the device also includes:
链接生成模块,被配置为生成指向路由设备内目标文件的下载链接。The link generation module is configured to generate a download link pointing to the target file in the routing device.
根据本公开实施例的第五方面,提供一种文件分享装置,包括:According to a fifth aspect of the embodiments of the present disclosure, a file sharing device is provided, including:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,所述处理器被配置为:Wherein, the processor is configured as:
在接收到携带有下载链接的文件分享请求后,询问用户是否同意将所述下载链接所指向的目标文件下载到路由设备;After receiving the file sharing request carrying the download link, ask the user whether to agree to download the target file pointed to by the download link to the routing device;
当确认用户同意将目标文件下载到路由设备时,生成携带有所述下载链接的文件下载请求;When confirming that the user agrees to download the target file to the routing device, generate a file download request carrying the download link;
将所述文件下载请求发送给路由设备,以使所述路由设备向所述下载链接对应的服务器请求目标文件;sending the file download request to a routing device, so that the routing device requests a target file from a server corresponding to the download link;
当本地与所述路由设备处于同一网络时,接收所述路由设备推送的目标文件。When the local area and the routing device are in the same network, the target file pushed by the routing device is received.
根据本公开实施例的第六方面,提供一种文件分享装置,包括:According to a sixth aspect of the embodiments of the present disclosure, a file sharing device is provided, including:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,所述处理器被配置为:Wherein, the processor is configured as:
接收终端设备发送的携带有下载链接的文件下载请求;Receive a file download request with a download link sent by the terminal device;
向服务器请求所述下载链接所指向的目标文件;requesting the target file pointed to by the download link from the server;
接收服务器发送的目标文件;Receive the target file sent by the server;
当本地与所述终端设备处于同一网络时,向所述终端设备推送所述目标文件。When the local area and the terminal device are in the same network, push the target file to the terminal device.
本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
本实施例可以在终端设备不方便接收文件时,选择将该文件下载到路由设备,当终端设备与路由设备处于同一网络时,该终端设备可以直接从路由设备获取该文件,从而提高了分享文件的便利性和实用性。This embodiment can choose to download the file to the routing device when the terminal device is inconvenient to receive the file. When the terminal device and the routing device are in the same network, the terminal device can directly obtain the file from the routing device, thereby improving file sharing. convenience and practicality.
本实施例可以结合终端设备的网络情况及目标文件的信息,来检测该终端设备是否方便接收上述目标文件,当终端设备不方便接收时,选择将该文件下载到路由设备,当终端设备与路由设备处于同一网络时,该终端设备可以直接从路由设备获取该文件,从而提高了分享文件的便利性和实用性。This embodiment can combine the network situation of the terminal device and the information of the target file to detect whether the terminal device is convenient to receive the above-mentioned target file. When the devices are in the same network, the terminal device can directly obtain the file from the routing device, thereby improving the convenience and practicality of file sharing.
考虑到使用流量下载文件,消耗的流量较多,且下载的文件越大,消耗的流量也就越多,因此,当智能设备为接入无线网络,且文件较大时,本实施例可以建议用户由路由设备来完成文件的下载,以避免产生的大量的流量费用。Considering that using traffic to download files consumes more traffic, and the larger the downloaded file, the more traffic will be consumed. Therefore, when the smart device is connected to the wireless network and the file is large, this embodiment can suggest The user completes the download of the file through the routing device to avoid a large amount of traffic charges.
本实施例可以在终端设备不方便接收文件时,将文件下载到路由设备,当终端设备与路由设备处于同一网络时,向终端设备直接推送该文件,从而提高了分享文件的便利性和实用性。This embodiment can download the file to the routing device when the terminal device is inconvenient to receive the file, and when the terminal device and the routing device are in the same network, directly push the file to the terminal device, thereby improving the convenience and practicability of sharing files .
本实施例可以生成指向路由设备内文件的下载链接,由此用户可以通过与该路由设备绑定的客户端将指向上述路由设备内文件的下载链接分享给其他用户。This embodiment can generate a download link pointing to a file in the routing device, so that the user can share the download link pointing to the file in the routing device to other users through a client bound to the routing device.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.
图1是本公开根据一示例性实施例示出的一种文件分享方法的应用场景示意图;Fig. 1 is a schematic diagram of an application scenario of a file sharing method according to an exemplary embodiment of the present disclosure;
图2是本公开根据一示例性实施例示出的一种文件分享方法的流程图;Fig. 2 is a flow chart of a file sharing method according to an exemplary embodiment of the present disclosure;
图3是本公开根据一示例性实施例示出的另一种文件分享方法的流程图;Fig. 3 is a flowchart of another file sharing method according to an exemplary embodiment of the present disclosure;
图4(a)是本公开根据一示例性实施例示出的一种路由设备登录页面的示例图;Fig. 4(a) is an example diagram of a login page of a routing device according to an exemplary embodiment of the present disclosure;
图4(b)是本公开根据一示例性实施例示出的一种路由设备选择页面的示例图;Fig. 4(b) is an example diagram showing a routing device selection page according to an exemplary embodiment of the present disclosure;
图5是本公开根据一示例性实施例示出的另一种文件分享方法的流程图;Fig. 5 is a flowchart of another file sharing method according to an exemplary embodiment of the present disclosure;
图6是本公开根据一示例性实施例示出的一种文件分享装置的框图;Fig. 6 is a block diagram of a file sharing device according to an exemplary embodiment of the present disclosure;
图7是本公开根据一示例性实施例示出的另一种文件分享装置的框图;Fig. 7 is a block diagram of another file sharing device according to an exemplary embodiment of the present disclosure;
图8是本公开根据一示例性实施例示出的另一种文件分享装置的框图;Fig. 8 is a block diagram of another file sharing device according to an exemplary embodiment of the present disclosure;
图9是本公开根据一示例性实施例示出的另一种文件分享装置的框图;Fig. 9 is a block diagram of another file sharing device according to an exemplary embodiment of the present disclosure;
图10是本公开根据一示例性实施例示出的另一种文件分享装置的框图;Fig. 10 is a block diagram of another file sharing device according to an exemplary embodiment of the present disclosure;
图11是本公开根据一示例性实施例示出的另一种文件分享装置的框图;Fig. 11 is a block diagram of another file sharing device according to an exemplary embodiment of the present disclosure;
图12是本公开根据一示例性实施例示出的另一种文件分享装置的框图;Fig. 12 is a block diagram of another file sharing device according to an exemplary embodiment of the present disclosure;
图13是本公开根据一示例性实施例示出的一种用于文件分享装置的一结构示意图。Fig. 13 is a schematic structural diagram of a file sharing device according to an exemplary embodiment of the present disclosure.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.
在本公开使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本公开。在本公开和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in the present disclosure is for the purpose of describing particular embodiments only, and is not intended to limit the present disclosure. As used in this disclosure and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
应当理解,尽管在本公开可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本公开范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of the present disclosure, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the word "if" as used herein may be interpreted as "at" or "when" or "in response to a determination."
随着网络技术的快速发展,网络应用的功能也越来越丰富,以社交应用为例,用户可以通过终端设备中的社交应用将网络上的图片、文本或音视频文件分享给其他用户。相关技术中,当终端设备不方便接收分享文件时,则文件分享失败,实用性较差。为了解决上述问题,本公开提供了一种文件分享方法及装置。With the rapid development of network technology, the functions of network applications are becoming more and more abundant. Taking social applications as an example, users can share pictures, text or audio and video files on the network with other users through social applications in terminal devices. In the related art, when the terminal device is inconvenient to receive the shared file, the file sharing fails, and the practicability is poor. In order to solve the above problems, the present disclosure provides a file sharing method and device.
为了便于理解,下面首先结合本公开实施例提供的示例性应用场景图对本公开提供的技术方案进行介绍。For ease of understanding, the technical solution provided by the present disclosure will be introduced below firstly in combination with the exemplary application scenario diagram provided by the embodiments of the present disclosure.
如图1所示,图1是本公开根据一示例性实施例示出的一种文件分享方法的应用场景示意图,该应用场景中,包括:终端设备,及路由设备,其中,该终端设备可以包括:智能手机、平板电脑、个人数字助理等等,该路由设备可以包括:路由器,本公开对此不作限定。As shown in FIG. 1, FIG. 1 is a schematic diagram of an application scenario of a file sharing method according to an exemplary embodiment of the present disclosure. The application scenario includes: a terminal device and a routing device, wherein the terminal device may include : a smart phone, a tablet computer, a personal digital assistant, etc., the routing device may include: a router, which is not limited in the present disclosure.
接下来对本公开提供的应用于终端设备侧的文件分享方法进行介绍。Next, the file sharing method applied to the terminal device side provided by the present disclosure will be introduced.
如图2所示,图2是本公开根据一示例性实施例示出的一种文件分享方法的流程图,该方法可以由客户端来执行,该客户端是安装于终端设备上的应用软件,所述方法可以包括以下步骤:As shown in FIG. 2, FIG. 2 is a flow chart of a file sharing method according to an exemplary embodiment of the present disclosure. The method can be executed by a client, which is an application software installed on a terminal device. The method may include the steps of:
在步骤201中,在接收到携带有下载链接的文件分享请求后,询问用户是否同意将下载链接所指向的目标文件下载到路由设备。In step 201, after receiving a file sharing request carrying a download link, the user is asked whether to agree to download the target file pointed to by the download link to the routing device.
在本实施例中,在接收到携带有下载链接的文件分享请求后,可以直接询问用户是否同意将下载链接所指向的目标文件下载到路由设备。In this embodiment, after receiving the file sharing request carrying the download link, the user may be directly asked whether to agree to download the target file pointed to by the download link to the routing device.
需要说明的是,本实施例中文件分享请求的发送方和接收方可以为同一终端设备,也可以为不同的终端设备,比如用户可以通过智能手机中安装的客户端A将携带有下载链接的文件分享请求发送给该智能手机中安装的客户端B,或者,两个智能手机通过同一款客户端发送携带有下载链接的文件分享请求。It should be noted that the sender and receiver of the file sharing request in this embodiment can be the same terminal device or different terminal devices. The file sharing request is sent to the client B installed in the smart phone, or two smart phones send the file sharing request carrying the download link through the same client.
在实际应用中,可以通过弹窗的方式询问用户是否同意将下载链接所指向的目标文件下载到路由设备,或者通过语音提示的方式询问用户是否同意将下载链接所指向的目标文件下载到路由设备,本实施例对此不作限定。In practical applications, you can ask the user whether to agree to download the target file pointed to by the download link to the routing device through a pop-up window, or ask the user whether to agree to download the target file pointed to by the download link to the routing device through a voice prompt , which is not limited in this embodiment.
在步骤202中,当确认用户同意将目标文件下载到路由设备时,生成携带有下载链接的文件下载请求。In step 202, when it is confirmed that the user agrees to download the target file to the routing device, a file download request carrying a download link is generated.
比如智能手机A在接收到智能手机B发送的视频分享链接后,智能手机A可以询问用户是否同意将该链接对应的视频文件下载到路由器,即由路由器来完成视频文件的下载,当检测到用户同意由路由器来下载上述视频文件时,该智能手机A可以生成携带有:指向上述视频文件的下载链接的文件下载请求。For example, after smart phone A receives the video sharing link sent by smart phone B, smart phone A can ask the user whether to agree to download the video file corresponding to the link to the router, that is, the router will complete the download of the video file. When agreeing to download the above video file by the router, the smart phone A may generate a file download request carrying: a download link pointing to the above video file.
在步骤203中,将文件下载请求发送给路由设备,以使路由设备向下载链接对应的服务器请求目标文件。In step 203, the file download request is sent to the routing device, so that the routing device requests the target file from the server corresponding to the download link.
接上一实例,在生成上述文件下载请求后,智能手机A将上述文件下载请求发送给上述路由器,以便路由器在接收到上述文件下载请求后,可以去上述文件下载请求中携带的下载链接处获取上述视频文件。Continuing from the previous example, after generating the above-mentioned file download request, smart phone A sends the above-mentioned file download request to the above-mentioned router, so that after receiving the above-mentioned file download request, the router can go to the download link carried in the above-mentioned file download request to obtain the above video file.
在步骤204中,当本地与路由设备处于同一网络时,接收路由设备推送的目标文件。In step 204, when the local area and the routing device are in the same network, the target file pushed by the routing device is received.
可以理解的是,处于同一局域网内的两个电子设备之间的数据传输速度通常是非常快的,基于上述情况,在终端设备与路由设备处于同一网络时,本实施例中的终端设备可以主动请求路由设备,来获取该路由设备已下载的文件。或者本实施例中的路由设备可以直接向上述终端设备推送本地已下载的文件,本实施对此不作限定。It can be understood that the data transmission speed between two electronic devices in the same local area network is usually very fast. Based on the above situation, when the terminal device and the routing device are in the same network, the terminal device in this embodiment can actively Request the routing device to obtain the downloaded file of the routing device. Alternatively, the routing device in this embodiment may directly push the locally downloaded file to the terminal device, which is not limited in this embodiment.
由上述实施例可见,该实施例可以在终端设备不方便接收文件时,选择将该文件下载到路由设备,当终端设备与路由设备处于同一网络时,该终端设备可以直接从路由设备获取该文件,从而提高了分享文件的便利性和实用性。It can be seen from the above embodiment that in this embodiment, when the terminal device is inconvenient to receive the file, it can choose to download the file to the routing device, and when the terminal device and the routing device are in the same network, the terminal device can directly obtain the file from the routing device , thus improving the convenience and practicality of sharing files.
如图3所示,图3是本公开根据一示例性实施例示出的另一种文件分享方法的流程图,当终端设备受文件大小或流量限制而不方便接收文件时,所述方法可以包括以下步骤:As shown in FIG. 3, FIG. 3 is a flowchart of another file sharing method according to an exemplary embodiment of the present disclosure. When the terminal device is inconvenient to receive files due to file size or traffic restrictions, the method may include The following steps:
在步骤300中,在接收到携带有下载链接的文件分享请求后,判断下载链接所指向的目标文件是否符合预设的询问条件,如果是,则执行步骤301。In step 300, after receiving the file sharing request carrying the download link, it is judged whether the target file pointed to by the download link meets the preset inquiry condition, and if yes, step 301 is executed.
可以理解的是,在文件较大或终端设备的流量不足的情况,该终端设备通常不方便接收该文件,针对上述情况,本实施例中的终端设备在接收到文件分享请求后,可以结合本地的网络情况及目标文件的信息,来决定是否建议用户:由路由设备来完成目标文件的下载。It can be understood that, when the file is large or the traffic of the terminal device is insufficient, it is usually inconvenient for the terminal device to receive the file. In view of the above situation, the terminal device in this embodiment can combine the local According to the network conditions and the information of the target file, it is decided whether to advise the user: the downloading of the target file is completed by the routing device.
相应的,在一种可能的实施方式中,上述步骤300,可以包括:Correspondingly, in a possible implementation manner, the above step 300 may include:
判断本地是否接入无线网络;Determine whether the local area is connected to the wireless network;
当本地未接入无线网络时,判断目标文件的文件大小是否超过预设文件大小,如果超过,则符合预设的询问条件。When the local area is not connected to the wireless network, it is judged whether the file size of the target file exceeds the preset file size, and if it exceeds, the preset inquiry condition is met.
比如智能手机在接收到其他智能设备发送的文件分享请求后,可以首先判断本地是否连接了WiFi,如果没有连接WiFi,则进一步判断需要下载的文件是不是很大(在实际应用中,可以通过设置预设文件大小的取值来界定需要下载的文件是不是很大),如果较大,则建议用户:由路由设备来完成目标文件的下载。For example, after a smart phone receives a file sharing request sent by other smart devices, it can first determine whether the local WiFi is connected. The value of the preset file size determines whether the file to be downloaded is very large), if it is larger, it is recommended that the user: complete the download of the target file by the routing device.
考虑到使用流量下载文件,消耗的流量较多,且下载的文件越大,消耗的流量也就越多,因此,当智能设备为接入无线网络,且文件较大时,本实施例可以建议用户由路由设备来完成文件的下载,以避免产生的大量的流量费用。Considering that using traffic to download files consumes more traffic, and the larger the downloaded file, the more traffic will be consumed. Therefore, when the smart device is connected to the wireless network and the file is large, this embodiment can suggest The user completes the download of the file through the routing device to avoid a large amount of traffic charges.
在步骤301中,询问用户是否同意将目标文件下载到路由设备。In step 301, the user is asked whether to agree to download the target file to the routing device.
在步骤302中,当确认用户同意将目标文件下载到路由设备时,生成携带有下载链接的文件下载请求。In step 302, when it is confirmed that the user agrees to download the target file to the routing device, a file download request carrying a download link is generated.
本实施例中的步骤301和步骤302,与图2所示实施例中的步骤201和步骤202类似,本实施例对此不再赘述。Step 301 and step 302 in this embodiment are similar to step 201 and step 202 in the embodiment shown in FIG. 2 , which will not be repeated in this embodiment.
在步骤303中,将文件下载请求发送给路由设备,以使路由设备向下载链接对应的服务器请求目标文件。In step 303, the file download request is sent to the routing device, so that the routing device requests the target file from the server corresponding to the download link.
在一种可能的实施方式中,上述步骤303,可以包括:In a possible implementation manner, the above step 303 may include:
检测终端设备中的客户端是否绑定有路由设备,即检测上述客户端是否预先与路由设备进行了绑定,如果预先绑定了路由设备,则将文件下载请求发送给已绑定的路由设备。Detect whether the client in the terminal device is bound with a routing device, that is, detect whether the above-mentioned client is bound with the routing device in advance, and if the routing device is pre-bound, send the file download request to the bound routing device .
考虑到有些用户并不希望将终端设备中的客户端与路由设备进行绑定,针对上述情况,本实施方式还可以包括以下步骤:Considering that some users do not want to bind the client in the terminal device with the routing device, in view of the above situation, this embodiment may also include the following steps:
S1,当未与路由设备进行绑定,展示路由设备登录页面,其中,该页面用于为用户提供输入账号关联信息的接口。S1. When not bound to the routing device, display the routing device login page, where the page is used to provide the user with an interface for inputting account association information.
在本实施例中,终端设备在检测到客户端未与任何路由器绑定时,可以生成一个指向路由登录网页的链接,之后可以自动或由用户触发跳转至该链接所对应的路由登录的网页页面,用户可以在该页面输入用于登录的账号关联信息。In this embodiment, when the terminal device detects that the client is not bound to any router, it can generate a link pointing to the route login web page, and then jump to the route login web page corresponding to the link automatically or triggered by the user page, where the user can enter the account associated information for login.
S2,接收用户输入的账号关联信息,以使服务器对所述账号关联信息对应的账号进行鉴权。S2. Receive account association information input by the user, so that the server authenticates the account corresponding to the account association information.
S3,当鉴权成功时,展示该账号下已关联的路由设备。S3, when the authentication is successful, display the associated routing device under the account.
S4,接收用户输入的路由设备选择操作,根据该选择操作确定用户选择的路由设备,并将文件下载请求发送给用户选择的路由设备。S4. Receive a routing device selection operation input by the user, determine the routing device selected by the user according to the selection operation, and send a file download request to the routing device selected by the user.
为了便于理解,下面结合图4(a)和图4(b)对上述S1~S4进行介绍。图4(a)为路由设备登录页面,用户在该页面中输入账号和密码后,可以点击“确认”按钮,以供鉴权。当鉴权成功后,终端设备跳转到图4(b)所示的路由设备展示页面,用户可以通过点击路由设备名称的方式,选择用于下载文件的路由设备。For ease of understanding, the above S1-S4 will be introduced below in conjunction with FIG. 4(a) and FIG. 4(b). Figure 4(a) is the login page of the routing device. After the user enters the account number and password on the page, the user can click the "Confirm" button for authentication. When the authentication is successful, the terminal device jumps to the routing device display page shown in Figure 4(b), and the user can select the routing device for downloading files by clicking on the routing device name.
在另一种可能的实施方式中,上述步骤303可以不做任何检测操作,直接展示展示路由设备登录页面,接收用户输入的账号关联信息,当服务器对该账号鉴权成功时,展示该账号下已关联的路由设备,接收用户输入的路由设备选择操作,根据该选择操作确定用户选择的路由设备,并将文件下载请求发送给用户选择的路由设备,以实现直接由用户自主选择路由设备。本实施例对上述步骤303的实施方式不作限定。In another possible implementation, the above step 303 may not perform any detection operation, directly display and display the login page of the routing device, receive the account association information input by the user, and when the server authenticates the account successfully, display the information under the account. The associated routing device receives the routing device selection operation input by the user, determines the routing device selected by the user according to the selection operation, and sends the file download request to the routing device selected by the user, so that the user can directly select the routing device independently. This embodiment does not limit the implementation manner of the foregoing step 303 .
在步骤304中,当本地与路由设备处于同一网络时,接收路由设备推送的目标文件。In step 304, when the local area and the routing device are in the same network, the target file pushed by the routing device is received.
由上述实施例可见,该实施例可以结合终端设备的网络情况及目标文件的信息,来检测该终端设备是否方便接收上述目标文件,当终端设备不方便接收时,选择将该文件下载到路由设备,当终端设备与路由设备处于同一网络时,该终端设备可以直接从路由设备获取该文件,从而提高了分享文件的便利性和实用性。It can be seen from the above embodiment that this embodiment can combine the network conditions of the terminal device and the information of the target file to detect whether the terminal device is convenient to receive the above target file, and when the terminal device is inconvenient to receive the above file, choose to download the file to the routing device , when the terminal device and the routing device are in the same network, the terminal device can directly obtain the file from the routing device, thereby improving the convenience and practicability of file sharing.
相应于图2所示的应用于终端设备侧的方法,本公开还提供了应用于路由设备侧的文件分享方法,下面对该方法进行介绍。Corresponding to the method applied to the terminal device side shown in FIG. 2 , the present disclosure also provides a file sharing method applied to the routing device side, which will be introduced below.
如图5所示,图5是本公开根据一示例性实施例示出的另一种文件分享方法的流程图,应用于路由设备,所述方法可以包括以下步骤:As shown in FIG. 5, FIG. 5 is a flowchart of another file sharing method according to an exemplary embodiment of the present disclosure, which is applied to a routing device. The method may include the following steps:
在步骤501中,接收终端设备发送的携带有下载链接的文件下载请求。In step 501, a file download request carrying a download link sent by a terminal device is received.
在步骤502中,向服务器请求下载链接所指向的目标文件。In step 502, the server is requested to download the target file pointed to by the link.
在步骤503中,接收服务器发送的目标文件。In step 503, the target file sent by the server is received.
在步骤504中,当本地与终端设备处于同一网络时,向终端设备推送目标文件。In step 504, when the local terminal and the terminal device are in the same network, push the target file to the terminal device.
由上述实施例可见,该实施例可以在终端设备不方便接收文件时,将文件下载到路由设备,当终端设备与路由设备处于同一网络时,向终端设备直接推送该文件,从而提高了分享文件的便利性和实用性。It can be seen from the above-mentioned embodiment that this embodiment can download the file to the routing device when the terminal device is inconvenient to receive the file, and when the terminal device and the routing device are in the same network, directly push the file to the terminal device, thereby improving file sharing. convenience and practicality.
在本公开的另一个实施例中,本实施例提供的文件分享方法,还可以在图5所示实施例的基础上增加以下步骤:In another embodiment of the present disclosure, the file sharing method provided in this embodiment may further add the following steps on the basis of the embodiment shown in FIG. 5 :
生成指向路由设备内目标文件的下载链接。Generates a download link to the target file within the routing device.
由上述实施例可见,该实施例可以生成指向路由设备内文件的下载链接,由此用户可以通过与该路由设备绑定的客户端将指向上述路由设备内文件的下载链接分享给其他用户。It can be seen from the above embodiment that this embodiment can generate a download link pointing to the file in the routing device, so that the user can share the download link pointing to the file in the routing device with other users through the client bound to the routing device.
与前述图2所示方法的实施例相对应,本公开还提供了应用于终端设备侧的文件分享装置的实施例。Corresponding to the foregoing embodiment of the method shown in FIG. 2 , the present disclosure also provides an embodiment of a file sharing apparatus applied to a terminal device side.
如图6所示,图6是本公开根据一示例性实施例示出的一种文件分享装置的框图,所述装置可以包括:As shown in FIG. 6, FIG. 6 is a block diagram of a file sharing device according to an exemplary embodiment of the present disclosure, and the device may include:
询问模块610,被配置为在接收到携带有下载链接的文件分享请求后,询问用户是否同意将所述下载链接所指向的目标文件下载到路由设备;The inquiry module 610 is configured to, after receiving the file sharing request carrying the download link, ask the user whether to agree to download the target file pointed to by the download link to the routing device;
请求生成模块620,被配置为当确认用户同意将目标文件下载到路由设备时,生成携带有所述下载链接的文件下载请求;The request generating module 620 is configured to generate a file download request carrying the download link when it is confirmed that the user agrees to download the target file to the routing device;
发送模块630,被配置为将所述文件下载请求发送给路由设备,以使所述路由设备向所述下载链接对应的服务器请求目标文件;The sending module 630 is configured to send the file download request to the routing device, so that the routing device requests the target file from the server corresponding to the download link;
文件接收模块640,被配置为当本地与所述路由设备处于同一网络时,接收所述路由设备推送的目标文件。The file receiving module 640 is configured to receive the target file pushed by the routing device when the local area is in the same network as the routing device.
由上述实施例可见,该实施例可以在终端设备不方便接收文件时,选择将该文件下载到路由设备,当终端设备与路由设备处于同一网络时,该终端设备可以直接从路由设备获取该文件,从而提高了分享文件的便利性和实用性。It can be seen from the above embodiment that in this embodiment, when the terminal device is inconvenient to receive the file, it can choose to download the file to the routing device, and when the terminal device and the routing device are in the same network, the terminal device can directly obtain the file from the routing device , thus improving the convenience and practicality of sharing files.
如图7所示,图7是本公开根据一示例性实施例示出的另一种文件分享装置的框图,该实施例可以在图6所示实施例的基础上,所述装置还可以包括:As shown in FIG. 7, FIG. 7 is a block diagram of another file sharing device according to an exemplary embodiment of the present disclosure. This embodiment may be based on the embodiment shown in FIG. 6, and the device may further include:
判断模块710,被配置为判断所述目标文件是否符合预设的询问条件,并在判断结果为是时,触发所述询问模块执行询问用户是否同意将所述下载链接所指向的目标文件下载到路由设备的动作。The judging module 710 is configured to judge whether the target file meets the preset query condition, and when the judgment result is yes, trigger the query module to execute asking whether the user agrees to download the target file pointed to by the download link to The action of the routing device.
如图8所示,图8是本公开根据一示例性实施例示出的另一种文件分享装置的框图,该实施例可以在图7所示实施例的基础上,所述判断模块710,可以包括:As shown in FIG. 8, FIG. 8 is a block diagram of another file sharing device according to an exemplary embodiment of the present disclosure. This embodiment may be based on the embodiment shown in FIG. 7, and the judging module 710 may be include:
第一判断子模块711,被配置为判断本地是否接入无线网络;The first judging submodule 711 is configured to judge whether the local area is connected to the wireless network;
第二判断子模块712,被配置为当本地未接入无线网络时,判断所述目标文件的文件大小是否超过预设文件大小,如果超过,则符合预设的询问条件。The second judging sub-module 712 is configured to judge whether the file size of the target file exceeds the preset file size when the local area is not connected to the wireless network, and if so, it meets the preset query condition.
如图9所示,图9是本公开根据一示例性实施例示出的另一种文件分享装置的框图,该实施例可以在图6~图8所示任一实施例的基础上,所述发送模块630,可以包括:As shown in FIG. 9 , FIG. 9 is a block diagram of another file sharing device according to an exemplary embodiment of the present disclosure. This embodiment can be based on any of the embodiments shown in FIGS. 6 to 8 . The sending module 630 may include:
检测子模块631,被配置为检测是否绑定有路由设备;The detection submodule 631 is configured to detect whether a routing device is bound;
第一发送子模块632,被配置为在所述检测子模块631的检测结果为是的情况下,将所述文件下载请求发送给已绑定的路由设备。The first sending submodule 632 is configured to send the file download request to the bound routing device if the detection result of the detection submodule 631 is yes.
如图10所示,图10是本公开根据一示例性实施例示出的另一种文件分享装置的框图,该实施例可以在图9所示实施例的基础上,所述装置还可以包括:As shown in FIG. 10, FIG. 10 is a block diagram of another file sharing device according to an exemplary embodiment of the present disclosure. This embodiment may be based on the embodiment shown in FIG. 9, and the device may further include:
第一展示子模块633,被配置为所述检测子模块631的检测结果为否的情况下,展示路由设备登录页面,其中,所述页面用于为用户提供输入账号关联信息的接口;The first display submodule 633 is configured to display a routing device login page when the detection result of the detection submodule 631 is negative, wherein the page is used to provide the user with an interface for inputting account association information;
鉴权模块子634,被配置为接收用户输入的账号关联信息,以使服务器对所述账号关联信息对应的账号进行鉴权;The authentication module 634 is configured to receive the account associated information input by the user, so that the server authenticates the account corresponding to the account associated information;
第二展示子模块635,被配置为当鉴权成功时,展示所述账号下已关联的路由设备;The second display submodule 635 is configured to display the associated routing device under the account when the authentication is successful;
设备确定子模块636,被配置为接收用户输入的路由设备选择操作,根据所述选择操作确定用户选择的路由设备;The device determination submodule 636 is configured to receive a routing device selection operation input by the user, and determine the routing device selected by the user according to the selection operation;
第二发送子模块637,被配置为将所述文件下载请求发送给用户选择的路由设备。The second sending submodule 637 is configured to send the file download request to the routing device selected by the user.
与前述图5所示方法的实施例相对应,本公开还提供了应用于路由设备侧的文件分享装置的实施例。Corresponding to the aforementioned embodiment of the method shown in FIG. 5 , the present disclosure also provides an embodiment of a file sharing apparatus applied to the routing device side.
如图11所示,图11是本公开根据一示例性实施例示出的另一种文件分享装置的框图,所述装置可以包括:As shown in FIG. 11, FIG. 11 is a block diagram of another file sharing device according to an exemplary embodiment of the present disclosure, and the device may include:
请求接收模块1010,被配置为接收终端设备发送的携带有下载链接的文件下载请求;The request receiving module 1010 is configured to receive a file download request carrying a download link sent by the terminal device;
文件下载模块1020,被配置为向服务器请求所述下载链接所指向的目标文件,接收服务器发送的目标文件;The file download module 1020 is configured to request the target file pointed to by the download link from the server, and receive the target file sent by the server;
推送模块1030,被配置为当本地与所述终端设备处于同一网络时,向所述终端设备推送所述目标文件。The push module 1030 is configured to push the target file to the terminal device when the local terminal is in the same network as the terminal device.
由上述实施例可见,该实施例可以在终端设备不方便接收文件时,将文件下载到路由设备,当终端设备与路由设备处于同一网络时,向终端设备直接推送该文件,从而提高了分享文件的便利性和实用性。It can be seen from the above-mentioned embodiment that this embodiment can download the file to the routing device when the terminal device is inconvenient to receive the file, and when the terminal device and the routing device are in the same network, directly push the file to the terminal device, thereby improving file sharing. convenience and practicality.
如图12所示,图12是本公开根据一示例性实施例示出的另一种文件分享装置的框图,该实施例可以在图11所示实施例的基础上,所述装置还可以包括:As shown in FIG. 12, FIG. 12 is a block diagram of another file sharing device according to an exemplary embodiment of the present disclosure. This embodiment may be based on the embodiment shown in FIG. 11, and the device may further include:
链接生成模块1040,被配置为生成指向路由设备内目标文件的下载链接。The link generation module 1040 is configured to generate a download link pointing to the target file in the routing device.
上述装置中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。For the implementation process of the functions and effects of each unit in the above device, please refer to the implementation process of the corresponding steps in the above method for details, and will not be repeated here.
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本公开方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。As for the device embodiment, since it basically corresponds to the method embodiment, for related parts, please refer to the part description of the method embodiment. The device embodiments described above are only illustrative, and the modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. It can be understood and implemented by those skilled in the art without creative effort.
相应的,本公开还提供了一种文件分享装置,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为:在接收到携带有下载链接的文件分享请求后,询问用户是否同意将所述下载链接所指向的目标文件下载到路由设备;当确认用户同意将目标文件下载到路由设备时,生成携带有所述下载链接的文件下载请求;将所述文件下载请求发送给路由设备,以使所述路由设备向所述下载链接对应的服务器请求目标文件;当本地与所述路由设备处于同一网络时,接收所述路由设备推送的目标文件。Correspondingly, the present disclosure also provides a file sharing device, including: a processor; a memory for storing processor-executable instructions; wherein, the processor is configured to: After the request, ask whether the user agrees to download the target file pointed to by the download link to the routing device; when it is confirmed that the user agrees to download the target file to the routing device, generate a file download request that carries the download link; The file download request is sent to the routing device, so that the routing device requests the target file from the server corresponding to the download link; when the local area is in the same network as the routing device, the target file pushed by the routing device is received.
相应的,本公开还提供了一种文件分享装置,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为:接收终端设备发送的携带有下载链接的文件下载请求;向服务器请求所述下载链接所指向的目标文件;接收服务器发送的目标文件;当本地与所述终端设备处于同一网络时,向所述终端设备推送所述目标文件。Correspondingly, the present disclosure also provides a file sharing device, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to: receive a download link sent by a terminal device A file download request; requesting the target file pointed to by the download link from the server; receiving the target file sent by the server; and pushing the target file to the terminal device when the local area is in the same network as the terminal device.
如图13所示,图13是本公开根据一示例性实施例示出的一种用于文件分享装置1300的一结构示意图。例如,装置1300可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理,飞行器等。As shown in FIG. 13 , FIG. 13 is a schematic structural diagram of an apparatus 1300 for file sharing according to an exemplary embodiment of the present disclosure. For example, the apparatus 1300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, an aircraft, and the like.
参照图13,装置1300可以包括以下一个或多个组件:处理组件1302,存储器1304,电源组件1306,多媒体组件1308,音频组件1310,输入/输出(I/O)的接口1312,传感器组件1314,以及通信组件1316。13, device 1300 may include one or more of the following components: processing component 1302, memory 1304, power supply component 1306, multimedia component 1308, audio component 1310, input/output (I/O) interface 1312, sensor component 1314, and communication component 1316.
处理组件1302通常控制装置1300的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理元件1302可以包括一个或多个处理器1320来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1302可以包括一个或多个模块,便于处理组件1302和其他组件之间的交互。例如,处理部件1302可以包括多媒体模块,以方便多媒体组件1308和处理组件1302之间的交互。The processing component 1302 generally controls the overall operations of the device 1300, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 1302 may include one or more processors 1320 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 1302 may include one or more modules that facilitate interaction between processing component 1302 and other components. For example, processing component 1302 may include a multimedia module to facilitate interaction between multimedia component 1308 and processing component 1302 .
存储器1304被配置为存储各种类型的数据以支持在设备1300的操作。这些数据的示例包括用于在装置1300上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1304可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 1304 is configured to store various types of data to support operations at the device 1300 . Examples of such data include instructions for any application or method operating on device 1300, contact data, phonebook data, messages, pictures, videos, and the like. The memory 1304 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
电力组件1306为装置1300的各种组件提供电力。电力组件1306可以包括电源管理系统,一个或多个电源,及其他与为装置1300生成、管理和分配电力相关联的组件。Power component 1306 provides power to various components of device 1300 . Power components 1306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 1300 .
多媒体组件1308包括在装置1300和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1308包括一个前置摄像头和/或后置摄像头。当设备1300处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 1308 includes a screen that provides an output interface between the device 1300 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or a swipe action, but also detect duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 1308 includes a front camera and/or a rear camera. When the device 1300 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件1310被配置为输出和/或输入音频信号。例如,音频组件1310包括一个麦克风(MIC),当装置1300处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1304或经由通信组件1316发送。在一些实施例中,音频组件1310还包括一个扬声器,用于输出音频信号。The audio component 1310 is configured to output and/or input audio signals. For example, the audio component 1310 includes a microphone (MIC), which is configured to receive external audio signals when the device 1300 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 1304 or sent via communication component 1316 . In some embodiments, the audio component 1310 also includes a speaker for outputting audio signals.
I/O接口1312为处理组件1302和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 1312 provides an interface between the processing component 1302 and a peripheral interface module. The peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
传感器组件1314包括一个或多个传感器,用于为装置1300提供各个方面的状态评估。例如,传感器组件1314可以检测到设备1300的打开/关闭状态,组件的相对定位,例如所述组件为装置1300的显示器和小键盘,传感器组件1314还可以检测装置1300或装置1300一个组件的位置改变,用户与装置600接触的存在或不存在,装置1300方位或加速/减速和装置1300的温度变化。传感器组件1314可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1314还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1314还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 1314 includes one or more sensors for providing various aspects of status assessment for device 1300 . For example, the sensor component 1314 can detect the open/closed state of the device 1300, the relative positioning of components, such as the display and keypad of the device 1300, and the sensor component 1314 can also detect a change in the position of the device 1300 or a component of the device 1300 , the presence or absence of user contact with the device 600 , the device 1300 orientation or acceleration/deceleration and the temperature change of the device 1300 . Sensor assembly 1314 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 1314 may also include optical sensors, such as CMOS or CCD image sensors, for use in imaging applications. In some embodiments, the sensor component 1314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
通信组件1316被配置为便于装置1300和其他设备之间有线或无线方式的通信。装置1300可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信部件1316经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信部件1316还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 1316 is configured to facilitate wired or wireless communication between the apparatus 1300 and other devices. The device 1300 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1316 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1316 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,装置1300可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 1300 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1304,上述指令可由装置1300的处理器1320执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 1304 including instructions, which can be executed by the processor 1320 of the device 1300 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (16)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610067365.5A CN105763601A (en) | 2016-01-29 | 2016-01-29 | File sharing method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610067365.5A CN105763601A (en) | 2016-01-29 | 2016-01-29 | File sharing method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN105763601A true CN105763601A (en) | 2016-07-13 |
Family
ID=56342880
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610067365.5A Pending CN105763601A (en) | 2016-01-29 | 2016-01-29 | File sharing method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105763601A (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106375185A (en) * | 2016-08-29 | 2017-02-01 | 宁波麦博韦尔移动电话有限公司 | Time period-based email pushing and network preferential downloading method and device |
| CN106559479A (en) * | 2016-10-31 | 2017-04-05 | 北京小米移动软件有限公司 | Multimedia file downloading method, designated equipment and terminal |
| CN106657217A (en) * | 2016-09-20 | 2017-05-10 | 厦门伙伴信息技术有限公司 | Routing device-based APP downloading and caching method |
| CN107343055A (en) * | 2017-08-30 | 2017-11-10 | 努比亚技术有限公司 | A kind of document down loading method, mobile terminal and router |
| CN107783996A (en) * | 2016-08-26 | 2018-03-09 | 阿里巴巴集团控股有限公司 | A kind of method and apparatus for sharing files |
| CN108769236A (en) * | 2018-06-06 | 2018-11-06 | Oppo广东移动通信有限公司 | Using recommendation method, electronic device and computer readable storage medium |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20040193678A1 (en) * | 2003-03-27 | 2004-09-30 | Microsoft Corporation | Notifications for shared resources |
| CN101022346A (en) * | 2006-12-30 | 2007-08-22 | 陈卫文 | Electronic documant coordination downloading system and method |
| US7284055B1 (en) * | 1998-02-10 | 2007-10-16 | Sprint Communications Company L.P. | Method and system for network redirecting |
| CN103997521A (en) * | 2014-05-15 | 2014-08-20 | 深圳大学 | File operating method and device based on router and router |
| CN104023008A (en) * | 2014-05-16 | 2014-09-03 | 小米科技有限责任公司 | Method and device for downloading and starting tool kit |
| CN104123341A (en) * | 2014-06-26 | 2014-10-29 | 小米科技有限责任公司 | Method and device for downloading file and route device |
| CN104967646A (en) * | 2014-10-27 | 2015-10-07 | 腾讯科技(深圳)有限公司 | File downloading method and apparatus |
-
2016
- 2016-01-29 CN CN201610067365.5A patent/CN105763601A/en active Pending
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7284055B1 (en) * | 1998-02-10 | 2007-10-16 | Sprint Communications Company L.P. | Method and system for network redirecting |
| US20040193678A1 (en) * | 2003-03-27 | 2004-09-30 | Microsoft Corporation | Notifications for shared resources |
| CN101022346A (en) * | 2006-12-30 | 2007-08-22 | 陈卫文 | Electronic documant coordination downloading system and method |
| CN103997521A (en) * | 2014-05-15 | 2014-08-20 | 深圳大学 | File operating method and device based on router and router |
| CN104023008A (en) * | 2014-05-16 | 2014-09-03 | 小米科技有限责任公司 | Method and device for downloading and starting tool kit |
| CN104123341A (en) * | 2014-06-26 | 2014-10-29 | 小米科技有限责任公司 | Method and device for downloading file and route device |
| CN104967646A (en) * | 2014-10-27 | 2015-10-07 | 腾讯科技(深圳)有限公司 | File downloading method and apparatus |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107783996A (en) * | 2016-08-26 | 2018-03-09 | 阿里巴巴集团控股有限公司 | A kind of method and apparatus for sharing files |
| CN106375185A (en) * | 2016-08-29 | 2017-02-01 | 宁波麦博韦尔移动电话有限公司 | Time period-based email pushing and network preferential downloading method and device |
| CN106657217A (en) * | 2016-09-20 | 2017-05-10 | 厦门伙伴信息技术有限公司 | Routing device-based APP downloading and caching method |
| CN106559479A (en) * | 2016-10-31 | 2017-04-05 | 北京小米移动软件有限公司 | Multimedia file downloading method, designated equipment and terminal |
| CN107343055A (en) * | 2017-08-30 | 2017-11-10 | 努比亚技术有限公司 | A kind of document down loading method, mobile terminal and router |
| CN108769236A (en) * | 2018-06-06 | 2018-11-06 | Oppo广东移动通信有限公司 | Using recommendation method, electronic device and computer readable storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6214812B2 (en) | Transfer processing method and apparatus | |
| US10608988B2 (en) | Method and apparatus for bluetooth-based identity recognition | |
| US20160164808A1 (en) | Method and device for instant messaging | |
| CN108809968A (en) | Collaborative share method, apparatus and storage medium | |
| CN104166602B (en) | Data back up method and device, electronic equipment | |
| CN106254467A (en) | Sharing files method and device | |
| WO2017045307A1 (en) | Method and apparatus for displaying answering extension function | |
| CN105763601A (en) | File sharing method and device | |
| CN105491048A (en) | Account management method and apparatus | |
| CN107425991A (en) | Method and device for establishing group and method and device for message forwarding | |
| CN106027336A (en) | Equipment sharing method and device | |
| CN107809491A (en) | The method for down loading and device of installation kit | |
| CN105636176A (en) | Network sharing method and device | |
| CN106604230A (en) | Region configuration method and region configuration device | |
| KR101727058B1 (en) | Method and device for controlling router plug-in | |
| CN106658467A (en) | Virtual SIM card management method and device | |
| CN105848287A (en) | Method, device and system for processing terminal positioning and router | |
| CN106790743A (en) | Information transferring method, device and mobile terminal | |
| CN106559479A (en) | Multimedia file downloading method, designated equipment and terminal | |
| CN106598540A (en) | Audio playing method and device | |
| CN106535192A (en) | Method and device for realizing access of smart equipment to router and mobile terminal | |
| CN106453774A (en) | Method and apparatus for displaying contact information | |
| CN107483277A (en) | Port management method and device | |
| CN106850556A (en) | service access method, device and equipment | |
| CN106599231A (en) | Page display method and apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160713 |