CN111182021B - File sharing method and device, electronic equipment and computer readable storage medium - Google Patents
File sharing method and device, electronic equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN111182021B CN111182021B CN201911007170.1A CN201911007170A CN111182021B CN 111182021 B CN111182021 B CN 111182021B CN 201911007170 A CN201911007170 A CN 201911007170A CN 111182021 B CN111182021 B CN 111182021B
- Authority
- CN
- China
- Prior art keywords
- file
- online document
- server
- information
- equipment
- 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.)
- Active
Links
Images
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/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- 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/0807—Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
-
- 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/0876—Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
-
- 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/14—Session management
- H04L67/141—Setup of application sessions
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The disclosure provides a file sharing method and device, electronic equipment and a computer readable storage medium, and relates to the technical field of information security, wherein the method comprises the following steps: sending a connection establishment request to a server so that the server can generate first equipment information of the first equipment according to the connection establishment request, wherein the first equipment information comprises a first equipment identifier; receiving and displaying a first device identifier returned by the server; and receiving and displaying the target file sent by the server, wherein the target file is determined to be sent by the server according to the received input information aiming at the target file sent by the second equipment and the first equipment identification. According to the technical scheme, the file content can be transmitted through the network, the medium and the login are not needed, the left-over file cannot be generated, and privacy disclosure and virus infection can be avoided.
Description
Technical Field
The present disclosure relates to the field of information security technologies, and in particular, to a file sharing method and apparatus, an electronic device, and a computer-readable storage medium.
Background
With the development of the internet, office staff usually need to transfer documents from one device to another device through a flash disk or a network disk when printing or document display is performed. On one hand, however, when information is transmitted through a network disk or the like, account and password information is left in the login process, which causes the leakage of an account password; on the other hand, when a file is transferred via a medium (e.g., a flash disk), a virus intrusion often occurs to cause an event such as privacy disclosure.
Therefore, a method capable of secure file transfer between devices is important.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The embodiment of the disclosure provides a file sharing method and device, electronic equipment and a computer readable storage medium, which can realize safe transmission of file contents.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
The embodiment of the disclosure provides a file sharing method, which includes: sending a connection establishment request to a server so that the server can generate first equipment information of the first equipment according to the connection establishment request, wherein the first equipment information comprises a first equipment identifier; receiving and displaying a first device identifier returned by the server; and receiving and displaying the target file sent by the server, wherein the target file is determined to be sent by the server according to the received input information aiming at the target file sent by the second equipment and the first equipment identification.
In some embodiments, the file sharing method further includes: connecting with a target projection device so as to project the target file to the target projection device; and/or to a target printing device to facilitate printing of the target file by the target printing device.
The embodiment of the disclosure provides a file sharing method, which is applied to a second device, and the method includes: in response to the selected instruction, determining a target file; receiving input information for the target file; and sending the input information to a server so that the server sends the target file to the first equipment according to the received first equipment identifier and the input information sent by the first equipment, so that the target file is displayed on the first equipment.
In some embodiments, the file sharing method further includes: and sending a login request to the server, wherein the login request carries target user information.
In some embodiments, the file sharing method further includes: and sending a file import request to the server so as to upload the target file to the server.
The embodiment of the disclosure provides a file sharing method, which is applied to a server and comprises the following steps: responding to a connection establishment request sent by first equipment, and generating first equipment information of the first equipment, wherein the first equipment information comprises a first equipment identifier; sending the first equipment identification to the first equipment so that the first equipment displays the first equipment identification; acquiring input information aiming at a target file sent by second equipment; and sending the target file to the first equipment according to the first equipment identification and the input information so as to display the target file on the first equipment.
In some embodiments, the file sharing method further includes: responding to a login request sent by the second equipment, and acquiring target user information; responding to a file acquisition request sent by the second equipment, and determining a target file; and generating a file token of the target file according to the target file identifier of the target file, the file authority information and the target user information.
In some embodiments, the file sharing method further includes: and responding to a file import request sent by the second equipment, and acquiring and storing the target file.
In some embodiments, the first device information further comprises a first device token; wherein, according to the first device identifier and the input information, sending the target file to the first device includes: if the first equipment identification is successfully matched with the input information, searching the first equipment token according to the first equipment identification; when the first equipment token is found, sending the file information of the target file and the file token to the first equipment; receiving a first device token, file information and a file token returned by the first device; and if the first device token, the file information and the file token returned by the first device are successfully verified, returning the file content of the target file to the first device.
In some embodiments, the file sharing method further includes: and if the first equipment identifier is successfully matched with the input information, the first equipment identifier is invalid.
In some embodiments, the file sharing method further includes: in response to a file closing request of the first device for the target file, disconnecting a target connection with the first device; and searching a first device token corresponding to the target connection, and invalidating the first device token.
The embodiment of the present disclosure provides a file sharing device, which includes: the device comprises a connection establishing module, a device identification receiving module and a display module.
The connection establishing module may be configured to send a connection establishing request to a server, so that the server generates first device information of the first device according to the connection establishing request, where the first device information includes a first device identifier; the device identifier receiving module may be configured to receive and display a first device identifier returned by the server; the display module may be configured to receive and display an object file sent by the server, where the object file is determined to be sent by the server according to the received input information for the object file sent by the second device and the first device identifier.
An embodiment of the present disclosure provides an electronic device, including: one or more processors; a storage device, configured to store one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the file sharing method described in any one of the above.
The present disclosure provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the file sharing method according to any one of the above-mentioned embodiments.
On one hand, the first device sends a connection establishment request to the server to enable the server to generate first device information, and the first device information can be used by the server to be compared with input information input by the second device to determine whether a target file is sent to the first device or not, so that the file transmission safety is improved; on the other hand, the first device receives and displays the target file, the target file is determined and sent by the server according to the first device information and the input information of the second device, and the target file in the server can be transmitted to the device and displayed without login and media. According to the technical scheme provided by the embodiment of the disclosure, the target file selected on the target device (or the server) can be directly displayed on another device, the target file is not required to be transmitted by a medium, virus invasion is avoided, a specified webpage is not required to be logged in, and leakage of an account and a password is avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. The drawings described below are merely some embodiments of the present disclosure, and other drawings may be derived from those drawings by those of ordinary skill in the art without inventive effort.
Fig. 1 is a schematic diagram illustrating an exemplary system architecture of a file sharing method or a file sharing apparatus that can be applied to the embodiments of the present disclosure.
Fig. 2 is a flow diagram illustrating a file sharing method according to an example embodiment.
Fig. 3 is a flow diagram of step S23 in fig. 2 in some embodiments.
FIG. 4 illustrates another file sharing method according to an example embodiment.
Fig. 5 is a flow diagram illustrating a file sharing method according to an example embodiment.
FIG. 6 is a flow diagram illustrating a method of file sharing in accordance with an exemplary embodiment.
Fig. 7 is a flow chart of step S63 in fig. 6 in some embodiments.
Fig. 8 is a flow chart of step S64 in fig. 6 in some embodiments.
FIG. 9 is a flow diagram illustrating yet another method of file sharing in accordance with an illustrative embodiment.
FIG. 10 is a display interface of a first device shown in accordance with an exemplary embodiment.
FIGS. 11-15 are diagrams illustrating a display interface of a second device according to an exemplary embodiment.
FIG. 16 is a display interface of another first device shown in accordance with an example embodiment.
Fig. 17 is a flowchart illustrating yet another file sharing method according to an example embodiment.
Fig. 18 is a block diagram illustrating a file sharing apparatus according to an example embodiment.
Fig. 19 is a schematic structural diagram illustrating a computer system applied to a file sharing apparatus according to an exemplary embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals denote the same or similar parts in the drawings, and thus, a repetitive description thereof will be omitted.
The described features, structures, or characteristics of the disclosure may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the disclosure.
The drawings are merely schematic illustrations of the present disclosure, in which the same reference numerals denote the same or similar parts, and thus, a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and steps, nor do they necessarily have to be performed in the order described. For example, some steps may be decomposed, and some steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
In this specification, the terms "a", "an", "the", "said" and "at least one" are used to indicate the presence of one or more elements/components/etc.; the terms "comprising," "including," and "having" are intended to be inclusive and mean that there may be additional elements/components/etc. other than the listed elements/components/etc.; the terms "first," "second," and "third," etc. are used merely as labels, and are not limiting on the number of their objects.
The following detailed description of exemplary embodiments of the disclosure refers to the accompanying drawings.
Fig. 1 is a schematic diagram illustrating an exemplary system architecture of a file sharing method or a file sharing apparatus that can be applied to the embodiments of the present disclosure.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, wearable devices, virtual reality devices, smart homes, and the like.
The terminal device may, for example, send a connection establishment request to a server, so that the server generates first device information of the first device according to the connection establishment request, where the first device information includes a first device identifier; the terminal device may, for example, receive and display the first device identifier returned by the server; the terminal device may, for example, receive and display an object file sent by the server, where the object file is determined to be sent by the server according to the received input information for the object file sent by the second device and the first device identifier.
The terminal device may determine the target file, for example in response to the selected instruction; the terminal device may, for example, receive input information for the target file; the terminal device may, for example, send the input information to a server, so that the server sends the target file to the first device according to the received first device identifier and the input information sent by the first device, so as to display the target file on the first device.
The server 105 may be a server that provides various services, such as a background management server that provides support for devices operated by users using the terminal apparatuses 101, 102, 103. The background management server can analyze and process the received data such as the request and feed back the processing result to the terminal equipment.
The server 105 may generate first device information of a first device, for example, in response to a connection establishment request sent by the first device, the first device information including a first device identification; server 105 may, for example, send the first device identification to the first device so that the first device presents the first device identification; the server 105 may, for example, obtain input information for the target file sent by the second device; server 105 may send the object file to the first device, for example, based on the first device identification and the input information, to display the object file on the first device.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is only illustrative, and the server 105 may be a physical server or may be composed of a plurality of servers, and there may be any number of terminal devices, networks and servers according to actual needs.
In the related art, when a user needs to present a document or print a document, it is often necessary to copy the document onto a computer connected to a projector or a printer. However, the above method has some problems: the target computer can not correctly open the document due to lack of corresponding software; copying files through storage media such as a flash disk and an optical disk may cause virus infection and spread; the target file is transmitted to the target equipment by logging in a mailbox, a network disk or instant messaging software on the target equipment, a user name and a password can be leaked in the logging-in process, and if the user forgets to log out after logging in, other people can possibly browse the target file, so that the target file is leaked; the target file content can be leaked due to the fact that the file is forgotten to be deleted after being used, and even if the file is deleted, the file can be retrieved through a technical means.
Fig. 2 is a flow diagram illustrating a file sharing method according to an example embodiment. The method provided by the embodiment of the present disclosure may be processed by any electronic device with computing processing capability, for example, the server 105 and/or the terminal devices 102 and 103 in the embodiment of fig. 1 described above, and in the following embodiment, the terminal device 102 or 103 is taken as an execution subject for example, but the present disclosure is not limited thereto.
Referring to fig. 2, a file sharing method provided by an embodiment of the present disclosure may include the following steps.
In step S21, a connection establishment request is sent to a server, so that the server generates first device information of the first device according to the connection establishment request, where the first device information includes a first device identifier.
In some embodiments, the file sharing method may be applied to a first device, which may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablets, laptop portable computers, desktop computers, wearable devices, virtual reality devices, smart homes, and the like.
In some embodiments, the connection establishment request sent by the first device to the server may be a long connection establishment request.
In the related art, a long connection may refer to that a plurality of data packets may be continuously transmitted over one connection, and if no data packet is transmitted during the connection maintenance, a dual transmission link check packet is required. It is colloquially understood that the long connection may refer to maintaining a connection state of a client (including, but not limited to, a client) with a server for a long period of time.
In some embodiments, after the server establishes a connection with the first device, the server may generate first device information of the first device, where the first device information may include a device identifier of the first device and a first device token of the first device, and the device identifier may be a device code or a two-dimensional code, which may identify the first device.
In some embodiments, the first device token may be a string of characters generated by a server in the internet to serve as a token for the first device to request. After the first device is connected with the server for the first time, the server generates a first device token for the first device and returns the first device token to the first device, and the first device only needs to bring the device token of the first device to request data later without requesting again or taking a user name or a password.
In step S22, the first device identifier returned by the server is received and displayed.
In some embodiments, after the server generates the first device information of the first device, the server sends the first device identifier in the first device information to the first device, so that the first device displays the first device identifier.
In step S23, an object file sent by the server is received and displayed, where the object file is determined to be sent by the server according to the received input information sent by the second device for the object file and the first device identifier.
In some embodiments, a user may obtain a device identifier of the first device through a display screen of the first device, and the user may input the device identifier to the second device as input information of the second device.
In some embodiments, the server matches the input information of the second device with the identifier of the first device to determine whether to send the target file to the first device.
In some embodiments, after the server determines that the input information of the second device is successfully matched with the identifier of the first device, the server sends the target file to the first device.
In some embodiments, the first device receives and displays the target file sent by the server.
On one hand, the first device sends a connection establishment request to the server to enable the server to generate first device information, and the first device information can be used by the server to be compared with input information input by the second device to determine whether a target file is sent to the first device or not, so that the security of file transmission is improved; on the other hand, the first device receives and displays the target file, the target file is determined and sent by the server according to the first device information and the input information of the second device, and the target file in the server can be transmitted to the device and displayed without login and media. According to the technical scheme provided by the embodiment of the disclosure, the target file selected on the target device (or the server) can be directly displayed on another device, the target file is not required to be transmitted by a medium, the invasion of viruses is avoided, the specified webpage is not required to be logged in, and the leakage of an account and a password is avoided.
Fig. 3 is a flow diagram of step S23 in fig. 2 in some embodiments. Referring to fig. 3, the above-mentioned step S23 may include the following steps.
In some embodiments, the first device information may include a first device token.
In step S231, file information and a file token of the target file are received, wherein the file information and the file token are sent by the server when the matching of the first device identifier and the input information is successful.
In some embodiments, the file information of the target file may include a title, a genre, and the like of the target file.
In some embodiments, the server may generate the file information of the target file according to a target file identifier (which may be a number), file authority information (which may be, for example, authority for file transfer), and the target user information (which may be login user information in the first device, including a computer without limitation to a user name, a user type, and the like).
In step S232, the first device token, the file information, and the file token are returned to the server.
In some embodiments, the server may perform verification according to the first device token, the file information, and the file token, and may send the file content of the target file to the first device if the server determines that the first device token, the file information, and the file token have a correspondence relationship.
In step S233, the file content of the target file is received, where the file content is sent by the server when the returned first device token, the file information, and the file token are successfully checked.
According to the technical scheme provided by the embodiment, the file token and the file information of the target file are transmitted between the server and the first device, so that the target file is prevented from being directly transmitted between the devices, and the safety of information transmission is improved. In addition, after the server information is successfully verified, the target file is sent to the first device to be displayed, so that an information verification link is added, and the information safety is improved again.
FIG. 4 illustrates another file sharing method according to an example embodiment. Referring to fig. 4, the file sharing method further includes the following steps.
In step S24, a target projection device is connected to project the target file onto the target projection device.
In some embodiments, the first device may be coupled to the target projector to facilitate projecting the target file onto the target projection device for display.
In step S25, a target printing device is connected to print the target file by the target printing device.
In still other embodiments, the first device may be further connected to the target printing device to facilitate printing of the target file by the target printing device.
In the embodiment, the first device for displaying the target file is connected with the target projection device and the target printing device, so that the safe projection and the safe printing of the target file can be realized, the safety of file transmission is improved, and the leakage of secret information such as virus transmission and passwords is avoided.
Fig. 5 is a flow diagram illustrating a file sharing method according to an example embodiment. The method provided by the embodiment of the present disclosure may be processed by any electronic device with computing processing capability, for example, the server 105 and/or the terminal devices 102 and 103 in the embodiment of fig. 1 described above, and in the following embodiment, the terminal device 102 or 103 is taken as an execution subject for example, but the present disclosure is not limited thereto.
In some embodiments, the file sharing method may be applied to the second device. The second device can be, for example, a computer, a mobile phone, or other devices capable of displaying and transmitting information.
Referring to fig. 5, the file sharing method may include the following steps.
In step S51, in response to the selection instruction, the target file is determined.
In some embodiments, a user may log in a target website in a second device (e.g., the user's own private mobile phone) and then import a target file into the second device, and after the import, the user may view and play the target file in the form of a web page in a browser of the second device. It will be appreciated that the target file may be not only imported locally but also may be stored in the server itself. The user may select a target file through a display interface of the second device, and the second device determines the target file in response to the user's selection instruction.
In some embodiments, the target file may refer to a file stored online by a server, or may refer to a file stored offline by the second device and uploaded to the server.
In some embodiments, after obtaining the selected instruction, the second device uploads the selected instruction to a server, so that the server determines a target file in an online document library according to the selected instruction.
In some embodiments, the target file may be presented to the user in the form of a web page after selection.
In step S52, input information for the target file is received.
In some embodiments, the input information may be entered for the target file after the user sees the target file on the display screen of the second device (e.g., a device identifier (e.g., a device code) of the first device as seen by the user from the first device; e.g., the user scans a two-dimensional code displayed in the first device using the second device).
In some embodiments, the second device receives the input information after the user inputs the input information.
In step S53, the input information is sent to a server, so that the server sends the target file to the first device according to the received first device identifier sent by the first device and the input information, so as to display the target file on the first device.
In some embodiments, the second device sends the input information to a server after receiving the input information. And the server performs authorization verification with the server according to the received first equipment identifier sent by the first equipment. And if the authorization verification is passed, the server sends the target file to the first equipment, so that the first equipment can display the target file conveniently.
In some embodiments, before the second device sends the input information to the server, the second device may send a login request to the server, where the login request carries target user information. The target user information may refer to account and password information of the target user.
In some embodiments, if the target file is a local file of the second device, the second device may send a file import request to the server to upload the target file to the server.
FIG. 6 is a flow diagram illustrating a method of file sharing in accordance with an exemplary embodiment. The method provided by the embodiment of the present disclosure may be processed by any electronic device with computing processing capability, for example, the server 105 and/or the terminal devices 102 and 103 in the embodiment of fig. 1 described above, and in the following embodiment, the server 105 is taken as an execution subject for example, but the present disclosure is not limited thereto.
Referring to fig. 6, the file sharing method may include the following steps.
In step S61, in response to the connection establishment request sent by the first device, first device information of the first device is generated, where the first device information includes a first device identifier.
In some embodiments, after receiving the connection establishment request sent by the first device, the server may establish a long connection with the first device, and generate first device information of the first device, where the first device information may include a first device identifier and a first device token.
In step S62, the first device identifier is sent to the first device, so that the first device displays the first device identifier.
In some embodiments, the user may obtain the first device identifier from the display interface of the first device, and input the seen first device identifier to the second device to generate the input information of the second device.
In step S63, the input information for the target file transmitted by the second device is acquired.
In some embodiments, the second device may upload the acquired input information for the target file to a server.
In step S64, the object file is sent to the first device according to the first device identifier and the input information, so that the object file is displayed on the first device.
In some embodiments, the server performs authorization determination according to the first device identifier and the input information of the second device, and sends the target file to the first device for display if the authorization determination is successful.
For example, the server may determine whether the input information of the second device is consistent with the first device identifier; if the file token is consistent with the file token, the server can generate a file token of the target file according to the file information of the target file; sending the file information of the target file and the file token to the first equipment according to the first equipment token; the first device returns the first device token, the file information and the file token to the server; the server verifies the returned first equipment token, the returned file information and the returned file token; and if the verification is successful, the server transmits the content of the target file to the first equipment so as to be displayed by the first equipment.
In the embodiment, the server generates the first device identifier through the connection establishment request of the first device, matches the input information of the second device for the target file with the first device identifier, and transmits the target file to the first device for display if the matching is successful. According to the process, the security of file transmission is improved by adding the secret key and the secret key matching process, and the problems of virus transmission, password leakage, file leakage and the like are solved.
Fig. 7 is a flow chart of step S63 in fig. 6 in some embodiments. Referring to fig. 7, the above-mentioned step S63 may include the following steps.
In step S631, target user information is acquired in response to the login request transmitted by the second device.
In some embodiments, the second device uploads target user information while sending a login request to the server, and the target user information may include account and password information of a target user.
In step S632, in response to the file acquisition request sent by the second device, the target file is determined.
In some embodiments, the target user selects the target file through the second device, the second device sends a file acquisition request to the server, and the server determines the target file in response to the file acquisition request sent by the second device.
In step S633, a file token of the target file is generated according to the target file identifier of the target file, the file authority information, and the target user information.
In some embodiments, the server may generate a file token for the target file based on a target file representation of the target file (e.g., an encoding of the target file), file permission information (e.g., permission of whether the target file is uploadable), and the target user information.
In some embodiments, the server may obtain and store the target file in response to a file import request sent by the second device.
In this embodiment, the file token of the target file is determined according to the login request and the file obtaining request sent by the second device.
Fig. 8 is a flow chart of step S64 in fig. 6 in some embodiments. Referring to fig. 8, the above-mentioned step S64 may include the following steps.
In some embodiments, the first device information further comprises a first device token.
In step S641, if the first device identifier is successfully matched with the input information, the first device token is searched according to the first device identifier.
In some embodiments, the server may match the first device identifier with the input information of the second device, and if the first device identifier is successfully matched with the input information, search for the first device token according to the first device identifier.
In step S642, when the first device token is found, the file information of the target file and the file token are sent to the first device.
In step S643, a first device token, file information, and a file token returned by the first device are received.
In some embodiments, when the first device receives the file token and the file information of the target file sent by the server, it sends a request for opening the target file to the server, and sends the first device token, the file information, and the file token to the target file.
In step S647, if the first device token, the file information, and the file token returned by the first device are successfully verified, returning the file content of the target file to the first device.
In some embodiments, after receiving the request for opening the target file sent by the first device, the server checks the correspondence between the first device token, the file information, and the file token, and if the check is passed, the server returns the file content of the target file to the first device, so that the first device displays the target file.
In some embodiments, if the first device identifier is successfully matched with the input information, the first device identifier is disabled, so as to prevent multiple devices from simultaneously connecting to the second device to display the target file.
In some embodiments, if the first device identifier is successfully matched with the input information, the first device identifier may also be continuously kept valid, so that multiple devices may simultaneously connect to the second device to display the target file.
In some embodiments, the server may further disconnect a target connection with the first device in response to a file close request of the first device for the target file, and search for a first device token corresponding to the target connection, so as to invalidate the first device token.
FIG. 9 is a flow diagram illustrating yet another method of file sharing in accordance with an illustrative embodiment. Referring to fig. 9, the file sharing method may include the following steps.
In step S91, the first device initiates a connection establishment request to the server.
In some embodiments, the first device may be a public computer to which the projector device is connected, and the user may open a remote presentation page (e.g., the website of the XX document) on the first device to initiate a connection establishment request to the server.
Step S92, the server generates first device information of the first device in response to the connection establishment request sent by the first device, where the first device information includes a first device identifier.
In some embodiments, after receiving the connection establishment request sent by the first device, the server may establish a long connection with the first device, and generate first device information of the first device, where the first device information may include a first device identifier and a first device token, and the server is to store a correspondence between the first device identifier of the suzuo search and the first device token.
And step S93, the first device receives and displays the first device identifier returned by the server.
In some embodiments, after the first device receives the first device identifier returned by the server, the first device may present a display interface as shown in fig. 10, where the display interface includes both the first device identifier "XXXXXX" and a file sharing method usage instruction, such as "please open a document, open … …".
Step S94, the user selects the target file through the second device, and inputs the input information for the target file to the second device according to the first device identifier displayed by the first device.
In some embodiments, the user may log in to a target web site (e.g., XX document) in a second device (e.g., the user's own private cell phone), which may be the interface described in fig. 11; in the interface shown in fig. 11, the user may click on the "import file" button, or click on the "online document", "online …", or other buttons, and enter the interface shown in fig. 12, so as to import the target file into the second device (or open the online document); clicking on any of the documents in FIG. 12 may select the target document and proceed to the interface shown in FIG. 13; FIG. 13 shows a state of a target file being generated, and when the target file is successfully generated, FIG. 14 is entered; the user may view and play the target file in the form of a web page at the interface shown in fig. 14. It will be appreciated that the target file may be not only imported locally but also may be stored in the server itself.
In some embodiments, the target file may refer to a file stored online by a server, or may refer to a file stored offline by the second device and uploaded to the server.
In some embodiments, the user may obtain the first device identifier from a display interface of the first device, and input the first device identifier to the second device to generate input information for the target file.
Step S95, the server obtains the input information for the target file uploaded by the second device, and compares the input information with the first device identifier.
In some embodiments, the user may enter input information for the target file on the second device in an interface as shown in FIG. 15.
In step S96, the server determines whether the input information matches the first device identifier.
In some embodiments, if the server determines that the input information fails to match the first device identifier, step S97 is executed; if the server determines that the input information is successfully matched with the first device identifier, step S98 is executed.
In step S97, matching error information is returned.
In some embodiments, the server sends matching error information to the first device and the second device to remind the user, so that the user can input information again conveniently.
Step S98, sending the target file to the first device.
In some embodiments, if the server determines that the input information is successfully matched with the first device identifier, the server sends the target file content to the first device.
Step S99, the first device displays the target file.
In some embodiments, the first device may display an interface including a target file as shown in FIG. 16.
According to the file sharing method provided by the embodiment of the disclosure, on one hand, a server generates a first device identifier through a connection establishment request sent by a first device, and the device identifier of the first device can be used for authorization verification so as to improve the security of file transmission; on the other hand, the server carries out authorization verification on the input information of the second device and the identifier of the first device, and if the verification is successful, the server sends the target file content to the first device. In the method provided by this embodiment, the first device identifier is generated and the first device identifier is verified with the input information of the second device to determine whether to send the target file, so that the security of file transmission is improved; in addition, according to the scheme provided by the embodiment, the target file selected on the target device (or the server) can be directly displayed on another device, the target file is not required to be transmitted by a medium, the invasion of viruses is avoided, a specified webpage is not required to be logged in, and the leakage of an account and a password is avoided.
In some embodiments, if the target file is itself an online document, then the server (which may be an online document server) where the target file is located is known and the function is determined. In order to complete the technical solution provided by the present disclosure, a new server may need to be reconfigured, which may greatly waste resources. In order to fully utilize resources and avoid waste caused by updating of the server, an authorization server (which can be shared) can be added on the basis of the original server to complete the method.
Fig. 17 is a flowchart illustrating yet another file sharing method according to an example embodiment. Referring to fig. 17, the file sharing method may include the following steps.
At step S01, the user opens the remote presentation page through the first device.
Step S02, the first device requests the authorization server to establish a connection.
Step S03, the authorization server sends a first device code to the first device, and stores the correspondence between the first device code and the device token.
In some embodiments, the authorization server generates first device information for the first device from the connection establishment request, the first device information including a first device identification (e.g., a first device code).
Step S04, the first device presents the first device code to a user.
Step S05, the user opens a target website in the second device according to the first device code displayed by the first device, inputs user information, selects a target file, and inputs information for the target file.
Step S06, the second device sends the input information to an online document server and requests authorization.
Step S07, the online document server authorizes the authorization server, and sends the file token, the file information, and the first device code of the target file.
In some embodiments, the file information of the target file may include a title, a genre, and the like of the target file.
In some embodiments, the server may generate the file information of the target file according to a target file identifier (which may be a number), file authority information (which may be, for example, authority for file transfer), and the target user information (which may be login user information in the first device, including a computer without limitation to a user name, a user type, and the like).
And if the input information of the second equipment is successfully matched with the first equipment code. The authorization server judges that the authorization is successful and proceeds to step S08.
Step S08, the authorization server searches the connection information of the first device according to the first device code, and transmits the document information and the file token to the first device.
In step S09, the first device requests the online document server to open a target file, and transmits first device information (including a device code and a device token), file token information, and file information.
Step S10, the online document server checks the correspondence between the file token, the file information, and the first device information with the authorization service.
In some embodiments, the online document server may perform verification according to the first device token, the file information, and the file token, and may send the file content of the target file to the first device if the online document server determines that the first device token, the file information, and the file token have a correspondence relationship.
According to the method, the file token and the file information of the target file are transmitted between the server and the first device through the file token, so that the target file is prevented from being directly transmitted between the devices, and the safety of information transmission is improved. In addition, after the server information is successfully verified, the target file is sent to the first device to be displayed, so that an information verification link is added, and the information safety is improved again.
Step S11, if the verification is successful, the online document server sends the target file content to the first device.
In step S12, the first device presents the target file to the user.
According to the file sharing method provided by the embodiment of the disclosure, on one hand, a server generates a first device identifier through a connection establishment request sent by a first device, and the device identifier of the first device can be used for authorization verification so as to improve the security of file transmission; on the other hand, the server carries out authorization verification on the input information of the second device and the identifier of the first device, and if the verification is successful, the server sends the target file content to the first device. In the method provided by this embodiment, the first device identifier is generated and the first device identifier is verified with the input information of the second device to determine whether to send the target file, so that the security of file transmission is improved; in addition, according to the scheme provided by the embodiment, the target file selected on the target device (or the server) can be directly displayed on another device, the target file is not required to be transmitted by a medium, the invasion of viruses is avoided, a specified webpage is not required to be logged in, and the leakage of an account and a password is avoided.
Fig. 18 is a block diagram illustrating a file sharing apparatus according to an example embodiment. Referring to fig. 18, a file sharing apparatus 1800 according to an embodiment of the present disclosure may include a connection establishing module 1801, an equipment identifier receiving module 1802, and a display module 1803.
The connection establishing module 1801 may be configured to send a connection establishing request to a server, so that the server generates first device information of the first device according to the connection establishing request, where the first device information includes a first device identifier; the device identifier receiving module 1802 may be configured to receive and display a first device identifier returned by the server; the display module 1803 may be configured to receive and display an object file sent by the server, where the object file is determined to be sent by the server according to the received input information for the object file sent by the second device and the first device identifier.
In some embodiments, the first device information further comprises a first device token.
In some embodiments, the display module may include a document information receiving unit, an information returning unit, and a verification unit.
Wherein the information receiving unit may be configured to receive file information and a file token of the target file, wherein the file information and the file token are transmitted by the server when the first device identification is successfully matched with the input information; the information returning unit may be configured to return the first device token, the file information, and the file token to the server; the verification unit may be configured to receive file content of the target file, wherein the file content is sent by the server when the returned first device token, the file information and the file token are verified successfully.
In some embodiments, the file sharing apparatus 1800 may further include a projection display module and a printing module.
Wherein the projection display module may be configured to interface with a target projection device to facilitate projecting the target file to the target projection device; the printing module may be configured to interface with a target printing device to facilitate printing of the target file by the target printing device.
Since each functional module of the file sharing apparatus 1800 according to the exemplary embodiment of the present disclosure corresponds to the step of the above-described exemplary embodiment of the file sharing method, it is not described herein again.
Some embodiments of the present disclosure further provide a file sharing apparatus, where the file sharing apparatus may include: the selected information module and the input information acquisition module upload module.
Wherein the selection information module may be configured to determine a target file in response to a selection instruction; the input information acquisition module may be configured to receive input information for the target file; the uploading module may be configured to send the input information to a server, so that the server sends the target file to the first device according to the received first device identifier and the input information sent by the first device, so as to display the target file on the first device.
In some embodiments, the file sharing apparatus further includes a login module.
The login module may be configured to send a login request to the server, where the login request carries target user information.
In some embodiments, the file sharing apparatus may further include an import module.
Wherein the import module may be configured to send a file import request to the server to upload the target file to the server.
Since each functional module of the file sharing apparatus according to the exemplary embodiment of the present disclosure corresponds to the step of the file sharing method according to the exemplary embodiment, details are not repeated here.
The embodiment of the present disclosure further provides a file sharing apparatus, where the file sharing apparatus may include: the device comprises a first device information generating module, a first device information sending module, an input information acquiring module and a target file sending module.
The first device information generating module may be configured to generate first device information of a first device in response to a connection establishment request sent by the first device, where the first device information includes a first device identifier; the first device information sending module may be configured to send the first device identifier to the first device, so that the first device presents the first device identifier; the input information acquisition module can be configured to acquire input information aiming at a target file sent by a second device; the object file sending module may be configured to send the object file to the first device according to the first device identifier and the input information, so as to display the object file on the first device.
Since each functional module of the file sharing apparatus according to the exemplary embodiment of the present disclosure corresponds to the step of the file sharing method according to the exemplary embodiment, details are not repeated here.
Referring now to FIG. 19, a block diagram of a computer system 1900 that is suitable for implementing a terminal device of the embodiments of the present application is shown. The terminal device shown in fig. 19 is only an example, and should not bring any limitation to the functions and the range of use of the embodiments of the present application.
As shown in fig. 19, the computer system 1900 includes a Central Processing Unit (CPU)1901, which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)1902 or a program loaded from a storage section 1908 into a Random Access Memory (RAM) 1903. In the RAM 1903, various programs and data necessary for the operation of the system 1900 are also stored. The CPU 1901, ROM 1902, and RAM 1903 are connected to one another via a bus 1904. An input/output (I/O) interface 1905 is also connected to bus 1904.
The following components are connected to the I/O interface 1905: an input section 1906 including a keyboard, a mouse, and the like; an output section 1907 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 1908 including a hard disk and the like; and a communication section 1909 including a network interface card such as a LAN card, a modem, or the like. The communication section 1909 performs communication processing via a network such as the internet. Drivers 1910 are also connected to I/O interface 1905 as needed. A removable medium 1911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1910 as necessary, so that a computer program read out therefrom is installed into the storage section 1908 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program containing program code for performing the method illustrated by the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via communications portion 1909 and/or installed from removable media 1911. The above-described functions defined in the system of the present application are executed when the computer program is executed by the Central Processing Unit (CPU) 1901.
It should be noted that the computer readable storage medium shown in the present application can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable storage medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules and/or sub-module units described in the embodiments of the present application may be implemented by software, or may be implemented by hardware. The described modules (and/or sub-module units may also be provided in a processor, and may for example be described as a processor comprising a sending unit, an obtaining unit, a determining unit and a first processing unit, wherein the names of these modules and/or sub-module units do not in some cases constitute a limitation of the modules and/or sub-module units themselves.
As another aspect, the present application also provides a computer-readable storage medium, which may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable storage medium carries one or more programs which, when executed by a device, cause the device to perform functions including: sending a connection establishment request to a server so that the server can generate first equipment information of the first equipment according to the connection establishment request, wherein the first equipment information comprises a first equipment identifier; receiving and displaying a first device identifier returned by the server; and receiving and displaying the target file sent by the server, wherein the target file is determined to be sent by the server according to the received input information aiming at the target file sent by the second equipment and the first equipment identification.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution of the embodiment of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.), and includes several instructions for enabling a computing device (which may be a personal computer, a server, a mobile terminal, or a smart device, etc.) to execute the method according to the embodiment of the present disclosure, such as one or more of the steps shown in fig. 2.
Furthermore, the above-described figures are merely schematic illustrations of processes included in methods according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the disclosure is not limited to the details of construction, the arrangements of the drawings, or the manner of implementation that have been set forth herein, but on the contrary, is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
Claims (32)
1. A file sharing method is applied to a first device, and comprises the following steps:
sending a connection establishment request to a server so that the server can generate first equipment information of the first equipment according to the connection establishment request, wherein the first equipment information comprises a first equipment identifier;
receiving and displaying a first device identifier returned by the server;
receiving and opening a remote demonstration page of the online document sent by the server in the browser, wherein the remote demonstration page is a demonstration page corresponding to the online document generated after the second device logs in a target website and imports a target file;
and viewing a remote demonstration page of the online document in a webpage form on line, wherein the online document is a file sent by the server after the input information aiming at the online document and sent by the second device are successfully matched with the first device identification.
2. The method of claim 1, further comprising:
connecting with a target projection device to facilitate projection of the online document to the target projection device; and/or
And connecting with a target printing device so as to print the online document through the target printing device.
3. The method of claim 1, wherein the server comprises an online document server, and wherein the first device information comprises a first device token; receiving and opening a remote presentation page of an online document sent by the server in a browser, wherein the remote presentation page comprises:
receiving file information and a file token for the online document from the online document server, wherein the file information and the file token are transmitted by the online document server when the first device identification is successfully matched with the input information;
requesting the online document server according to the first device token, the file information and the file token to acquire document content of the online document;
and receiving and opening a remote demonstration page of the online document sent by the server in the browser.
4. The method of claim 3, wherein the server further comprises an authorization server; sending a connection establishment request to a server so that the server generates first device information of the first device according to the connection establishment request, wherein the first device information includes a first device identifier, and the method includes:
sending connection establishment to the authorization server so that the authorization server can generate first equipment information of the first equipment according to the connection establishment request, wherein the first equipment information comprises a first equipment identifier;
receiving and displaying a first device identifier returned by the server, wherein the receiving and displaying the first device identifier comprises:
receiving and displaying a first device identifier returned by the authorization server;
wherein receiving file information and a file token for the online document from the online document server, the file information and the file token being sent by the online document server when the first device identification is successfully matched with the input information, comprises:
and receiving the file information and the file token of the online document from the authorization server, wherein the file information and the file token of the online document are authorized and issued to the authorization server by the online document server when the first equipment identifier is successfully matched with the input information.
5. The method of claim 1, wherein the first device identifier is at least one of a device code and a two-dimensional code.
6. The method of claim 1, wherein the input information is determined based on the first device identification.
7. A file sharing method is applied to a second device, and comprises the following steps:
logging in a target website and importing a target file to generate an online document and a remote demonstration page corresponding to the online document;
responding to a selection instruction, and selecting the online document through a target website;
receiving input information aiming at the online document, wherein the input information is determined according to a first device identification displayed by a first device;
and sending the input information to a server, so that the server sends a remote demonstration page corresponding to the online document to the first device after successfully matching the received first device identifier sent by the first device with the input information, so that the first device receives and opens the remote demonstration page of the online document in a browser, and the remote demonstration page of the online document is viewed online in a webpage form.
8. The method of claim 7, wherein the server comprises an online document server; wherein, in response to the selection instruction, selecting the online document through the target website includes:
in response to a selection instruction, selecting the online document at the online document server through the target website;
the sending of the input information to a server so that the server sends a remote presentation page corresponding to the online document to the first device after the received first device identifier sent by the first device is successfully matched with the input information includes:
requesting authorization from the online document server according to the input information so that the online document server authorizes and issues the file information and the file token of the online document to the first device through an authorization server, and requesting a remote presentation page corresponding to the online document from the online document server by the first device according to the file information and the file token of the online document.
9. A file sharing method is applied to a server, and comprises the following steps:
responding to a connection establishment request sent by first equipment, and generating first equipment information of the first equipment, wherein the first equipment information comprises a first equipment identifier;
sending the first equipment identification to the first equipment so that the first equipment displays the first equipment identification;
acquiring input information aiming at an online document sent by second equipment;
and matching the first equipment identifier with the input information, and sending a remote demonstration page corresponding to the online document to the first equipment after the matching is successful, so that the remote demonstration page of the online document is received and opened in a browser at the first equipment, and the remote demonstration page of the online document is viewed online in a webpage form, wherein the online document and the demonstration page corresponding to the online document are obtained after the second equipment logs in a target website and imports a target file.
10. The method of claim 9, further comprising:
responding to a login request sent by the second equipment aiming at a target website, and acquiring target user information;
responding to a file acquisition request sent by the second equipment, and determining an online document;
and generating a file token of the online document according to the online document identifier of the online document, the file authority information and the target user information.
11. The method of claim 9, further comprising:
and if the first equipment identification is successfully matched with the input information, the first equipment identification is invalid, so that the situation that a plurality of equipment are connected with the second equipment at the same time to display the online document is avoided.
12. The method of claim 9, further comprising:
if the first equipment identification is successfully matched with the input information, keeping the first equipment identification valid, so that a plurality of equipment are simultaneously connected with the second equipment to display the online document.
13. The method of claim 9, further comprising:
in response to a file close request of the first device for the online document, disconnecting a target connection with the first device;
and searching a first device token corresponding to the target connection, and invalidating the first device token.
14. The method of claim 9, wherein the server comprises an authorization server and an online document server, and wherein the first device information further comprises a first device token;
generating first device information of a first device in response to a connection establishment request sent by the first device, wherein the first device information comprises a first device identifier; sending the first device identifier to the first device so that the first device displays the first device identifier, including:
the authorization server responds to a connection establishment request sent by first equipment and generates first equipment information of the first equipment; sending the first equipment identification to the first equipment and the online document server so that the first equipment can display the first equipment identification; saving the relationship between the first device identification and the first device token;
the acquiring of the input information for the online document sent by the second device includes:
the online document server receives input information aiming at an online document, which is sent by the second equipment, wherein the input information is determined according to the first equipment identification;
matching the first device identifier with the input information, and sending a remote presentation page corresponding to the online document to the first device after the matching is successful, wherein the method comprises the following steps:
the online document server matches the first equipment identifier with the input information, and issues the first equipment identifier, the file information of the online document and the file token to an authorization server after the matching is successful so as to authorize the authorization server to send the file information of the online document and the file token to the first equipment;
and the online document server receives a request for online viewing of an online document sent by the first device, the request carries file information and a file token of the online document, and after the file information and the file token are successfully verified, the online document server sends a remote demonstration page corresponding to the online document to the first device.
15. The method of claim 14, wherein authorizing the authorization server to send the file information and the file token of the online document to the first device comprises:
the authorization server receives file information, a file token and the first equipment identification of the online document sent by the online document server;
the authorization server searches a first device token of the first device according to the first device identification;
and the authorization server issues the file information and the file token of the online document to the first device according to the first device token, so that the first device sends a request for viewing the online document online to the online document server according to the file information and the file token of the online document.
16. A file sharing apparatus applied to a first device, the apparatus comprising:
the connection establishing module is configured to send a connection establishing request to a server so that the server can generate first device information of the first device according to the connection establishing request, wherein the first device information comprises a first device identifier;
the device identifier receiving module is configured to receive and display a first device identifier returned by the server;
the display module is configured to receive and open a remote presentation page of the online document sent by the server in the browser, wherein the remote presentation page is a presentation page corresponding to the online document generated after the second device logs in a target website and imports a target file; and viewing a remote demonstration page of the online document in a webpage form on line, wherein the online document is a file sent by the server after the input information aiming at the online document and sent by the second device are successfully matched with the first device identification.
17. The apparatus according to claim 16, wherein the file sharing apparatus further comprises:
a projection display module configured to interface with a target projection device to facilitate projecting the online document to the target projection device;
a print module configured to interface with a target printing device to facilitate printing of the online document by the target printing device.
18. The apparatus of claim 16, wherein the server comprises an online document server, and wherein the first device information comprises a first device token;
wherein the display module is further configured to receive file information and a file token for the online document from the online document server, wherein the file information and the file token are transmitted by the online document server when the first device identification matches the input information successfully; requesting the online document server according to the first device token, the file information and the file token to acquire document content of the online document; and receiving and opening a remote demonstration page of the online document sent by the server in the browser.
19. The apparatus of claim 17, wherein the server further comprises an authorization server; the connection establishing module is further configured to send connection establishment to the authorization server, so that the authorization server generates first device information of the first device according to the connection establishing request, wherein the first device information includes a first device identifier; the device identifier receiving module is further configured to receive and display a first device identifier returned by the authorization server; the display module is further configured to receive file information and a file token of the online document from the authorization server, and the file information and the file token of the online document are authorized by the online document server to be issued to the authorization server when the first device identifier is successfully matched with the input information.
20. The apparatus of claim 16, wherein the first device identifier is at least one of a device code and a two-dimensional code.
21. The apparatus of claim 16, wherein the input information is determined according to the first device identification.
22. A file sharing apparatus, wherein the file sharing apparatus is applied to a second device, the file sharing apparatus comprises:
the selected information module is configured to log in a target website and import a target file to generate an online document and a remote demonstration page corresponding to the online document; in response to a selection instruction, selecting the online document at the online document server through the target website;
the input information acquisition module is configured to receive input information aiming at the online document, and the input information is determined according to a first device identification displayed by a first device;
and the uploading module is configured to send the input information to a server, so that the server sends a remote demonstration page corresponding to the online document to the first device after the received first device identifier sent by the first device is successfully matched with the input information, so that the first device receives and opens the remote demonstration page of the online document in a browser, and the remote demonstration page of the online document is viewed online in a webpage form.
23. The apparatus of claim 22, wherein the server comprises an online document server; wherein the selection information module is further configured to select the online document at the online document server through the target website in response to a selection instruction; the uploading module is further configured to request authorization from the online document server according to the input information, so that the online document server authorizes the first device to issue the file information and the file token of the online document through an authorization server, and the first device requests the remote presentation page corresponding to the online document from the online document server according to the file information and the file token of the online document.
24. A file sharing apparatus applied to a server, the file sharing apparatus comprising:
a first device information generating module configured to generate first device information of a first device in response to a connection establishment request sent by the first device, where the first device information includes a first device identifier;
a first device information sending module configured to send the first device identifier to the first device, so that the first device displays the first device identifier;
the input information acquisition module is configured to acquire input information aiming at the online document sent by the second equipment;
and the target file sending module is configured to match the first device identifier with the input information, and send a remote presentation page corresponding to the online document to the first device after the matching is successful, so that the remote presentation page of the online document is received and opened in a browser by the first device, and the remote presentation page of the online document is viewed online in a webpage form, and the online document and the presentation page corresponding to the online document are obtained after a second device logs in a target website and imports a target file.
25. The apparatus according to claim 24, wherein the file sharing apparatus is further configured to obtain target user information in response to a login request sent by the second device for a target website; responding to a file acquisition request sent by the second equipment, and determining an online document; and generating a file token of the online document according to the online document identifier of the online document, the file authority information and the target user information.
26. The apparatus of claim 24, wherein the file sharing apparatus is further configured to: and if the first equipment identification is successfully matched with the input information, the first equipment identification is invalid, so that the situation that a plurality of equipment are connected with the second equipment at the same time to display the online document is avoided.
27. The apparatus of claim 24, wherein the file sharing apparatus is further configured to: if the first equipment identification is successfully matched with the input information, keeping the first equipment identification valid, so that a plurality of equipment are simultaneously connected with the second equipment to display the online document.
28. The apparatus of claim 24, wherein the file sharing apparatus is further configured to: in response to a file close request of the first device for the online document, disconnecting a target connection with the first device; and searching a first device token corresponding to the target connection, and invalidating the first device token.
29. The apparatus of claim 24, wherein the server comprises an authorization server and an online document server, and wherein the first device information further comprises a first device token;
the first device information generating module is configured to generate first device information of a first device in response to a connection establishment request sent by the first device through the authorization server;
the first device information sending module is configured to respond to a connection establishment request sent by a first device through the authorization server and generate first device information of the first device; sending the first equipment identification to the first equipment and the online document server so that the first equipment can display the first equipment identification; saving the relationship between the first device identification and the first device token;
the input information acquisition module is further configured to receive, by the online document server, input information for an online document sent by the second device, where the input information is determined according to the first device identifier;
the target file sending module is further configured to match the first device identifier with the input information through the online document server, and issue the first device identifier, the file information of the online document and the file token to an authorization server after the matching is successful, so as to authorize the authorization server to send the file information and the file token of the online document to the first device; and the online document server receives a request for online viewing of an online document sent by the first device, the request carries file information and a file token of the online document, and after the file information and the file token are successfully verified, the online document server sends a remote demonstration page corresponding to the online document to the first device.
30. The apparatus of claim 29, wherein the object file sending module is further configured to: receiving, by the authorization server, file information, a file token, and the first device identifier of the online document sent by the online document server; searching, by the authorization server, a first device token of the first device according to the first device identifier; and issuing the file information and the file token of the online document to the first equipment through the authorization server according to the first equipment token so that the first equipment sends a request for viewing the online document online to the online document server according to the file information and the file token of the online document.
31. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6, 7-8, and 9-15.
32. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-6, 7-8, and 9-15.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911007170.1A CN111182021B (en) | 2019-10-22 | 2019-10-22 | File sharing method and device, electronic equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911007170.1A CN111182021B (en) | 2019-10-22 | 2019-10-22 | File sharing method and device, electronic equipment and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111182021A CN111182021A (en) | 2020-05-19 |
CN111182021B true CN111182021B (en) | 2022-04-12 |
Family
ID=70621446
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911007170.1A Active CN111182021B (en) | 2019-10-22 | 2019-10-22 | File sharing method and device, electronic equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111182021B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111679881B (en) * | 2020-06-09 | 2022-03-15 | 腾讯科技(深圳)有限公司 | File processing method and device, computer equipment and storage medium |
CN112491976A (en) * | 2020-11-11 | 2021-03-12 | 京东数字科技控股股份有限公司 | File transmission method, device, server and storage medium |
CN113467657A (en) * | 2021-06-30 | 2021-10-01 | 深圳集智数字科技有限公司 | File display method and device, electronic equipment and computer readable storage medium |
CN114942912B (en) * | 2022-07-25 | 2022-12-23 | 天津联想协同科技有限公司 | Network disk file collection method and device, network disk and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106383673A (en) * | 2016-08-31 | 2017-02-08 | 安徽天斯努信息技术股份有限公司 | Self-service printing method, device and equipment |
CN108228117A (en) * | 2018-01-03 | 2018-06-29 | 内蒙古昇顺网络科技有限责任公司 | A kind of shared Print and method |
CN109525666A (en) * | 2018-11-16 | 2019-03-26 | 维沃移动通信有限公司 | A kind of data back up method and mobile terminal |
CN110275682A (en) * | 2018-03-15 | 2019-09-24 | 阿里巴巴集团控股有限公司 | Cloud Method of printing, apparatus and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106713291A (en) * | 2016-12-12 | 2017-05-24 | 广东中信通网络工程有限公司 | Multi-screen interaction method, communication terminal and server |
-
2019
- 2019-10-22 CN CN201911007170.1A patent/CN111182021B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106383673A (en) * | 2016-08-31 | 2017-02-08 | 安徽天斯努信息技术股份有限公司 | Self-service printing method, device and equipment |
CN108228117A (en) * | 2018-01-03 | 2018-06-29 | 内蒙古昇顺网络科技有限责任公司 | A kind of shared Print and method |
CN110275682A (en) * | 2018-03-15 | 2019-09-24 | 阿里巴巴集团控股有限公司 | Cloud Method of printing, apparatus and system |
CN109525666A (en) * | 2018-11-16 | 2019-03-26 | 维沃移动通信有限公司 | A kind of data back up method and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN111182021A (en) | 2020-05-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111182021B (en) | File sharing method and device, electronic equipment and computer readable storage medium | |
US9419969B2 (en) | Method and system for granting access to a secured website | |
US9525684B1 (en) | Device-specific tokens for authentication | |
CN108632253B (en) | Client data security access method and device based on mobile terminal | |
US8539231B1 (en) | Encryption key management | |
US10356079B2 (en) | System and method for a single sign on connection in a zero-knowledge vault architecture | |
WO2018113690A1 (en) | Login authorisation method and apparatus, and login method and apparatus | |
US20140082703A1 (en) | Authorization method, apparatus, and system | |
EP3386167B1 (en) | Cloud operation interface sharing method, related device and system | |
CN112039826B (en) | Login method and device applied to applet end, electronic equipment and readable medium | |
US10637805B2 (en) | Instant messaging method, server, and storage medium | |
US20060026692A1 (en) | Network resource access authentication apparatus and method | |
US11611551B2 (en) | Authenticate a first device based on a push message to a second device | |
US20140344910A1 (en) | System and method for single-sign-on in virtual desktop infrastructure environment | |
US8848922B1 (en) | Distributed encryption key management | |
US20220255914A1 (en) | Identity information linking | |
CN111177735A (en) | Identity authentication method, device, system and equipment and storage medium | |
CN114417344A (en) | Resource security integration platform | |
CN113204759A (en) | Identity authentication method and device, electronic equipment and storage medium | |
CN111600900B (en) | Single sign-on method, server and system based on block chain | |
CN113553302A (en) | Credit report acquisition method, system, equipment and storage medium | |
JP2016051329A (en) | Content management apparatus and control method thereof | |
CN112118238A (en) | Method, device, system, equipment and storage medium for authentication login | |
JP7079528B2 (en) | Service provision system and service provision method | |
KR102439776B1 (en) | System and method for remote control, and client for executing the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |