WO2021077939A1 - 文件共享系统、方法、电子设备和存储介质 - Google Patents

文件共享系统、方法、电子设备和存储介质 Download PDF

Info

Publication number
WO2021077939A1
WO2021077939A1 PCT/CN2020/114852 CN2020114852W WO2021077939A1 WO 2021077939 A1 WO2021077939 A1 WO 2021077939A1 CN 2020114852 W CN2020114852 W CN 2020114852W WO 2021077939 A1 WO2021077939 A1 WO 2021077939A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
sharing
shared
download
web
Prior art date
Application number
PCT/CN2020/114852
Other languages
English (en)
French (fr)
Inventor
张宁
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2021077939A1 publication Critical patent/WO2021077939A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms

Definitions

  • the embodiments of the present application relate to the field of communications, and in particular, to a file sharing system, method, electronic device, and storage medium.
  • PC Personal Computer
  • CIFS Common Internet File System
  • NFS Network File System
  • Samba Server Messages Block
  • common file transfers also include disk redirection, folder redirection, and so on.
  • the above-mentioned user settings files and folders are generally shared with the help of cloud desktop access software, but the implementation scheme is still to use the file or folder sharing service of the Windows system or the Linux system, for example: on the Linux system virtual machine Mount the shared files or folders on the Windows system virtual machine through the mount command, or mount the files or folders shared by Samba on the Linux system virtual machine by adding a network disk on the Windows system virtual machine.
  • the purpose of the embodiments of the present application is to provide a file sharing system, method, electronic device, and storage medium.
  • the implementation of this application provides a file sharing system, including: a file selection module and a sharing control module set at the sharing source end, and a sharing display module and a file download module set at the sharing destination end, file selection
  • the module is used for users to select files to be shared.
  • the sharing control module is used to publish the files to be shared as web shared files and send file sharing notifications to the sharing display module.
  • the sharing display module is used to send out the file sharing notification after receiving the file sharing notification.
  • File sharing prompt the file download module is used to download and store the web shared file when receiving the download command of the web shared file.
  • the implementation of this application also provides a file sharing method, including: providing a file selection interface for users to select files to be shared, publishing the files to be shared as web shared files, and sending them to the pre-acquired sharing target.
  • File sharing notification for the sharing target to send a file sharing prompt after receiving the file sharing notification, and download and store the web shared file when it receives the download command of the web shared file.
  • the embodiment of the present application also provides an electronic device, including: at least one processor, and a memory communicatively connected with the at least one processor.
  • the memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor, so that the at least one processor can execute the aforementioned file sharing method.
  • the embodiment of the present application also provides a computer-readable storage medium storing a computer program, and the computer program is executed by a processor to realize the above-mentioned file sharing method.
  • FIG. 1 is a schematic diagram of the structure of a file sharing system in the first embodiment of the present application
  • FIG. 2 is a schematic diagram of the structure of the shared source end or the shared target end in the first embodiment of the present application
  • FIG. 3 is a schematic diagram of the structure of the file sharing system in the second embodiment of the present application.
  • FIG. 4 is a schematic diagram of the structure of the file sharing system in the third embodiment of the present application.
  • FIG. 5 is a flowchart of a file sharing method in the fourth embodiment of the present application.
  • FIG. 6 is a flowchart of a file sharing method in the fifth embodiment of the present application.
  • FIG. 7 is a flowchart of a file sharing method in the sixth embodiment of the present application.
  • FIG. 8 is a schematic diagram of the structure of the electronic device in the seventh embodiment of the present application.
  • the first embodiment of the present application relates to a file sharing system.
  • the file selection module is used for the user to select the file to be shared
  • the sharing control module is used to publish the file to be shared as a Web shared file, and send a file sharing notification to the sharing display module
  • the sharing display module is used to After receiving the file sharing notification, a file sharing prompt is issued
  • the file download module is used for downloading and storing the web sharing file when a download command of the web sharing file is received.
  • a file sharing system in this embodiment specifically includes: a file selection module 101 and a sharing control module 102 set at the sharing source end, and a sharing display module 103 and a file download module 104 set at the sharing destination end.
  • the shared source end and the shared target end may both be a client machine in a cloud desktop or a virtual machine in a cloud desktop.
  • This embodiment can implement various scenarios such as between the client in the cloud desktop and the virtual machine in the cloud desktop, the client in the cloud desktop and the client in the cloud desktop, or the virtual machine in the cloud desktop and the virtual machine in the cloud desktop.
  • File sharing For example: suppose that virtual machine A shares files with client B, then virtual machine A can be used as the source of sharing, and client B can be used as the target of sharing.
  • FIG. 1 The specific structure diagram of a file sharing system in this embodiment is shown in FIG. 1.
  • the file selection module 101 is used for the user to select a file to be shared.
  • the file selection module 101 is integrated in the right-click menu of the operating system. The user clicks the right mouse button on the selected file, and directly selects the "Share" item in the pop-up right-click menu to trigger file sharing Actions. Then, the file selection module 101 notifies the sharing control module 102 of the file to be shared selected by the user. It should be noted that the user selected in this embodiment is a shared file, which can be a single file or can be understood as a folder, as long as it needs to be shared.
  • the setting file selection module 101 can be triggered by the user dragging a file or folder. For example: the user selects a file and drags the selected file to a certain area of the desktop by holding down the left mouse button to complete the shared file selection action. Then, the file selection module 101 notifies the sharing control module 102 of the file to be shared selected by the user.
  • the presentation form of the file selection module 101 can be more flexible and diverse, and the above two examples are only examples of the implementation of the module. On the premise of having the function of this module, considering the actual application scenario, the presentation or triggering mode of the action of the module can exist in a single, or coexist in multiple forms.
  • the sharing control module 102 is configured to publish the file to be shared as a Web shared file, and send a file sharing notification to the sharing display module 103.
  • the sharing control module 102 publishes the file to be shared as a World Wide Web (Web for short) shared file .
  • the sharing control module 102 publishes the file to be shared as a list of files accessible through Hypertext Transfer Protocol (HyperText Transport Protocol, HTTP for short) or Hypertext Transfer Protocol Secure (HTTPS for short) for download , It is not limited here.
  • the sharing control module 102 will send a file sharing notification to the sharing display module 103.
  • the method of sending the file sharing notification can be through Transmission Control Protocol (TCP) or User Datagram Protocol (UDP). Send file sharing notifications, or transfer file sharing notifications through the control center. Therefore, the shared control module 102 is equivalent to a micro Web server with simple functions.
  • the sharing display module 103 is configured to issue a file sharing prompt after receiving the file sharing notification.
  • the sharing display module 103 After the sharing display module 103 receives the file sharing notification sent by the sharing control module 102, it sends a file sharing prompt to remind the user that the downloaded Web shared file can be accessed. Then the user sees the sharing prompt , You can select the web shared file you want to download.
  • the file download module 104 is configured to download and store the Web shared file when a download command of the Web shared file is received.
  • the shared display module 103 will generate The download command corresponding to the Web shared file selected by the user to download.
  • the file download module 104 receives the download command, it starts to download and store the selected Web shared file. If the file download module 104 does not receive the download command, it will not download.
  • the module can notify the user of the reason why the download cannot be made through the shared display module 103.
  • the notification method can be a pop-up window, etc., which is not limited here.
  • the user selects the file to be shared through the file selection module 101.
  • the file selection module 101 will read the attribute information of the file selected by the user, such as name, path, file type, size, etc. Make a limit.
  • the file selection module 101 sends the read file attribute information to the sharing control module 102.
  • the sending method may be through an application programming interface (Application Programming Interface, API for short) or other methods, which are not limited here.
  • the sharing control module 102 obtains the file to be shared and the attribute information of the file to be shared, it will publish it as a Web shared file according to the attribute information of the file to be shared.
  • the sharing control module 102 will send a file sharing notification to the sharing display module 103, informing the sharing display module 103 of the relevant information of the successful Web shared file, such as: file name, size, type, computer name or Internet protocol address (Internet protocol address). Protocol Address, IP for short), etc., are not limited here.
  • the sharing display module 103 after receiving the file sharing notification, the module will send a file sharing prompt to remind the user that a new downloadable Web sharing file is generated.
  • the prompt form can be bubble window, sound, etc., which is not limited here.
  • the shared display module 103 can also display the type, name, size, source computer name or IP of the shared file in detail, that is, the shared display module 103 can display for users in addition to the function of issuing file sharing prompts. Other information makes the displayed content more comprehensive, so that users can view and choose to download. Then, the user selects the file to be downloaded according to the prompt of the sharing display module 103, and at this time, the download action of the file download module 104 is triggered, that is, the download of the Web shared file selected by the user is started.
  • the shared source end or the shared target end may include a file selection module 101, a sharing control module 102, a sharing display module 103, and a file downloading module 104.
  • the user can select the file to be shared through the file selection module 101, and the sharing control module 102 publishes the file to be shared selected by the user as a Web shared file for the user to access and download.
  • the sharing display module 103 receives the file sharing notification sent by the sharing control module 102, it sends a file sharing prompt so that the user knows that there are currently available downloadable shared files, so the user starts to select the web shared file that he wants to download.
  • the system Select to generate a Web file download command and send it to the file download module 104, and then the file download module 104 starts downloading and stores the downloaded Web shared file.
  • the modules of the shared source end and the shared target end are matched with each other, making the process of file sharing easier and faster. For file sharing between the shared source and the shared target of different operating systems, this embodiment greatly improves the degree of simplicity and speed.
  • modules involved in this embodiment are all logical modules.
  • a logical unit can be a physical unit, a part of a physical unit, or multiple physical units. The combination of units is realized.
  • this embodiment does not introduce units that are not closely related to solving the technical problems proposed by this application, but this does not mean that there are no other units in this embodiment.
  • the second embodiment of the present application relates to a file sharing system.
  • the second embodiment is roughly the same as the first embodiment.
  • the main difference is that: in this embodiment, the file sharing system also includes a timing module set at the sharing source.
  • the timing module is used to record the publishing duration of Web shared files, and After the publishing time of the Web shared file reaches the preset sharing time, the sharing control module is notified to prohibit the sharing of the Web shared file.
  • FIG. 3 A schematic diagram of the structure of a file sharing system in this embodiment is shown in FIG. 3, which specifically includes: a file selection module 301, a sharing control module 302, a timing module 303, and a sharing display module 304 set on the sharing source end. , File download module 305.
  • the file selection module 301, the sharing control module 302, the sharing display module 304, and the file download module 305 are similar to the file selection module 101, the sharing control module 102, the sharing display module 103, and the file download module 104, respectively, and will not be repeated here.
  • the timing module 303 is used to record the publishing duration of the Web shared file, and after the publishing duration of the Web shared file reaches the preset sharing duration, notify the sharing control module 302 to prohibit sharing of the Web shared file.
  • the timing module 303 cooperates with the sharing control module 302 to record the publishing duration of the Web shared file. Assuming that the preset sharing duration is 1 hour, and the timing module 303 starts to record the publishing duration of the Web shared file, the sharing control module 302 can be set to allow the sharing target to access and download the published Web shared file within this hour. When the timing module 303 records that the publishing time reaches 1 hour, the module will notify the sharing control module 302 to prohibit sharing of published Web shared files.
  • the way of prohibiting sharing can be that the sharing control module 302 automatically cancels the published Web shared file, or prohibits access to the published Web shared file, which is not limited here.
  • the file sharing system further includes a timing module 303, which controls the sharing target terminal to obtain the shared file within a preset time period by setting the release time, so that the present embodiment ensures a simpler and faster file sharing process. On this basis, enhance the security of file sharing.
  • the third embodiment of the present application relates to a file sharing system.
  • the third embodiment is roughly the same as the first embodiment, and the main difference is that: in this embodiment, the file download module is specifically configured to send a download request carrying the identity information of the sharing target to the sharing source.
  • the file sharing system in this embodiment further includes an authentication module provided at the sharing source end, which is used to authenticate the identity information and allow the file download module to download the Web shared file after the authentication is passed.
  • FIG. 3 A schematic diagram of the structure of a file sharing system in this embodiment is shown in FIG. 3, which specifically includes: a file selection module 401, a sharing control module 402, an authentication module 403 set at the sharing source end, and a sharing display module set at the sharing destination end 404.
  • the file selection module 301, the sharing control module 402, and the sharing display module 404 are respectively similar to the file selection module 401, the sharing control module 102, and the sharing display module 103, and will not be repeated here.
  • the file download module 405 is specifically configured to send a download request carrying the identity information of the sharing target to the sharing source.
  • the authentication module 403 is used to authenticate the identity information and allow the file download module 405 to download the Web shared file after the authentication is passed.
  • the file download module 405 when the file download module 405 receives the download command of the Web shared file, it sends a download request carrying the identity information of the shared target to the sharing source.
  • the sharing control module 402 in the sharing source terminal receives the download request, if it finds that there is identity information in the download request, it will send the identity information to the authentication module 403 to verify the identity information carried in the download request.
  • the authentication module 403 After the authentication module 403 confirms that the sharing target terminal has the download authority, it sends a download permission response corresponding to the download request to the sharing target terminal to allow the file download module 405 to download the published Web shared file from the sharing control module 402. For example, the authentication module 403 verifies the token parameters carried in the download request.
  • the sharing source terminal After the token parameters are verified, the sharing source terminal returns a response allowing the download to the sharing target terminal, and notifies the sharing control module 402 of the sharing target corresponding to the download request.
  • the terminal provides access to downloadable Web shared files. If the token parameter carried in the download request does not pass the authentication, the authentication module 403 may notify the sharing control module 402 to stop providing the downloadable Web shared file for the shared target corresponding to the token parameter. In addition, the authentication module 403 can also reply to the reason why the file download module 405 cannot download.
  • the file sharing system is further provided with an authentication module 403, which authenticates the identity information of the sharing target, and allows the file download module 405 to download the Web shared file after the authentication is passed.
  • an authentication module 403 which authenticates the identity information of the sharing target, and allows the file download module 405 to download the Web shared file after the authentication is passed.
  • the timing module 303 and the authentication module 403 belong to one of the extended function modules.
  • any extended function modules can be added as needed, such as: custom configuration module, network speed limit module, IP Access control function module, breakpoint resume function module and other modules among one or more modules.
  • the custom configuration module can be used for the user to customize some parameters that the module depends on when it is running, such as: the port used when the file is shared, whether the file to be shared is encrypted, file selection method, interface skin, etc., not here limited.
  • the network speed limit module can be used to limit the direction of file transmission, the upstream rate, and the downstream rate.
  • the IP access control function module can be used to cooperate to restrict the addresses that can access Web shared files.
  • the breakpoint resume function module can be used to control the progress control of the file download, so that when the user encounters an abnormal termination of the download or the download is suspended during the process of downloading the shared file, click again to continue downloading the shared file from the last terminated location. There is no need to download the selected shared files in full again.
  • the fourth embodiment of the present application relates to a file sharing method.
  • the sharing source provides a file selection interface. After the user selects the file to be shared through the file selection interface, the sharing source publishes the file to be shared as a Web shared file.
  • the sharing source will also send a file sharing notification to the pre-acquired sharing target, so that the sharing target will issue a file sharing prompt after receiving the file sharing notification, and download and store the Web when it receives the download command of the Web shared file. shared documents.
  • the implementation details of a file sharing method of this embodiment will be described in detail below. The following content is only provided for ease of understanding and is not necessary for the implementation of this solution.
  • a file sharing method in this embodiment is applied to an electronic device, and the electronic device may be a virtual machine in a cloud desktop or a client in a cloud desktop.
  • the same electronic device can be used as a shared source or a shared target.
  • the specific flowchart of a file sharing method in this embodiment is shown in FIG. 5, including:
  • Step 501 Provide a file selection interface.
  • a file selection interface is provided for the user to select the file to be shared.
  • the file selection interface includes options for the user to select the sharing destination.
  • Step 502 Publish the file to be shared as a Web shared file, and send a file sharing notification to the pre-acquired sharing target.
  • the file to be shared selected by the user is published as a Web shared file, and a file sharing notification is sent to the pre-acquired sharing target for the sharing target to receive the file sharing notification.
  • a file sharing prompt is issued, and when a download command of the web shared file is received, the web shared file is downloaded and stored.
  • the shared target can be obtained in advance.
  • there are 3 electronic devices A, B, and C in the shared file system as the shared target named as shared target A, shared target B, and shared target End C.
  • There is also an electronic device D in the shared file system as the shared source terminal named as the shared source terminal D, in which there are 3 files a, b, and c to be shared, and the shared target terminal of the file a to be shared can be A,
  • the files to be shared b and c are the same, that is, one file to be shared can be shared to multiple sharing destinations.
  • the shared target A, B, C may also be shared one or more files.
  • the shared destination of the shared file a is A.
  • the user selects the file a to be shared through the file selection interface provided by the sharing source D, then publishes the file a to be shared as a Web shared file, and sends a file sharing notification to the sharing destination A.
  • the sharing target A will send a file sharing reminder about the shared file a after receiving the file sharing notification. If the user chooses to download the shared file a according to the file sharing prompt, the sharing target terminal A will receive the download command of the web file sharing, that is, the download command of the shared file a, and the sharing target terminal A will start to download the shared file a and store it.
  • the user can also choose not to download the shared file a after obtaining the file sharing prompt.
  • the sharing target terminal A will not receive the download command for Web file sharing.
  • the process is similar to the foregoing process, and will not be repeated here.
  • shared target terminals B and C so I won't repeat them here.
  • the electronic device D serves as the shared source, but in practical applications, the electronic device D can also be used as the shared target, that is, the same device can be used as the shared source or shared At the target end, at this time, the action performed by the electronic device D is similar to the shared target end A described above, and will not be repeated here.
  • the electronic device provides a file selection interface when serving as the sharing source. After the user selects the file to be shared through the file selection interface, the electronic device publishes the file to be shared as a Web shared file for the user to access and download.
  • the electronic device serving as the sharing source terminal also sends a file sharing notification to the pre-acquired electronic device serving as the sharing target terminal, so that it sends a file sharing prompt after receiving the file sharing notification, so that the user knows that there are currently downloadable shared files.
  • the electronic device as the sharing target terminal receives the download command of the Web shared file, it downloads and stores the Web shared file.
  • This embodiment implements a simpler and faster file sharing process. For file sharing between the shared source and the shared target of different operating systems, this embodiment greatly improves the degree of simplicity and speed.
  • this embodiment is a method example corresponding to the first embodiment, and this embodiment can be implemented in cooperation with the first embodiment.
  • the related technical details mentioned in the first embodiment are still valid in this embodiment, and in order to reduce repetition, they will not be repeated here.
  • the related technical details mentioned in this embodiment can also be applied in the first embodiment.
  • the fifth embodiment of the present application relates to a file sharing method.
  • the fifth embodiment is roughly the same as the fourth embodiment.
  • the main difference is: in this embodiment, the electronic device as the sharing source is publishing the file to be shared as a Web shared file, and pre-fetched as the sharing target After sending the file sharing notification, the electronic device at the end will also record the publishing duration of the Web shared file, and after the publishing duration of the Web shared file reaches the preset sharing duration, the sharing of the Web shared file is prohibited.
  • FIG. 6 The specific flowchart of a file sharing method in this embodiment is shown in Fig. 6, including:
  • Step 601 Provide a file selection interface. It is similar to step 501 and will not be repeated here.
  • Step 602 Publish the file to be shared as a Web shared file, and send a file sharing notification to the pre-acquired sharing target. It is similar to step 502 and will not be repeated here.
  • Step 603 Record the publishing duration of the Web shared file, and prohibit the sharing of the Web shared file after the publishing duration of the Web shared file reaches the preset sharing duration.
  • the preset sharing duration is 1 hour
  • the electronic device serving as the sharing source sends a file sharing notification to the pre-acquired electronic device serving as the sharing destination, and then starts recording the publishing duration of the web shared file
  • you can It is set to allow access to download published Web shared files within this hour.
  • the electronic device serving as the source of sharing records to the publication time of 1 hour, it will prohibit sharing of the published Web shared files.
  • the way of prohibiting sharing can be automatically canceling published Web shared files, or prohibiting access to downloading published Web shared files, which is not limited here.
  • this embodiment controls the sharing target terminal to obtain the shared file within a preset time period by setting the release duration, thereby enhancing the security of file sharing.
  • the sixth embodiment of the present application relates to a file sharing method.
  • the sixth embodiment is roughly the same as the fourth embodiment.
  • the main difference is that: in this embodiment, the shared source as the shared source publishes the file to be shared as a Web shared file, and pre-fetched it as the shared target After the electronic device at the end sends the file sharing notification, when it receives the download request of the Web shared file, it authenticates the download requester’s identity information carried in the download request, and allows the download requester to download the Web shared file after the authentication is passed. .
  • FIG. 7 The specific flowchart of a file sharing method in this embodiment is shown in FIG. 7, including:
  • Step 701 Provide a file selection interface. It is similar to step 501 and will not be repeated here.
  • Step 702 Publish the file to be shared as a Web shared file, and send a file sharing notification to the pre-acquired sharing target. It is similar to step 502 and will not be repeated here.
  • Step 703 When a download request of the Web shared file is received, the identity information of the download requester carried in the download request is authenticated, and after the authentication is passed, the download requester is allowed to download the Web shared file.
  • the electronic device serving as the sharing target when receiving a download command of a Web shared file, sends a download request carrying the identity information of the sharing target to the electronic device serving as the sharing source.
  • the electronic device serving as the sharing source terminal After receiving the download request, the electronic device serving as the sharing source terminal verifies the identity information carried in the download request, and confirms that the sharing target terminal has the download authority, before allowing the sharing target terminal to download the published Web shared file. For example, the token parameter carried in the download request is verified, and after passing, the shared target terminal corresponding to the download request is provided with accessible and downloadable Web shared files. If the identity information carried in the download request fails the authentication, the sharing source terminal stops providing the shared target terminal corresponding to the identity information with accessible and downloadable Web shared files.
  • this embodiment after the electronic device serving as the sharing source publishes the file to be shared as a Web shared file, and sending a file sharing notification to the pre-acquired electronic device serving as the sharing target, when a download request for the Web shared file is received, the identity information of the download requester carried in the download request is authenticated. Only after the authentication is passed, the download requester is allowed to download the Web shared file, and the download requester who has not passed the authentication cannot download the Web shared file. On the basis of ensuring that the file sharing process is simpler and faster, this embodiment can ensure that the sharing target has the authority to obtain the Web shared file, and enhance the security of file sharing.
  • the seventh embodiment of the present application relates to an electronic device, as shown in FIG. 8, including at least one processor 801; and,
  • a memory 802 that is communicatively connected to at least one processor; wherein the memory 802 stores instructions that can be executed by at least one processor 801, and the instructions are executed by at least one processor 801, so that at least one processor 801 can execute the above-mentioned cancellation signal The method of generation.
  • the electronic device is a client in a cloud desktop or a virtual machine in a cloud desktop.
  • the client can be a mobile phone, a tablet computer, a personal desktop computer, etc.
  • the virtual machine can be a server, which is not limited here.
  • the memory 802 and the processor 801 are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects one or more various circuits of the processor 801 and the memory 802 together.
  • the bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits, etc., which are all known in the art, and therefore, no further description will be given herein.
  • the bus interface provides an interface between the bus and the transceiver.
  • the transceiver may be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on the transmission medium.
  • the data processed by the processor 801 is transmitted on the wireless medium through the antenna, and further, the antenna also receives the data and transmits the data to the processor 801.
  • the processor 801 is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions.
  • the memory 802 may be used to store data used by the processor 801 when performing operations.
  • the eighth embodiment of the present application relates to a computer-readable storage medium storing a computer program.
  • the computer program is executed by the processor, the above method embodiment is realized.
  • the program is stored in a storage medium and includes several instructions to enable a device ( It may be a single-chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes. .
  • the sharing control module publishes the file to be shared selected by the user as a Web shared file, and sends a file sharing notification to the sharing display module of the sharing target end, so that the user can access and download.
  • the sharing display module receives the file sharing notification sent by the sharing control module of the sharing source, it sends out a file sharing prompt to prompt that there are currently downloadable files; thus, the file sharing process is simple and quick; and, because the web service has no restrictions on the operating system , Which greatly simplifies the operation process of file sharing across operating systems in some situations.

Landscapes

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

Abstract

本申请实施例涉及通信领域,公开了一种文件共享系统、方法、电子设备以及存储介质。本申请中,一种文件共享系统包括:设置在共享源端的文件选取模块、共享控制模块,以及设置在共享目标端的共享展示模块、文件下载模块。文件选取模块用于供用户选择待共享的文件,共享控制模块用于将待共享的文件发布为Web共享文件,并向共享展示模块发送文件共享通知,共享展示模块用于在接收到文件共享通知后发出文件共享提示,文件下载模块用于在接收到Web共享文件的下载命令时,下载并存储Web共享文件。

Description

文件共享系统、方法、电子设备和存储介质
相关申请的交叉引用
本申请基于申请号为201911015768.5、申请日为2019年10月24日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以引入方式并入本申请。
技术领域
本申请实施例涉及通信领域,特别涉及一种文件共享系统、方法、电子设备和存储介质。
背景技术
传统个人计算机(Personal Computer,简称PC)使用场景下,如果用户在Windows系统计算机之间传输文件,则通过通用网络文件系统(Common Internet File System,简称CIFS)协议完成文件及文件夹共享。如果用户在Linux系统计算机之间传输文件,则通过网络文件系统(Network File System,简称NFS)协议完成文件及文件夹共享。如果用户在Windows系统计算机与Linux系统计算机之间传输文件,则通过信息服务块(Server Messages Block,简称Samba)完成文件及文件夹分享,或者在PC上通过文件传输协议服务中转文件。在这种场景下,用户分享文件一般需要一系列的设置操作过程,包括设置共享文件或者文件夹,输入用户名、密码鉴权等操作。在云桌面虚拟机使用场景下,常见的文件传输也包括磁盘重定向、文件夹重定向等。在这种场景下一般是借助云桌面接入端软件将上述用户设置文件及文件夹共享,但是实现方案还是借助Windows系统或者Linux系统的文件或者文件夹共享服务,例如:在Linux系统虚拟机上通过挂载命令挂载Windows系统虚拟机上共享的文件或者文件夹,或者在Windows系统虚拟机上通过添加网络磁盘挂载Linux系统虚拟机上通过Samba共享的文件或者文件夹。
发明人发现,无论是在传统PC使用场景还是在云桌面虚拟机使用场景下进行文件共享,现有的方案和操作都比较复杂,并不能简单快捷的实现文件共享。
发明内容
本申请实施方式的目的在于提供一种文件共享系统、方法、电子设备和存储介质。
为解决上述技术问题,本申请的实施方式提供了一种文件共享系统,包括:设置在共享源端的文件选取模块、共享控制模块,以及设置在共享目标端的共享展示模块、文件下载模块,文件选取模块用于供用户选择待共享的文件,共享控制模块用于将待共享的文件发布为Web共享文件,并向共享展示模块发送文件共享通知,共享展示模块用于在接收到文件共享通知后发出文件共享提示,文件下载模块用于在接收到Web共享文件的下载命令时,下载并存储Web共享文件。
本申请的实施方式还提供了一种文件共享方法,包括:提供文件选取界面,以供用户选取待共享的文件,将待共享的文件发布为Web共享文件,并向预获取的共享目标端发送文件共享通知,以供共享目标端在接收到文件共享通知后发出文件共享提示,并在接收到Web共享文件的下载命令时,下载并存储Web共享文件。
本申请的实施方式还提供了一种电子设备,包括:至少一个处理器,以及,与至少一个处理器通信连接的存储器。其中,存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够执行上述的文件共享方法。
本申请的实施方式还提供了一种计算机可读存储介质,存储有计算机程序,计算机程序被处理器执行时实现上述的文件共享方法。
附图说明
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。
图1是本申请第一实施方式中文件共享系统的结构示意图;
图2是本申请第一实施方式中共享源端或共享目标端的结构示意图;
图3是本申请第二实施方式中文件共享系统的结构示意图;
图4是本申请第三实施方式中文件共享系统的结构示意图;
图5是本申请第四实施方式中文件共享方法的流程图;
图6是本申请第五实施方式中文件共享方法的流程图;
图7是本申请第六实施方式中文件共享方法的流程图;
图8是本申请第七实施方式中电子设备的结构示意图。
具体实施方式
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请的各实施方式进行详细的阐述。然而,本领域的普通技术人员可以理解,在本申请各实施方式中,为了使读者更好地理解本申请而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施方式的种种变化和修改,也可以实现本申请所要求保护的技术方案。以下各个实施例的划分是为了描述方便,不应对本申请的具体实现方式构成任何限定,各个实施例在不矛盾的前提下可以相互结合相互引用。
本申请的第一实施方式涉及一种文件共享系统。本实施方式中,文件选取模块用于供用户选择待共享的文件,共享控制模块用于将待共享的文件发布为Web共享文件,并向共享展示模块发送文件共享通知,共享展示模块用于在接收到文件共享通知后发出文件共享提示,文件下载模块用于在接收到Web共享文件的下载命令时,下载并存储Web共享文件。下面对本实施方式的一种文件共享系统的实现细节进行具体的说明,以下内容仅为方便理解提供的实现细节,并非实施本方案的必须。
本实施方式中的一种文件共享系统具体包括:设置在共享源端的文件选取模块101、共享控制模块102,以及设置在共享目标端的共享展示模块103、文件下载模块104。其中,共享源端、共享目标端均可以是云桌面中的客户端机或者云桌面中的虚拟机。本实施例能够实现云桌面中客户端和云桌面中的虚拟机、云桌面中客户端和云桌面中的客户端或者云桌面中虚拟机和云桌面中的虚拟机之间等多种场景下的文件共享。比如:假设虚拟机A向客户端B共享文件,那么虚拟机A就可以作为共享源端,而客户端B作为共享目标端。本实施方式中的一种文件共享系统的具体结构示意图如图1所示。
文件选取模块101用于供用户选择待共享的文件。
在一个具体的例子中,文件选取模块101集成于操作系统的鼠标右键菜单中,用户在选定的文件上点击鼠标右键,在弹出的右键菜单中直接选定“共享”项即可触发文件共享的动作。接着,文件选取模块101会通知共享控制模块102用户选定的待共享的文件。需要说明的是,本实施例中所提到的用户选定的是共享的文件,可以是单个文件,也可以理解为一个文件夹,只要是需要共享。
在一个具体的例子中,设置文件选取模块101能够通过用户拖动文件或者文件夹触发。比如:用户选择文件并按住鼠标左键将选定的文件拖动到桌面某个区域,即可完成共享的文 件选取动作。接着,文件选取模块101会通知共享控制模块102用户选定的待共享的文件。
需要说明的是,文件选取模块101的呈现形式可以比较灵活多样,以上两个例子仅为该模块实现方式的示例。在具备该模块功能的前提下,考虑到实际的应用场景,该模块动作的呈现或者触发方式可以单一存在,也可以以多种形式共同存在。
共享控制模块102用于将待共享的文件发布为Web共享文件,并向共享展示模块103发送文件共享通知。
在一个具体的例子中,假设文件选取模块101通知共享控制模块102用户选定的待共享的文件后,共享控制模块102会将待共享的文件发布为万维网(World Wide Web,简称Web)共享文件。比如:共享控制模块102将待共享的文件发布成通过超文本传输协议(Hyper Text Transport Protocol,简称HTTP)或者超文本传输安全协议(Hypertext Transfer Protocol Secure,简称HTTPS)可访问的文件列表以供下载,在此不做限定。另外,共享控制模块102会向共享展示模块103发送文件共享通知,发送文件共享通知的方式可以是通过传输控制协议(Transmission Control Protocol,简称TCP)或用户数据报协议(User Datagram Protocol,简称UDP)发送文件共享通知,或者通过控制中心中转文件共享通知。因此,共享控制模块102相当于具备简单功能的微型Web服务器。
共享展示模块103用于在接收到文件共享通知后发出文件共享提示。
在一个具体的例子中,共享展示模块103在接收到共享控制模块102发送的文件共享通知后,发出文件共享提示,以提示用户有可以访问下载的Web共享文件,那么用户看到该共享提示后,就能够从中选择想要下载的Web共享文件。
文件下载模块104用于在接收到Web共享文件的下载命令时,下载并存储Web共享文件。
在一个具体的例子中,假设用户通过共享展示模块103知晓有可以访问下载的Web共享文件,并在共享展示模块103提供的选择界面上选择了想要下载的文件,那么共享展示模块103会生成与用户选择下载的Web共享文件对应的下载命令。当文件下载模块104接收到该下载命令时,开始下载并存储选定的Web共享文件。如果文件下载模块104没有接收到该下载命令,则不会进行下载。
在一个具体的例子中,假设文件下载模块104接收到下载命令,但是并没有成功下载到选定的共享文件,那么该模块可以通过共享展示模块103通知用户无法下载的原因。通知方式可以为弹出窗口等,在此不做限定。
在一个具体的例子中,用户通过文件选取模块101选择待分享的文件,文件选取模块101将读取用户所选的文件的属性信息,比如:名称、路径、文件类型、大小等,在此不做限定。 文件选取模块101将读取的文件属性信息发送给共享控制模块102,发送方式可以是通过应用程序编程接口(Application Programming Interface,简称API)或者其他方式发送,在此不做限定。共享控制模块102获得待分享的文件以及待分享的文件的属性信息后,会根据待分享的文件的属性信息将其发布为Web共享文件。另外,共享控制模块102会向共享展示模块103发送文件共享通知,告知共享展示模块103发布成功的Web共享文件的相关信息,比如:文件名称、大小、类型、所在计算机名称或者互联网协议地址(Internet Protocol Address,简称IP)等,在此不做限定。对于共享展示模块103来说,该模块接收到文件共享通知后,将发送文件共享提示,以提示用户有新的可下载的Web共享文件产生。提示的形式可以为气泡窗口、声音等,在此不做限定。在实际应用中,共享展示模块103还可以详细地展示共享文件的类型、名称、大小、来源计算机名称或IP等信息,即共享展示模块103除发出文件共享提示的功能外,还可以为用户展示其他信息,使得展示的内容更加全面,以便用户查看并进行选择下载。接着,用户根据共享展示模块103的提示选择想要下载的文件,此时触发文件下载模块104的下载动作,即,开始下载用户选定的Web共享文件。
需要说明的是,在实际应用中,如图2所示,共享源端或者共享目标端中均可以包含文件选取模块101、共享控制模块102、共享展示模块103、文件下载模块104。
本实施例中,用户可以通过文件选取模块101选择待共享的文件,共享控制模块102将用户选取的待共享的文件发布为Web共享文件,以便用户进行访问下载。共享展示模块103接收到共享控制模块102发送的文件共享通知后发送文件共享提示,以便用户知晓当前有可下载的共享文件,于是用户开始选择想要下载的Web共享文件,同时,系统根据用户的选择生成Web文件下载命令并发送给文件下载模块104,然后文件下载模块104开始下载,并存储已下载的Web共享文件。共享源端和共享目标端的各模块相互搭配,使得文件共享的过程更加的简单快捷。对于不同操作系统的共享源端与共享目标端之间的文件共享,本实施例极大的提高了简单快捷化的程度。
值得一提的是,本实施方式中所涉及到的各模块均为逻辑模块,在实际应用中,一个逻辑单元可以是一个物理单元,也可以是一个物理单元的一部分,还可以以多个物理单元的组合实现。此外,为了突出本申请的创新部分,本实施方式中并没有将与解决本申请所提出的技术问题关系不太密切的单元引入,但这并不表明本实施方式中不存在其它的单元。
本申请的第二实施方式涉及一种文件共享系统。第二实施方式与第一实施方式大致相同,主要区别之处在于:在本实施方式中,文件共享系统还包括设置在共享源端的定时模块,定时模块用于记录Web共享文件的发布时长,并在Web共享文件的发布时长到达预设的共享时 长后,通知共享控制模块禁止共享Web共享文件。
本实施方式中的一种文件共享系统结构示意图如图3所示,具体包括:设置在共享源端的文件选取模块301、共享控制模块302、定时模块303,以及设置在共享目标端的共享展示模块304、文件下载模块305。
文件选取模块301、共享控制模块302、共享展示模块304、文件下载模块305分别与文件选取模块101、共享控制模块102、共享展示模块103、文件下载模块104类似,在此不再赘述。
定时模块303用于记录Web共享文件的发布时长,并在Web共享文件的发布时长到达预设的共享时长后,通知共享控制模块302禁止共享Web共享文件。
在一个具体的例子中,定时模块303配合共享控制模块302记录Web共享文件的发布时长。假设预设的共享时长为1小时,定时模块303开始记录Web共享文件的发布时长,那么共享控制模块302可以设置为在这1小时内允许共享目标端访问下载已经发布的Web共享文件。当定时模块303记录到发布时长达到1小时时,该模块会通知共享控制模块302禁止共享已经发布的Web共享文件。禁止共享的方式可以为共享控制模块302自动取消已经发布的Web共享文件,或者禁止访问已经发布的Web共享文件,在此不做限定。
本实施例中,文件共享系统还包括定时模块303,该模块通过设定发布时长,控制共享目标端在预设的时段内获取共享文件,使得本实施例在保证文件共享过程更加的简单快捷的基础上,增强文件共享的安全性。
本申请的第三实施方式涉及一种文件共享系统。第三实施方式与第一实施方式大致相同,主要区别之处在于:在本实施方式中,文件下载模块具体用于向共享源端发送携带共享目标端的身份信息的下载请求。另外,本实施方式中的文件共享系统还包括设置在共享源端的鉴权模块,该模块用于对身份信息进行鉴权,并在鉴权通过后允许文件下载模块下载Web共享文件。
本实施方式中的一种文件共享系统结构示意图如图3所示,具体包括:设置在共享源端的文件选取模块401、共享控制模块402、鉴权模块403,以及设置在共享目标端的共享展示模块404、文件下载模块405。
文件选取模块301、共享控制模块402、共享展示模块404分别与文件选取模块401、共享控制模块102、共享展示模块103类似,在此不再赘述。
文件下载模块405具体用于向共享源端发送携带共享目标端的身份信息的下载请求。
鉴权模块403用于对身份信息进行鉴权,并在鉴权通过后允许文件下载模块405下载Web 共享文件。
在一个具体的例子中,文件下载模块405在接收到Web共享文件的下载命令时,向共享源端发送携带共享目标端的身份信息的下载请求。共享源端中的共享控制模块402接收到该下载请求时,如果发现下载请求中有身份信息,就会把身份信息发送给鉴权模块403以对该下载请求携带的身份信息进行验证。鉴权模块403确认该共享目标端具有下载权限后,向共享目标端发送与下载请求对应的允许下载的响应,以允许文件下载模块405从共享控制模块402中下载发布的Web共享文件。比如:鉴权模块403对下载请求携带的令牌参数进行验证,令牌参数通过验证后,共享源端向共享目标端返回允许下载的响应,并通知共享控制模块402为下载请求对应的共享目标端提供可访问下载的Web共享文件。如果下载请求携带的令牌参数没有通过鉴权,则鉴权模块403可以通知共享控制模块402停止为该令牌参数对应的共享目标端提供可访问下载的Web共享文件。另外,鉴权模块403还可以回复文件下载模块405无法下载的原因。
本实施例中,文件共享系统还设置有鉴权模块403,该模块对共享目标端的身份信息进行鉴权,并在鉴权通过后允许文件下载模块405下载Web共享文件。本实施例在保证文件共享过程更加的简单快捷的基础上,能够确保共享目标端具有获取Web共享文件的权限,增强文件共享的安全性。
需要说明的是,定时模块303、鉴权模块403都属于扩展功能模块中的一种,在实际应用中,可以根据需要增加任何扩展功能模块,比如:自定义配置模块、网络限速模块、IP访问控制功能模块、断点续传功能模块等模块之中的一个模块或多个模块。其中,自定义配置模块可以用于供用户自定义设置模块运行时依赖的一些参数,比如:文件共享时使用的端口、待共享的文件是否加密、文件选取方式、界面皮肤等,在此不做限定。网络限速模块可以用于限制文件传输的方向、上行速率、下行速率等。IP访问控制功能模块可以用于配合限制可以访问Web共享文件的地址。断点续传功能模块可以用于控制文件下载的进度控制,使用户下载共享文件过程中,遇到异常终止下载或者暂停下载时,再次点击即可从上次终止的位置继续下载共享文件,而不需要重新全量下载选定的共享文件。
上面各种方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些步骤进行拆分,分解为多个步骤,只要包括相同的逻辑关系,都在本专利的保护范围内;对算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的核心设计都在该专利的保护范围内。
本申请第四实施方式涉及一种文件共享方法。共享源端提供文件选取界面,用户通过文 件选取界面选取待共享的文件后,共享源端将待分享的文件发布为Web共享文件。共享源端还会向预获取的共享目标端发送文件共享通知,以供共享目标端在接收到文件共享通知后发出文件共享提示,并在接收到Web共享文件的下载命令时,下载并存储Web共享文件。下面对本实施方式的一种文件共享方法的实现细节进行具体的说明,以下内容仅为方便理解提供的实现细节,并非实施本方案的必须。
本实施方式中的一种文件共享方法应用于电子设备,电子设备可以是云桌面中的虚拟机或者云桌面中的客户端。同一台电子设备既可作为共享源端,也可作为共享目标端。本实施方式中的一种文件共享方法的具体流程图如图5所示,包括:
步骤501,提供文件选取界面。
具体地说,电子设备作为共享源端时提供文件选取界面,以供用户选取待共享的文件。
在一个具体的例子中,文件选取界面中包含用于供用户选择共享目标端的选项。
步骤502,将待共享的文件发布为Web共享文件,并向预获取的共享目标端发送文件共享通知。
具体地说,电子设备作为共享源端时将用户选取的待共享的文件发布为Web共享文件,并向预获取的共享目标端发送文件共享通知,以供共享目标端在接收到文件共享通知后发出文件共享提示,并在接收到Web共享文件的下载命令时,下载并存储Web共享文件。
在一个具体的例子中,共享目标端是可以预先获取的,假设共享文件系统中存在3台电子设备A、B、C作为共享目标端,命名为共享目标端A、共享目标端B和共享目标端C。该共享文件系统中还存在某电子设备D作为共享源端,命名为共享源端D,其中有3个待共享的文件a、b、c,待共享的文件a的共享目标端可以为A、B、C中的一个或多个,待共享的文件b、c同理,即,一个待共享的文件可分享给多个共享目标端。那么,共享目标端A、B、C也可能被共享一个或多个文件。以共享目标端A为例,假设共享文件a的共享目标端是A。用户通过共享源端D提供的文件选取界面选取待共享的文件a,然后将待共享的文件a发布为Web共享文件,并向共享目标端A发送文件共享通知。那么共享目标端A在接收到文件共享通知后,会发送关于共享文件a的文件共享提示。如果用户根据文件共享提示选择下载共享文件a,那么共享目标端A会接收到Web文件共享的下载命令,即共享文件a的下载命令,于是共享目标端A开始下载共享文件a,并进行存储。当然,用户获取文件共享提示后也可以选择不下载共享文件a,这种情况下,共享目标端A也就不会接收到Web文件共享的下载命令。共享目标端A接收到其他文件共享通知后与上述过程类似,在此不再赘述。共享目标端B、C同理,在此不再赘述。需要说明的是,在本实施例中,电子设备D作为共享源 端,但在实际应用中,电子设备D还可以作为共享目标端,即同一台设备既可作为共享源端,也可作为共享目标端,此时,电子设备D执行的动作与上述共享目标端A类似,在此不再赘述。
本实施例中,电子设备作为共享源端时提供文件选取界面,用户通过文件选取界面选取待共享的文件后,该电子设备将待分享的文件发布为Web共享文件,以便用户进行访问下载。作为共享源端的电子设备还会向预获取的作为共享目标端的电子设备发送文件共享通知,以供其在接收到文件共享通知后发出文件共享提示,以便用户知晓当前有可下载的共享文件。另外,作为共享目标端的电子设备在接收到Web共享文件的下载命令时,下载并存储Web共享文件。本实施例实现了更加的简单快捷的文件共享过程。对于不同操作系统的共享源端与共享目标端之间的文件共享,本实施例极大的提高了简单快捷化的程度。
不难发现,本实施方式为与第一实施方式相对应的方法实施例,本实施方式可与第一实施方式互相配合实施。第一实施方式中提到的相关技术细节在本实施方式中依然有效,为了减少重复,这里不再赘述。相应地,本实施方式中提到的相关技术细节也可应用在第一实施方式中。
本申请第五实施方式涉及一种文件共享方法。第五实施方式与第四实施方式大致相同,主要区别之处在于:在本实施例中,作为共享源端的电子设备在将待共享的文件发布为Web共享文件,并向预获取的作为共享目标端的电子设备发送文件共享通知之后,还会记录Web共享文件的发布时长,并在Web共享文件的发布时长到达预设的共享时长后,禁止共享Web共享文件。
本实施方式中的一种文件共享方法的具体流程图如图6所示,包括:
步骤601,提供文件选取界面。与步骤501类似,在此不再赘述。
步骤602,将待共享的文件发布为Web共享文件,并向预获取的共享目标端发送文件共享通知。与步骤502类似,在此不再赘述。
步骤603,记录Web共享文件的发布时长,并在Web共享文件的发布时长到达预设的共享时长后,禁止共享Web共享文件。
在一个具体的例子中,假设预设的共享时长为1小时,作为共享源端的电子设备向预获取的作为共享目标端的电子设备发送文件共享通知后,开始记录Web共享文件的发布时长,那么可以设置为在这1小时内允许访问下载已经发布的Web共享文件。当作为共享源端的电子设备记录到发布时长达到1小时后,会禁止共享已经发布的Web共享文件。禁止共享的方式可以为自动取消已经发布的Web共享文件,或者禁止访问下载已经发布的Web共享文件, 在此不做限定。
本实施例中,共享源端向预获取的共享目标端发送文件共享通知后,还会记录Web共享文件的发布时长,并在Web共享文件的发布时长到达预设的共享时长后,禁止共享Web共享文件。本实施例在保证文件共享过程更加的简单快捷的基础上,通过设定发布时长,控制共享目标端在预设的时段内获取共享文件,增强文件共享的安全性。
由于第二实施方式与本实施方式相互对应,因此本实施方式可与第二实施方式互相配合实施。第二实施方式中提到的相关技术细节在本实施方式中依然有效,在第二实施方式中所能达到的技术效果在本实施方式中也同样可以实现,为了减少重复,这里不再赘述。相应地,本实施方式中提到的相关技术细节也可应用在第二实施方式中。
本申请第六实施方式涉及一种文件共享方法。第六实施方式与第四实施方式大致相同,主要区别之处在于:在本实施例中,作为共享源端的共享源端将待共享的文件发布为Web共享文件,并向预获取的作为共享目标端的电子设备发送文件共享通知之后,当接收到Web共享文件的下载请求时,对下载请求中携带的下载请求者的身份信息进行鉴权,并在鉴权通过后允许下载请求者下载Web共享文件。
本实施方式中的一种文件共享方法的具体流程图如图7所示,包括:
步骤701,提供文件选取界面。与步骤501类似,在此不再赘述。
步骤702,将待共享的文件发布为Web共享文件,并向预获取的共享目标端发送文件共享通知。与步骤502类似,在此不再赘述。
步骤703,当接收到Web共享文件的下载请求时,对下载请求中携带的下载请求者的身份信息进行鉴权,并在鉴权通过后允许下载请求者下载Web共享文件。
在一个具体的例子中,作为共享目标端的电子设备在接收到Web共享文件的下载命令时,向作为共享源端的电子设备发送携带共享目标端的身份信息的下载请求。接收到该下载请求后,作为共享源端的电子设备对该下载请求携带的身份信息进行验证,确认该共享目标端具有下载权限后,才会允许共享目标端下载已经发布的Web共享文件。比如:对下载请求携带的令牌参数进行验证,通过后为下载请求对应的共享目标端提供可访问下载的Web共享文件。如果下载请求携带的身份信息没有通过鉴权,则共享源端停止为该身份信息对应的共享目标端提供可访问下载的Web共享文件。
本实施例中,作为共享源端的电子设备将待共享的文件发布为Web共享文件,并向预获取的作为共享目标端的电子设备发送文件共享通知之后,当接收到Web共享文件的下载请求时,对下载请求中携带的下载请求者的身份信息进行鉴权,只有鉴权通过后允许下载请求者 才能够下载Web共享文件,而没有通过鉴权的下载请求者是不能够下载Web共享文件的。本实施例在保证文件共享过程更加的简单快捷的基础上,能够确保共享目标端具有获取Web共享文件的权限,增强文件共享的安全性。
本申请第七实施方式涉及一种电子设备,如图8所示,包括至少一个处理器801;以及,
与至少一个处理器通信连接的存储器802;其中,存储器802存储有可被至少一个处理器801执行的指令,指令被至少一个处理器801执行,以使至少一个处理器801能够执行上述的抵消信号的生成方法。
在一个具体的例子中,电子设备为云桌面中的客户端或云桌面中的虚拟机。其中,客户端可以是手机、平板电脑、个人台式电脑等,虚拟机可以是服务器,在此不做限定。
其中,存储器802和处理器801采用总线方式连接,总线可以包括任意数量的互联的总线和桥,总线将一个或多个处理器801和存储器802的各种电路连接在一起。总线还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路连接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口在总线和收发机之间提供接口。收发机可以是一个元件,也可以是多个元件,比如多个接收器和发送器,提供用于在传输介质上与各种其他装置通信的单元。经处理器801处理的数据通过天线在无线介质上进行传输,进一步,天线还接收数据并将数据传送给处理器801。
处理器801负责管理总线和通常的处理,还可以提供各种功能,包括定时、外围接口、电压调节、电源管理以及其他控制功能。而存储器802可以被用于存储处理器801在执行操作时所使用的数据。
本申请第八实施方式涉及一种计算机可读存储介质,存储有计算机程序。计算机程序被处理器执行时实现上述方法实施例。
即,本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
在本申请的实施方式中,共享控制模块将用户选取的待共享的文件发布为Web共享文件,并向共享目标端的共享展示模块发送文件共享通知;以便用户进行访问下载。共享展示模块接收到共享源端的共享控制模块发送的文件共享通知后发出文件共享提示,以便提示当前有 可下载的文件;从而使得文件共享的过程简单快捷;并且,由于Web服务对操作系统没有限制,极大程度简化了在一些情形中跨操作系统文件共享的操作过程。
本领域的普通技术人员可以理解,上述各实施方式是实现本申请的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本申请的精神和范围。

Claims (12)

  1. 一种文件共享系统,包括:设置在共享源端的文件选取模块、共享控制模块,以及设置在共享目标端的共享展示模块、文件下载模块;
    所述文件选取模块用于供用户选择待共享的文件;
    所述共享控制模块用于将所述待共享的文件发布为Web共享文件,并向所述共享展示模块发送文件共享通知;
    所述共享展示模块用于在接收到所述文件共享通知后发出文件共享提示;
    所述文件下载模块用于在接收到所述Web共享文件的下载命令时,下载并存储所述Web共享文件。
  2. 根据权利要求1所述的文件共享系统,其中,所述文件共享系统还包括:设置在所述共享源端的定时模块;
    所述定时模块用于记录所述Web共享文件的发布时长,并在所述Web共享文件的发布时长到达预设的共享时长后,通知所述共享控制模块禁止共享所述Web共享文件。
  3. 根据权利要求1所述的文件共享系统,其中,所述文件共享系统还包括:设置在所述共享源端的鉴权模块;
    所述文件下载模块具体用于向所述共享源端发送携带所述共享目标端的身份信息的下载请求;
    所述鉴权模块用于对所述身份信息进行鉴权,并在鉴权通过后允许所述文件下载模块下载所述Web共享文件。
  4. 根据权利要求1至3中任一项所述的文件共享系统,其中,所述共享源端为云桌面中的客户端或云桌面中的虚拟机,所述共享目标端为云桌面中的客户端或云桌面中的虚拟机。
  5. 一种文件共享方法,包括:
    提供文件选取界面,以供用户选取待共享的文件;
    将所述待共享的文件发布为Web共享文件,并向预获取的所述共享目标端发送文件共享通知,以供所述共享目标端在接收到所述文件共享通知后发出文件共享提示,并在接收到所述Web共享文件的下载命令时,下载并存储所述Web共享文件。
  6. 根据权利要求5所述的文件共享方法,其中,所述方法还包括:
    在接收到共享源端发送的文件共享通知后,发出文件共享提示;其中,所述文件共享通知由所述共享源端在发布了Web共享文件后发出;
    在接收到所述共享源端发布的所述Web共享文件的下载命令时,下载并存储所述Web共享文件。
  7. 根据权利要求5所述的文件共享方法,其中,所述将所述待共享的文件发布为Web共享文件,并向预获取的所述共享目标端发送文件共享通知之后,还包括:
    记录所述Web共享文件的发布时长,并在所述Web共享文件的发布时长到达预设的共享时长后,禁止共享所述Web共享文件。
  8. 根据权利要求5所述的文件共享方法,其中,所述将所述待共享的文件发布为Web共享文件,并向预获取的所述共享目标端发送文件共享通知之后,还包括:
    当接收到所述Web共享文件的下载请求时,对所述下载请求中携带的下载请求者的身份信息进行鉴权,并在鉴权通过后允许所述下载请求者下载所述Web共享文件。
  9. 根据权利要求5至8中任一项所述的文件共享方法,其中,所述文件选取界面中包含用于供所述用户选择所述共享目标端的选项。
  10. 一种电子设备,包括:
    至少一个处理器;以及,
    与所述至少一个处理器通信连接的存储器;其中,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求5至9中任一项所述的文件共享方法。
  11. 根据权利要求10所述的文件共享方法,其中,所述电子设备为云桌面中的客户端或云桌面中的虚拟机。
  12. 一种计算机可读存储介质,存储有计算机程序,其中,所述计算机程序被处理器执行时实现权利要求5至9中任一项所述的文件共享方法。
PCT/CN2020/114852 2019-10-24 2020-09-11 文件共享系统、方法、电子设备和存储介质 WO2021077939A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911015768.5 2019-10-24
CN201911015768.5A CN112714139A (zh) 2019-10-24 2019-10-24 文件共享系统、方法、电子设备和存储介质

Publications (1)

Publication Number Publication Date
WO2021077939A1 true WO2021077939A1 (zh) 2021-04-29

Family

ID=75540235

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/114852 WO2021077939A1 (zh) 2019-10-24 2020-09-11 文件共享系统、方法、电子设备和存储介质

Country Status (2)

Country Link
CN (1) CN112714139A (zh)
WO (1) WO2021077939A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114189505A (zh) * 2021-10-29 2022-03-15 深圳市酷开网络科技股份有限公司 文件共享方法、计算机设备及存储介质
CN114968957A (zh) * 2022-04-19 2022-08-30 高途教育科技集团有限公司 一种文件共享方法、装置、存储介质、电子设备
CN115174205A (zh) * 2022-07-01 2022-10-11 武汉轩游嘟嘟信息咨询有限公司 一种网络空间安全实时监测方法、系统及计算机存储介质

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282953A (zh) * 2021-05-14 2021-08-20 山东英信计算机技术有限公司 一种samba共享权限鉴权的方法、系统、终端及存储介质
CN114025344A (zh) * 2021-09-29 2022-02-08 陕西通信规划设计研究院有限公司 一种信息共享的移动通信方法
CN117938830A (zh) * 2022-01-21 2024-04-26 荣耀终端有限公司 一种文件共享方法、通信系统和电子设备
CN115242784B (zh) * 2022-09-23 2022-12-20 浪潮通信信息系统有限公司 具有数据校验功能的1+n文件共享装置及方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017218309A1 (en) * 2016-06-15 2017-12-21 Microsoft Technology Licensing, Llc Electronic file sharing link granularity
CN109344134A (zh) * 2018-09-26 2019-02-15 郑州云海信息技术有限公司 一种云盘文件共享的方法及装置
US20190289073A1 (en) * 2011-08-25 2019-09-19 Dropbox, Inc. Automatic File Storage and Sharing
CN110336810A (zh) * 2019-06-28 2019-10-15 华为技术有限公司 信息分享方法、平台及计算设备

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891889B (zh) * 2012-09-26 2015-07-29 腾讯科技(深圳)有限公司 一种信息共享方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190289073A1 (en) * 2011-08-25 2019-09-19 Dropbox, Inc. Automatic File Storage and Sharing
WO2017218309A1 (en) * 2016-06-15 2017-12-21 Microsoft Technology Licensing, Llc Electronic file sharing link granularity
CN109344134A (zh) * 2018-09-26 2019-02-15 郑州云海信息技术有限公司 一种云盘文件共享的方法及装置
CN110336810A (zh) * 2019-06-28 2019-10-15 华为技术有限公司 信息分享方法、平台及计算设备

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114189505A (zh) * 2021-10-29 2022-03-15 深圳市酷开网络科技股份有限公司 文件共享方法、计算机设备及存储介质
CN114189505B (zh) * 2021-10-29 2024-04-19 深圳市酷开网络科技股份有限公司 文件共享方法、计算机设备及存储介质
CN114968957A (zh) * 2022-04-19 2022-08-30 高途教育科技集团有限公司 一种文件共享方法、装置、存储介质、电子设备
CN115174205A (zh) * 2022-07-01 2022-10-11 武汉轩游嘟嘟信息咨询有限公司 一种网络空间安全实时监测方法、系统及计算机存储介质

Also Published As

Publication number Publication date
CN112714139A (zh) 2021-04-27

Similar Documents

Publication Publication Date Title
WO2021077939A1 (zh) 文件共享系统、方法、电子设备和存储介质
US11122028B2 (en) Control method for authentication/authorization server, resource server, and authentication/authorization system
US9860234B2 (en) Bundled authorization requests
US10084823B2 (en) Configurable adaptive access manager callouts
US10212143B2 (en) Authorizing an untrusted client device for access on a content management system
US9866556B2 (en) Common internet file system proxy authentication of multiple servers
US8732853B1 (en) Web-based system providing sharable content item links with link sharer specified use restrictions
JP6425738B2 (ja) 情報処理装置、情報処理装置の制御方法、情報処理システム、およびコンピュータプログラム
JP6495467B2 (ja) REST(Representational State Transfer)準拠のクライアントを使用する異なる認証ドメインに位置するファイル・リポジトリ上での操作の実行
JP2017504857A (ja) ドキュメント管理及びコラボレーション・システム
US20070220008A1 (en) System and method for single client remote access
US10419377B2 (en) Method and system for categorizing instant messages
US9871778B1 (en) Secure authentication to provide mobile access to shared network resources
EP3697053B1 (en) Accessing encrypted user data at a multi-tenant hosted cloud service
US20140208382A1 (en) User Authentication Based on Network Context
US20200395107A1 (en) Secure environment device management
JP6708719B2 (ja) 情報処理装置、情報処理装置の制御方法、情報処理システム、およびコンピュータプログラム
US20240146737A1 (en) Authentication service for automated distribution and revocation of shared credentials
JP2022165032A (ja) 中継サーバ及びアクセス制御システム
CN117278562A (zh) 负载均衡方法、装置、系统、电子设备及存储介质
KR20200039606A (ko) 모바일 스토리지 장치를 이용한 서비스 플랫폼 제공 방법 및 그 장치

Legal Events

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

Ref document number: 20878928

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20878928

Country of ref document: EP

Kind code of ref document: A1

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

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

122 Ep: pct application non-entry in european phase

Ref document number: 20878928

Country of ref document: EP

Kind code of ref document: A1