File transfer method and apparatus

Uploading files in the cloud computing environment through the browser on the terminal device solves the problem that the virtual machine cannot communicate directly with the terminal device, achieves file format compatibility and security, and simplifies the file upload process.

WO2024179246A1PCT designated stage expired Publication Date: 2024-09-06HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/074085
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-28
Filing Date
2024-01-25
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

In a cloud computing environment, the virtual machine cannot directly communicate with the terminal device, resulting in the inability to directly upload local files to the virtual machine.

Method used

Through the general web browser on the terminal device to display the configuration interface, the user can select local files and encapsulate them, and use the remote connection between the browser and the cloud server to upload files. It supports multiple file formats and uses network transmission during the transmission process. The protocol encapsulates and decapsulates to ensure the compatibility and security of the file format.

Benefits of technology

It realizes file upload from terminal devices to cloud server virtual machines, simplifies the process, avoids the need to install dedicated applications, and improves user experience and the lightweight and quickness of file transfer.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024074085_06092024_PF_FP
    Figure CN2024074085_06092024_PF_FP
Patent Text Reader

Abstract

A file transfer method and apparatus, which are used for providing a solution for uploading a local file of a terminal device to a virtual machine in a cloud server. The method comprises: displaying a first display interface of a browser; in response to an operation of uploading a local file which is triggered by a user by means of the first display interface, on the basis of a target file format, encapsulating a source file to be uploaded which is selected by the user, wherein the browser supports a plurality of different types of file formats and can uniformly encapsulate files having different file formats into a file in the target file format, and the target file format is a file format supported by the browser and a cloud server; and uploading the encapsulated source file to the cloud server by means of the browser. The browser is a common web browser on the terminal device, a special application program does not need to be installed on the terminal device to communicate with a virtual machine in the cloud server, and the method for transferring a file to the virtual machine on the basis of the browser is lightweight and fast.
Need to check novelty before this filing date? Find Prior Art

Description

File transmission method and device

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of the People's Republic of China on February 28, 2023, with application number 202310179500.5 and application name "A File Transfer Method and Device", the entire contents of which are incorporated by reference into this application. Technical Field

[0003] The present application relates to the field of computer technology, and in particular to a file transmission method and device. Background Art

[0004] With the development of cloud computing technology, virtual machines (VMs) are increasingly being used in cloud computing services. A VM is a computer system that simulates the full functionality of a hardware system through software and runs in a completely isolated environment. For example, in cloud scenarios, VMs can run on cloud servers, and a single cloud server can host multiple VMs.

[0005] When users use virtual machines on cloud servers for daily work, they may need to upload local files on their terminal devices (for example, files on their local computers or mobile phones) to the virtual machines. However, since the virtual machines run in the cloud server's virtual private cloud and cannot directly communicate with the user's terminal devices, it is impossible to directly upload local files on the terminal devices to the virtual machines.

[0006] Summary of the Invention

[0007] The present application provides a file transmission method and apparatus for providing a solution for uploading local files of a terminal device to a virtual machine in a cloud server.

[0008] In a first aspect, an embodiment of the present application provides a file transfer method that can be executed by a terminal device, wherein the terminal device displays a first display interface of a browser, wherein the first display interface is an interface for configuring a cloud server, and the first display interface includes first information for configuring the cloud server; in response to an operation of uploading a local file triggered by a user through the first display interface, the terminal device can encapsulate a source file to be uploaded selected by the user based on a target file format, and upload the encapsulated source file to the cloud server through the browser. The browser on the terminal device supports multiple different types of file formats, and during the file transfer process, the browser can encapsulate files of different file formats into a target file format, wherein the target file format is a file format supported by both the browser and the cloud server.

[0009] Through this method, users can select the source file to be uploaded from their local terminal device and upload it to the virtual machine on the cloud server through the browser on the terminal device. Because the browser and the cloud server can establish a remote connection, the user's selected source file can be uploaded to the virtual machine on the cloud server through the browser on the terminal device. Furthermore, the browser is a common web browser on the terminal device, and there is no need to install a dedicated application on the terminal device to communicate with the virtual machine on the cloud server. This browser-based method of uploading files to the virtual machine is lightweight and fast.

[0010] In a possible implementation, the file formats supported by the browser include at least one of the following: zip file format, jar file format, war file format, tar file format, and iso file format.

[0011] Through the above method, the browser of the terminal device can support a variety of different file formats, so that files of a variety of different formats locally on the terminal device can be uploaded to the virtual machine of the cloud server through the browser.

[0012] In one possible implementation, after the terminal device encapsulates the source file to be uploaded selected by the user based on the target file format, before uploading the encapsulated source file to the cloud server through the browser, the terminal device encapsulates the source file in the target file format based on the network transmission protocol supported by the browser and the cloud server.

[0013] In the above manner, since the files transmitted between the browser of the terminal device and the cloud service need to be encapsulated by the network transmission protocol supported by the browser and the cloud server, accurate file transmission between the browser and the cloud service can be achieved.

[0014] In one possible implementation, the terminal device displays a second display interface of the browser, and the second display interface includes second information for configuring the cloud server; based on the second display interface, the user can select a target instance from at least one instance corresponding to the cloud server, and the terminal device can determine the target instance selected by the user from at least one instance corresponding to the cloud server based on the user's selection operation; wherein the target instance is an instance in the cloud server that stores the target file, and the cloud server creates the target file in the target instance after receiving the encapsulated source file.

[0015] Through the above method, users can flexibly select a target instance from at least one instance corresponding to the cloud server. After receiving the source file uploaded by the terminal device through the browser, the cloud server creates the target file in the target instance, thereby realizing file transfer according to user needs and improving user experience.

[0016] On the second aspect, an embodiment of the present application also provides a file transfer method, which can be executed by a cloud server. The cloud server receives a source file uploaded by a terminal device through a browser, wherein the source file is a file in a target file format after being encapsulated and processed by the browser of the terminal device. The browser on the terminal device supports multiple different types of file formats, and during the file transfer process, the browser can uniformly encapsulate files of different file formats into files in a target file format, which is a file format supported by both the browser and the cloud server; the cloud server creates a target file corresponding to the source file.

[0017] In a possible implementation, the file formats supported by the browser include at least one of the following: zip file format, jar file format, war file format, tar file format, and iso file format.

[0018] In one possible implementation, if the source file received by the cloud server is a file that is encapsulated and processed based on a network transmission protocol and in a target file format, the cloud server decapsulates the received source file based on a network transmission protocol supported by both the cloud server and the terminal device before creating a target file corresponding to the source file to obtain the source file in the target file format.

[0019] In a possible implementation, the cloud server creates a target file corresponding to the source file in a target instance, where the target instance is selected by the user from at least one instance corresponding to the cloud server.

[0020] On the third aspect, the embodiment of the present application further provides a file transfer device, which has the function of implementing the behavior of the terminal device in the method example of the first aspect above, or the file transfer device has the function of implementing the behavior of the cloud server in the method example of the second aspect above. The beneficial effects can be found in the description of the first aspect and will not be repeated here. The functions can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions. In one possible design, the structure of the file transfer device includes a display module, a processing module and a transceiver module, which can execute the corresponding functions in the method example of the first aspect above. Please refer to the detailed description in the method example for details, which will not be repeated here. In another possible design, the structure of the file transfer device includes a transceiver module and a processing module, which can execute the corresponding functions in the method example of the second aspect above. Please refer to the detailed description in the method example for details, which will not be repeated here.

[0021] In a fourth aspect, an embodiment of the present application further provides a computing device, which has the behavioral function of implementing the terminal device in the method example of the first aspect above, or the computing device has the behavioral function of implementing the cloud server in the method example of the second aspect above. The beneficial effects can be found in the description of the first aspect and will not be repeated here. The structure of the computing device includes a processor and a memory, and the processor is configured to support the computing device to perform the corresponding functions in the above-mentioned first or second aspect methods. The memory is coupled to the processor, which stores the computer program instructions and data necessary for the computing device. The structure of the computing device also includes a communication interface for communicating with other devices.

[0022] In the fifth aspect, the embodiment of the present application further provides a computing device cluster, which has the function of implementing the behavior of the terminal device in the method example of the first aspect above, or the computing device has the function of implementing the behavior of the cloud server in the method example of the second aspect above. The beneficial effects can be found in the description of the first aspect and will not be repeated here. The computing device cluster includes at least one computing device, and the structure of any computing device includes a processor and a memory. The processor in any computing device is configured to support the computing device to perform part or all of the functions of the first aspect and each possible implementation of the first aspect, or to perform part or all of the functions of the second aspect and each possible implementation of the second aspect. The memory is coupled to the processor, which stores the computer program instructions and data necessary for the computing device. The structure of the computing device also includes a communication interface for communicating with other devices.

[0023] In a sixth aspect, the present application also provides a computer-readable storage medium, which stores instructions. When the computer-readable storage medium is run on a computer, it enables the computer to execute the method in the above-mentioned first aspect and each possible implementation of the first aspect, or enables the computer to execute the method in the above-mentioned second aspect and each possible implementation of the second aspect.

[0024] In the seventh aspect, the present application also provides a computer program product comprising instructions, which, when run on a computer, enables the computer to execute the method in the above-mentioned first aspect and each possible implementation of the first aspect, or enables the computer to execute the above-mentioned second aspect and each possible implementation of the second aspect.

[0025] In an eighth aspect, the present application also provides a computer chip, which is connected to a memory, and the chip is used to read and execute the software program stored in the memory, execute the method in the above-mentioned first aspect and each possible implementation of the first aspect, or execute the method in the above-mentioned second aspect and each possible implementation of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] FIG1 is a schematic diagram of the architecture of a file transmission system provided in an embodiment of the present application;

[0027] FIG2 is a flowchart of a file transmission method provided in an embodiment of the present application;

[0028] FIG3A is a schematic diagram of a display interface of a browser provided in an embodiment of the present application;

[0029] FIG3B is a schematic diagram of a display interface of a browser provided in an embodiment of the present application;

[0030] FIG3C is a schematic diagram of a display interface of a browser provided in an embodiment of the present application;

[0031] FIG4 is a schematic diagram of a display interface of a browser provided in an embodiment of the present application;

[0032] FIG5 is a flowchart of establishing a file transfer link between a browser and a target virtual machine according to an embodiment of the present application;

[0033] FIG6 is a schematic diagram of a display interface corresponding to a target virtual machine provided in an embodiment of the present application;

[0034] FIG7 is a flow chart of a cloud server transmitting operation information to a browser according to an embodiment of the present application;

[0035] FIG8 is a flowchart of file data transmission between a browser and a target virtual machine according to an embodiment of the present application;

[0036] FIG9 is a schematic diagram of a display interface corresponding to a target virtual machine provided in an embodiment of the present application;

[0037] FIG10 is a flowchart of a file transmission method on a terminal device side provided in an embodiment of the present application;

[0038] FIG11 is a flowchart of a file transmission method on a cloud server side provided in an embodiment of the present application;

[0039] FIG12 is a schematic structural diagram of a file transmission device provided in an embodiment of the present application;

[0040] FIG13 is a schematic structural diagram of a file transmission device provided in an embodiment of the present application;

[0041] FIG14 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application;

[0042] FIG15 is a schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. The terms used in the implementation methods of the present application are only used to explain the specific embodiments of the present application and are not intended to limit the present application.

[0044] In the embodiments of the present application, "multiple" refers to two or more. In view of this, in the embodiments of the present application, "multiple" can also be understood as "at least two". "At least one" can be understood as one or more, for example, one, two or more. For example, including at least one means including one, two or more, and does not limit which ones are included. For example, including at least one of A, B and C, then the included ones may be A, B, C, A and B, A and C, B and C, or A, B and C. "And / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / ", unless otherwise specified, generally indicates that the previous and subsequent associated objects are in an "or" relationship.

[0045] Unless otherwise specified, ordinal numbers such as "first" and "second" in the embodiments of the present application are used to distinguish multiple objects and are not used to limit the order, timing, priority or importance of multiple objects.

[0046] In the embodiments of this application, "instance" is a general term for the virtualized operating environment created by software in all types of virtualized devices, and can include virtual machines, containers, processes, and so on. Virtualization, as a core technology in cloud scenarios, virtualizes hardware resources and shares them with multiple users, enabling users to use physical resources conveniently and flexibly while maintaining secure isolation and significantly improving resource utilization.

[0047] Figure 1 shows a schematic diagram of the architecture of a file transfer system. The file transfer system includes a cloud server 10 and at least one terminal device 11 (e.g., terminal device 11_1 or terminal 11_2). Cloud server 10 can run at least one instance, where instances may include, but are not limited to, virtual machines, containers, processes, and the like. Cloud server 10 can be understood as a single server or a server cluster. Cloud server 10 may include a cloud management platform, which can connect to user-operated terminal devices via the internet. Users can register an account on the cloud management platform, which qualifies them to purchase (subscribe to, lease, or other payment methods) cloud resources. After successfully purchasing cloud resources, an instance is created on cloud server 10, and appropriate access methods are provided to users, allowing them to remotely manage the instance and control their remote access or use of the instance, thereby providing cloud services to users. For example, an instance is a virtual machine. Users can select the virtual machine's specifications (e.g., memory, processor, and disk) on the cloud management platform. After the user successfully pays, the cloud management platform creates a virtual machine with those specifications. Users can configure access rights for a virtual machine (such as logging into the virtual machine, viewing or modifying files in the virtual machine, shutting down the virtual machine, deleting the virtual machine, etc.). Once configured successfully, the user can perform the corresponding authorized operations on the virtual machine. Users can also grant permissions to purchase or create virtual machines to other users.

[0048] The terminal device 11 can be a user-operated terminal device. The user can access the cloud management platform through the terminal device. After logging into the cloud management platform with an account, the user can manage the virtual machines created under the account. In addition, the user can also access the virtual machines created in the cloud server 10 through the terminal device 11 and use the services provided by the virtual machines. The user who can access the virtual machines can be a tenant of the cloud resources or a user authorized by the tenant.

[0049] The following description takes the example of uploading a file to the virtual machine in the cloud server 10. The first user can access the management interface of the cloud management platform of the cloud server 10 by operating the terminal device 11 (such as the terminal device 11_1); illustratively, the first user can log in to the management interface of the cloud management platform through the browser on the terminal device 11. The first user can select the source file and the target virtual machine in the terminal device 11 through the management interface of the cloud management platform, upload the source file to the target virtual machine in the cloud server 10 through the browser, and create a target file corresponding to the source file in the terminal device 11 in the target virtual machine. Since a remote connection can be established between the browser and the cloud server through the Internet, the first user can upload the local source file of the terminal device 11 to the target virtual machine of the cloud server based on the browser. After uploading the local file of the terminal device 11 to the target virtual machine of the cloud server based on the browser, the second user can access the target virtual machine through the terminal device 11 (such as the terminal device 11_2) and view or use the target file corresponding to the source file in the target virtual machine.

[0050] In the architecture of the above-mentioned file transfer system of the present application, the first user and the second user may be the same or different users, and the terminal device operated by the first user and the terminal device operated by the second user may be the same terminal device or different terminal devices.

[0051] In this embodiment of the application, a user can select a source file to be uploaded from a local terminal device and upload the source file to the virtual machine in the cloud server through the browser on the terminal device. Since the browser and the cloud server can establish a remote connection, the user-selected source file can be uploaded to the virtual machine through the browser on the terminal device. Furthermore, the browser is a common web browser on the terminal device, and there is no need to install a dedicated application on the terminal device to communicate with the virtual machine in the cloud server. This browser-based method of uploading files to the virtual machine is lightweight and fast.

[0052] A file transfer method provided in an embodiment of the present application is described below with reference to FIG2 , which can be applied to a file transfer system including a terminal device and a cloud server as shown in FIG1 . The method includes the following steps:

[0053] Step S201: The terminal device displays the first display interface of the browser.

[0054] During implementation, the user can operate the terminal device and run the browser on the terminal device; access the first display interface through the browser on the terminal device; the first display interface can be an interface for configuring the cloud server, and the first display interface includes first information for configuring the cloud server. The user can configure the cloud server by selecting the first information.

[0055] Since the terminal device in the embodiment of the present application uploads a local source file to the virtual machine in the cloud server via a browser, the first display interface displayed in the browser of the terminal device is an interface for configuring files for the virtual machine in the cloud server. The first information in the first display interface may be an icon for "selecting a file" or an icon for "uploading a file." It should be noted that the first display interface may also include other icons for configuring the cloud server, which are not limited here.

[0056] Exemplarily, a user can access the management interface of the cloud management platform through a browser; in the management interface of the cloud management platform, the user can log in through an account. After the user logs in to the cloud management platform, a list of services provided by the cloud server is displayed in the management interface of the cloud management platform; in the service list, the user can select a cloud server, and the browser displays the configuration interface of the cloud server; the cloud server configuration interface includes at least one virtual machine corresponding to the user, and after the user triggers the operation of configuring the virtual machine in the cloud server configuration interface, a first display interface is displayed in the browser of the terminal device (the first display interface can be an interface for configuring the virtual machine corresponding to the cloud server). For example, the first information included in the first display interface can be an "upload file" icon, and based on the "upload file" icon, local files of the terminal device can be uploaded to the virtual machine of the cloud server.

[0057] Step S202: In response to the operation of uploading a local file triggered by the user through the first display interface, the terminal device encapsulates the source file to be uploaded selected by the user based on the target file format.

[0058] In the embodiment of the present application, when uploading the local source file of the terminal device to the cloud server, an optional implementation method is to upload the source file to the target virtual machine of the cloud server. Based on this, the embodiment of the present application also needs to determine the target virtual machine in the cloud server.

[0059] During implementation, the embodiment of the present application can allow the user to select the target virtual machine in the cloud server; the cloud server corresponds to at least one virtual machine, and the user can select the target virtual machine from the at least one virtual machine. Optionally, the terminal device displays the second display interface of the browser, and the second display interface includes second information for configuring the cloud server; the user can configure the virtual machine of the cloud server by selecting the second information. Exemplarily, the second display interface includes an icon for configuring at least one virtual machine corresponding to the cloud server, and the second information in the second display interface can be an icon for "selecting a virtual machine". It should be noted that the second display interface can also include other icons for configuring the virtual machines of the cloud server, which are not limited here. The user can select the target virtual machine from the second display interface, thereby uploading the source file local to the terminal device selected by the user to the target virtual machine in the cloud server.

[0060] It should be noted that, in the embodiment of the present application, the first display interface and the second display interface of the browser can be the same display interface, or the first display interface and the second display interface of the browser can be different display interfaces.

[0061] The user accesses the management interface of the cloud management platform through a browser. After the user logs in to the cloud management platform, as shown in Figure 3A, the management interface of the cloud management platform displayed in the browser includes a list of services provided by the cloud server; in the management interface of the cloud management platform shown in Figure 3A, the user can select a cloud server; as shown in Figure 3B, the browser displays the configuration interface of the cloud server, and the cloud server configuration interface includes at least one virtual machine corresponding to the user; in the configuration interface of the cloud server shown in Figure 3B, the user can select the "Upload File" icon, and the browser displays the display interface shown in Figure 3C (the first display interface or the second display interface). The display interface shown in Figure 3C includes a "Select Virtual Machine" icon and a "Select File" icon. The user can click the "Select Virtual Machine" icon to select a target virtual machine from at least one virtual machine. In addition, the user can click the "Select File" icon to select the source file to be uploaded from the local files of the terminal device; after the user selects the target virtual machine and the source file, the user can click the "Upload" icon to trigger the operation of uploading the local file.

[0062] Alternatively, the user accesses the management interface of the cloud management platform through a browser. After the user logs in to the cloud management platform, as shown in Figure 3A, the management interface of the cloud management platform displayed in the browser includes a list of services provided by the cloud server; in the management interface of the cloud management platform shown in Figure 3A, the user can select a cloud server; as shown in Figure 3B, the browser displays the configuration interface of the cloud server (second display interface), and the cloud server configuration interface includes at least one virtual machine corresponding to the user; the user can select a target virtual machine in the configuration interface of the cloud server. After the user selects the target virtual machine, the user enters the configuration interface (first display interface) corresponding to the target virtual machine. As shown in Figure 4, the configuration interface corresponding to the target virtual machine includes a "Select File" icon. The user can click the "Select File" icon to select the source file to be uploaded from the local files of the terminal device. After the user selects the source file, the user can click the "Upload" icon to trigger the operation of uploading the local file.

[0063] During implementation, the browser supports uploading files in multiple different formats. The file formats supported by the browser include but are not limited to at least one of the following: zip file format, jar file format, war file format, tar file format, and iso file format.

[0064] When a user chooses to upload a source file of any file format to the cloud server, the browser on the terminal device loads the selected source file into the browser memory and then encapsulates the source files of various file formats. When the browser encapsulates the selected source file, it can encapsulate the source files of different file formats into a unified file of the target file format.

[0065] Optionally, the target file format is a file format supported by both the browser and the cloud server; illustratively, the target file format may be a universal disc format (UDF); or the target file format may also be a common file format supported by other browsers and cloud servers.

[0066] Step S203: The terminal device uploads the packaged source file to the cloud server through the browser.

[0067] After the browser on the terminal device obtains the source file selected by the user, it encapsulates the source file into a file in the target file format, and uploads the file in the target file format to the cloud server through the network connection between the browser and the cloud server.

[0068] During implementation, the user selects a target virtual machine from at least one virtual machine corresponding to the cloud server, and the terminal device uploads the encapsulated file in the target file format to the target virtual machine in the cloud server through the browser.

[0069] Step S204: The cloud server creates a target file corresponding to the source file uploaded by the terminal device through the browser.

[0070] After receiving the source file uploaded by the terminal device through the browser, the cloud server can create a target file corresponding to the source file in the storage space corresponding to the target virtual machine in the cloud server according to the target virtual machine selected by the user;

[0071] The source file uploaded by the terminal device through the browser and received by the cloud server can be encapsulated into a target file format by the terminal device through the browser.

[0072] The following describes in detail the process of the terminal device encapsulating the source file through the browser in step S202, the process of the terminal device uploading the source file to the cloud server through the browser in step S203, and the process of the cloud server creating the target file corresponding to the source file in step S204.

[0073] After a user selects a source file to be uploaded on the first display interface of a browser displayed on a terminal device, where the source file to be uploaded may be a file local to the terminal device, the browser of the terminal device obtains the source file to be uploaded, where the file format of the source file may be any one of a zip file format, a jar file format, a war file format, a tar file format, and an iso file format. The terminal device, through the browser, encapsulates the file format of the source file into a target file format. Exemplarily, the file format of the source file to be uploaded obtained by the browser of the terminal device is an iso file format, and the browser encapsulates the obtained source file into a UDF format.

[0074] During the process of uploading files from a terminal device to a cloud server in an embodiment of the present application, the terminal device and the cloud server establish a file transfer link between the browser and the target virtual machine based on the target virtual machine in the cloud server selected by the user. After the file transfer link is established, the local file data in the terminal device can be uploaded to the target virtual machine in the cloud server based on the file transfer link.

[0075] The following describes the file transfer link establishment process and the file data transmission process respectively:

[0076] 1. The terminal device and the cloud server establish a file transfer link between the browser and the target virtual machine.

[0077] The terminal device and the cloud server establish a file transfer link between the browser and the target virtual machine, which can be understood as creating a target file corresponding to the source file in the target virtual machine based on the file information of the local source file of the terminal device.

[0078] During implementation, after the user determines the source file to be uploaded through the first display interface of the browser displayed on the terminal device, and determines the target virtual machine in the cloud server through the second display interface of the browser displayed on the terminal device, the browser obtains the local source file of the terminal device selected by the user, and exemplarily loads the local source file of the terminal device into the browser's memory.

[0079] The browser obtains the file information of the source file, and performs a packaging process on the file information based on the target file format; illustratively, the browser may perform a packaging process to package the file information of the source file into a UDF format.

[0080] The file information of the source file may be information describing the source file, including but not limited to at least one of the following: file name, file size, file type, file creation time, and file version number.

[0081] After the browser encapsulates the file information of the source file into the target file format, it performs a secondary encapsulation process on the file information in the target file format based on the network transmission protocol supported between the browser and the cloud server. For example, the network transmission protocol supported between the browser and the cloud server may be a block transfer protocol, in which case the browser encapsulates information such as header information, the number of blocks, and the size of the blocks when performing the secondary encapsulation process on the file information in the target file format; or if the network transmission protocol supported between the browser and the cloud server may be a file transfer protocol, in which case the browser encapsulates information such as the file name and file size when performing the secondary encapsulation process on the file information in the target file format.

[0082] After obtaining the secondary packaged file information, the browser can encrypt the secondary packaged file information to ensure the security of information transmission between the browser and the cloud server. Exemplarily, the secondary packaged file information is encrypted based on the transport layer security (TLS) protocol.

[0083] In practice, if the browser and the cloud server communicate based on the Transmission Control Protocol (TCP), the browser needs to re-encapsulate the encrypted file information into a first TCP message, and transmit the first TCP message to the cloud server.

[0084] Accordingly, after receiving the first TCP message, the cloud server reads the message information in the first TCP message and decrypts it based on the TLS protocol to obtain the re-encapsulated file information. Then, based on the network transmission protocol supported by the browser and the cloud server, the re-encapsulated file information is decapsulated to obtain the file information in the target file format.

[0085] After obtaining the file information of the target file format, the cloud server creates a target file corresponding to the source file in the target virtual machine; an optional way to create the target file is that the cloud server creates the target file in the storage space corresponding to the target virtual machine in the cloud server based on the file information of the target file format.

[0086] During implementation, after obtaining the target file format, the cloud server reads the target file format information into user space (user state). In user space, the obtained target file format information is subjected to a security check. Once the security check passes, the target file format information is transferred to kernel space (kernel state). Based on the target file format information in kernel space, the device management process in the cloud server creates the target file in the storage space corresponding to the target virtual machine in the cloud server.

[0087] It should be noted that the cloud server's creation of the target file in the storage space corresponding to the target virtual machine indicates that the file transfer link between the browser and the target virtual machine has been established. The target file created in the storage space corresponding to the target virtual machine is a mapping of the source file on the terminal device to the target virtual machine; the target file does not yet contain the source file's file data.

[0088] The process of establishing a file transfer link between the browser and the target virtual machine will be described in detail below with reference to FIG. 5 .

[0089] Step S501: In response to a file upload operation triggered by a user, the terminal device obtains a local source file on the terminal device through a browser;

[0090] Step S502: The terminal device performs a packaging process on the file information of the source file through the browser, and packages the file information of the source file into file information in the target file format;

[0091] Step S503: The terminal device performs secondary packaging processing on the file information in the target file format through the browser based on the network transmission protocol supported between the browser and the cloud server;

[0092] Step S504: The terminal device encrypts the twice-encapsulated file information based on the TLS protocol through the browser;

[0093] Step S505: The terminal device encapsulates the encrypted and twice-encapsulated file information into a first TCP message through the browser;

[0094] Step S506: The terminal device sends the first TCP message to the cloud server through the browser;

[0095] Step S507: The cloud server reads the message information in the first TCP message;

[0096] Step S508: The cloud server decrypts the message information in the first TCP message based on the TLS protocol to obtain the secondary encapsulated file information;

[0097] Step S509: The cloud server decapsulates the twice-encapsulated file information based on the network transmission protocol supported between the browser and the cloud server to obtain file information in the target file format;

[0098] Step S510: The cloud server creates the target file in the storage space corresponding to the target virtual machine in the cloud server based on the file information of the target file format.

[0099] In the embodiment of the present application, after creating a target file corresponding to a source file in the target virtual machine of the cloud server based on the above method, the user can log in to the target virtual machine through the terminal device. Exemplarily, the user can log in to the target virtual machine through an account. The user can view the target file in the target virtual machine in the display interface corresponding to the target virtual machine on the terminal device, and perform read and write operations on the target file. As shown in Figure 6, the display interface corresponding to the target virtual machine on the terminal device includes the target file created by the cloud server in the target virtual machine, such as the "01" file in Figure 6. The user clicks on the "01" file to trigger a read operation on the "01" file.

[0100] The following description uses the example of a user performing a read operation on a target file to introduce the file data transmission process between the browser and the cloud server.

[0101] During implementation, after a user performs a read operation on a target file in a target virtual machine, the cloud server obtains the read operation triggered by the user and encapsulates the operation information based on the network transmission protocol supported between the browser and the cloud server. For example, if the network transmission protocol supported between the browser and the cloud server is a block transfer protocol, the cloud server may encapsulate information such as the request block and offset corresponding to the read operation when encapsulating the operation information. Alternatively, if the network transmission protocol supported between the browser and the cloud server is a file transfer protocol, the cloud server may encapsulate information such as the file offset and starting position when encapsulating the operation information.

[0102] After the cloud server obtains the encapsulated operation information, it can encrypt the encapsulated operation information to ensure the security of information transmission between the cloud server and the browser. Exemplarily, the encapsulated operation information is encrypted based on the TLS protocol.

[0103] In practice, if the cloud server and the browser communicate based on the TCP protocol, the cloud server needs to re-encapsulate the encrypted operation information into a second TCP message, and transmit the second TCP message to the browser.

[0104] Accordingly, after receiving the second TCP message, the browser reads the message information in the second TCP message and decrypts the message information in the second TCP message based on the TLS protocol to obtain the encapsulated operation information. Then, based on the network transmission protocol supported by the browser and the cloud server, the browser decapsulates the encapsulated operation information to obtain the operation information.

[0105] The following describes in detail the process of the cloud server transmitting operation information to the browser with reference to FIG7 .

[0106] Step S701: The cloud server obtains the read operation triggered by the user;

[0107] Step S702: The cloud server encapsulates the operation information based on the network transmission protocol supported between the browser and the cloud server;

[0108] Step S703: The cloud server encrypts the encapsulated operation information based on the TLS protocol;

[0109] Step S704: The cloud server re-encapsulates the encrypted operation information into a second TCP message;

[0110] Step S705: The cloud server transmits the second TCP message to the browser;

[0111] Step S706: The terminal device reads the message information in the second TCP message through the browser;

[0112] Step S707: The terminal device decrypts the message information in the second TCP message based on the TLS protocol through the browser to obtain the encapsulated operation information;

[0113] Step S708: The terminal device decapsulates the encapsulated operation information through the browser based on the network transmission protocol supported between the browser and the cloud server to obtain the operation information.

[0114] Because the user-triggered operation is a read operation on the target file, the browser, after parsing the operation information, determines that the file data of the source file corresponding to the target file needs to be uploaded to the target virtual machine in the cloud server. For example, if the browser loads the source file locally on the terminal device selected by the user into the browser memory, then after parsing the operation information, the browser uploads the file data of the source file in the browser memory to the target virtual machine in the cloud server.

[0115] The browser obtains the file data of the source file, and performs a packaging process on the file data based on the target file format; illustratively, the browser may package the file data of the source file into a UDF format through the packaging process.

[0116] After the browser encapsulates the file data of the source file into the target file format, it performs a secondary encapsulation process on the file data in the target file format based on the network transmission protocol supported between the browser and the cloud server. For example, the network transmission protocol supported between the browser and the cloud server may be a block transfer protocol, or the network transmission protocol supported between the browser and the cloud server may be a file transfer protocol.

[0117] After obtaining the file data after the secondary packaging, the browser can encrypt the secondary packaging file data to ensure the security of information transmission between the browser and the cloud server. Exemplarily, the secondary packaging file data is encrypted based on the TLS protocol.

[0118] In practice, if the browser and the cloud server communicate based on the TCP protocol, the browser needs to re-encapsulate the encrypted file data into a third TCP message, and transmit the third TCP message to the cloud server.

[0119] Accordingly, after receiving the third TCP packet, the cloud server reads the message information in the third TCP packet and decrypts the message information in the third TCP packet based on the TLS protocol to obtain the re-encapsulated file data. Then, based on the network transmission protocol supported by the browser and the cloud server, the re-encapsulated file data is decapsulated to obtain the file data in the target file format.

[0120] After acquiring the file data in the target file format, the cloud server stores the file data in the target file in the storage space corresponding to the target virtual machine.

[0121] The following describes in detail the file data transmission process between the browser and the target virtual machine with reference to FIG8 .

[0122] Step S801: The terminal device obtains file data of the source file through the browser;

[0123] Step S802: The terminal device performs a packaging process on the file data of the source file through the browser, and packages the file data of the source file into file data in the target file format;

[0124] Step S803: The terminal device performs secondary packaging processing on the file data in the target file format through the browser based on the network transmission protocol supported between the browser and the cloud server;

[0125] Step S804: The terminal device encrypts the twice-encapsulated file data based on the TLS protocol through the browser;

[0126] Step S805: The terminal device encapsulates the encrypted and twice-encapsulated file data into a third TCP message through the browser;

[0127] Step S806: The terminal device sends the third TCP message to the cloud server through the browser;

[0128] Step S807: The cloud server reads the message information in the third TCP message;

[0129] Step S808: The cloud server decrypts the message information in the third TCP message based on the TLS protocol to obtain the twice-encapsulated file data;

[0130] Step S809: The cloud server decapsulates the twice-encapsulated file data based on the network transmission protocol supported between the browser and the cloud server to obtain file data in the target file format;

[0131] Step S810: The cloud server stores the file data in the target file format into a target file in the storage space corresponding to the target virtual machine.

[0132] In the embodiment of the present application, a user can log in to the target virtual machine through a terminal device and trigger a read operation in the display interface of the terminal device. After the cloud server stores the file data in the target file, it can display the file data obtained from the browser in the display interface of the terminal device. Exemplarily, the source file uploaded by the terminal device to the target virtual machine through the browser is an application installation package file. It is assumed that the cloud server creates a target file corresponding to the application installation package file in the target virtual machine according to the file information of the application installation package file; after the user logs in to the target virtual machine through the terminal device, the read operation of the target file can be triggered by clicking on the target file. After the cloud server transmits the operation information triggered by the user to the browser of the terminal device, and based on the above method, after the cloud server receives the file data of the application installation package transmitted by the browser, it stores the file data of the application installation package received from the browser in the target file; as shown in Figure 9, the "01.apk" file in the display interface corresponding to the target virtual machine.

[0133] In the embodiment of the present application, the terminal device transfers the file data of the source file to the target virtual machine through the browser. After the file data is stored in the target file, the user logs in to the target virtual machine through the terminal device and can perform read and write operations on the file data in the target file. The method of transmitting operation information of the read and write operations between the browser of the terminal device and the cloud server can be referred to the introduction above.

[0134] The present invention provides a method for uploading local source files on a terminal device to a virtual machine on a cloud server. Based on the method provided by the present invention, the terminal device displays a first display interface via a browser. The user can flexibly select the local source file to be uploaded on the terminal device in the first display interface of the browser. The browser receives the user-selected source file and encapsulates the source file into a file in a target file format. The browser can encapsulate multiple different file types into a file in the target file format, thereby enabling the upload of files of multiple different formats to the local terminal device. In addition, when a cloud server corresponds to multiple virtual machines, based on the method provided by the present invention, the user can also flexibly select a target virtual machine from multiple virtual machines. During the upload process, the browser encapsulates the file based on the network transmission protocol between the browser and the cloud server, facilitating accurate file transmission between the browser and the server. The browser also encrypts the uploaded file based on the TLS protocol, which can be decrypted on the cloud server side, thereby ensuring the security of the file transmission. Because the browser is a general-purpose web browser on the terminal device, the browser-based method for uploading local source files on the terminal device to the virtual machine does not require the installation of additional applications or plug-ins on the terminal device, and file upload can be conveniently performed based on the browser.

[0135] Based on the same inventive concept as the above embodiment, the embodiment of the present application provides a file transmission method performed by a terminal device, as shown in FIG10 . The method may include the following steps:

[0136] Step S1001: Displaying a first display interface of a browser, where the first display interface includes first information for configuring a cloud server;

[0137] Step S1002: In response to a user triggering an operation of uploading a local file through the first display interface, encapsulating the source file to be uploaded selected by the user based on a target file format, wherein the browser supports multiple different file formats and can uniformly encapsulate files of different file formats into a file of the target file format, and the target file format is a file format supported by the browser and the cloud server;

[0138] Step S1003: Upload the packaged source file to the cloud server through the browser.

[0139] Based on the same inventive concept as the above embodiment, this embodiment of the present application provides a file transmission method performed by a cloud server, as shown in FIG11 . The method may include the following steps:

[0140] Step S1101: receiving a source file uploaded by a terminal device through a browser. The source file is a file in a target file format after encapsulation. The browser supports multiple different file formats and can encapsulate files of different file formats into a file in a target file format. The target file format is a file format supported by the browser and the cloud server.

[0141] Step S1102: Create a target file corresponding to the source file.

[0142] In conjunction with the above method embodiments, embodiments of the present application also provide a file transfer device, which can be applied to a terminal device. In some embodiments, as shown in Figure 12, the file transfer device 1200 may include a display module 1201, a processing module 1202, and a transceiver module 1203. The file transfer device 1200 can be used to implement the functions of the above method embodiments, thereby achieving the beneficial effects of the above method embodiments.

[0143] The display module 1201 is used to display the first display interface of the browser, which includes first information for configuring the cloud server; the processing module 1202 is used to respond to the operation of uploading local files triggered by the user through the first display interface, and encapsulate the source file to be uploaded selected by the user based on the target file format, wherein the browser supports multiple different types of file formats and can uniformly encapsulate files of different file formats into files of the target file format, and the target file format is a file format supported by the browser and the cloud server; the transceiver module 1203 is used to upload the encapsulated source file to the cloud server through the browser.

[0144] In a possible implementation, the file formats supported by the browser include at least one of the following: zip file format, jar file format, war file format, tar file format, and iso file format.

[0145] In a possible implementation, the processing module 1202 is further configured to encapsulate the source file in the target file format based on a network transmission protocol supported by the browser and the cloud server.

[0146] In one possible embodiment, the display module 1201 is also used to display a second display interface of the browser, and the second display interface includes second information for configuring the cloud server; the processing module 1202 is also used to determine the target instance selected by the user from at least one instance corresponding to the cloud server; the target instance includes a target file, and the target file is a file created in the target instance after the cloud server receives the packaged source file.

[0147] The display module 1201, processing module 1202, and transceiver module 1203 can all be implemented via software or hardware. For example, the implementation of processing module 1202 will be described below using processing module 1202 as an example. Similarly, the implementation of display module 1201 and transceiver module 1203 can refer to the implementation of processing module 1202.

[0148] As an example of a software functional unit, the processing module 1202 may include code running on a computing instance. The computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Furthermore, the computing instance may be one or more. For example, the processing module 1202 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same AZ or in different AZs, and each AZ includes one data center or multiple geographically close data centers. Generally, a region may include multiple AZs.

[0149] Similarly, multiple hosts / virtual machines / containers running the code can be distributed within the same VPC or across multiple VPCs. Typically, a VPC is set up within a region. Cross-region communication between two VPCs within the same region, or between VPCs in different regions, requires a communication gateway within each VPC to interconnect the VPCs.

[0150] As an example of a hardware functional unit, processing module 1202 may include at least one computing device, such as a server. Alternatively, processing module 1202 may be implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0151] The multiple computing devices included in processing module 1202 can be distributed in the same region or in different regions. The multiple computing devices included in module A can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in module A can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of servers, ASICs, PLDs, CPLDs, FPGAs, GALs, and other computing devices.

[0152] It should be noted that, in other embodiments, the processing module 1202 can be used to execute any step in the file transmission method, the display module 1201 can be used to execute any step in the file transmission method, and the transceiver module 1203 can be used to execute any step in the file transmission method. The steps that the display module 1201, the processing module 1202, and the transceiver module 1203 are responsible for implementing can be specified as needed. The full functionality of the file transmission device is achieved by having the display module 1201, the processing module 1202, and the transceiver module 1203 respectively implement different steps in the file transmission method.

[0153] In conjunction with the above method embodiments, embodiments of the present application also provide a file transfer device, which can be applied to a terminal device. In some embodiments, as shown in Figure 13, the file transfer device 1300 may include a transceiver module 1301 and a processing module 1302. The file transfer device 1300 can be used to implement the functions of the above method embodiments, thereby achieving the beneficial effects of the above method embodiments.

[0154] The transceiver module 1301 is used to receive the source file uploaded by the terminal device through the browser. The source file is a file in the target file format after encapsulation. The browser supports multiple different types of file formats and can uniformly encapsulate files of different file formats into files in the target file format. The target file format is a file format supported by the browser and the cloud server; the processing module 1302 is used to create a target file corresponding to the source file.

[0155] In a possible implementation, the file formats supported by the browser include at least one of the following: zip file format, jar file format, war file format, tar file format, and iso file format.

[0156] In a possible implementation, the processing module 1302 is further configured to decapsulate the received source file based on a network transmission protocol to obtain the source file in a target file format; wherein the network transmission protocol is a transmission protocol supported by the browser and the cloud service.

[0157] In a possible implementation, the processing module 1302 is configured to create a target file corresponding to the source file in a target instance, where the target instance is selected by a user from at least one instance corresponding to the cloud server.

[0158] The transceiver module 1301 and the processing module 1302 can be implemented in software or hardware. For example, the implementation of the processing module 1302 will be described below using the processing module 1302 as an example. Similarly, the implementation of the transceiver module 1301 can refer to the implementation of the processing module 1302.

[0159] As an example of a software functional unit, the processing module 1302 may include code running on a computing instance. The computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Furthermore, the computing instance may be one or more. For example, the processing module 1302 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same AZ or in different AZs, and each AZ includes one data center or multiple data centers with close geographical locations. Generally, a region may include multiple AZs.

[0160] Similarly, multiple hosts / virtual machines / containers running the code can be distributed within the same VPC or across multiple VPCs. Typically, a VPC is set up within a region. Cross-region communication between two VPCs within the same region, or between VPCs in different regions, requires a communication gateway within each VPC to interconnect the VPCs.

[0161] As an example of a hardware functional unit, processing module 1302 may include at least one computing device, such as a server. Alternatively, processing module 1302 may be implemented using an ASIC or a PLD. The PLD may be implemented using a CPLD, FPGA, GAL, or any combination thereof.

[0162] The multiple computing devices included in processing module 1302 can be distributed in the same region or in different regions. The multiple computing devices included in module A can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in module A can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of servers, ASICs, PLDs, CPLDs, FPGAs, GALs, and other computing devices.

[0163] It should be noted that, in other embodiments, the processing module 1302 can be used to execute any step in the file transmission method, and the transceiver module 1301 can be used to execute any step in the file transmission method. The steps that the transceiver module 1301 and the processing module 1302 are responsible for implementing can be specified as needed. By having the transceiver module 1301 and the processing module 1302 respectively implement different steps in the file transmission method, the full functionality of the file transmission device is realized.

[0164] This application also provides a computing device 1400. As shown in Figure 14, computing device 1400 can be used to implement the functions of the terminal device or cloud server in the above-mentioned embodiments, and includes: a bus 1401, a processor 1402, a memory 1403, and a communication interface 1404. The processor 1402, the memory 1403, and the communication interface 1404 communicate with each other via bus 1401. Computing device 1400 can be a server or a terminal device. It should be understood that this application does not limit the number of processors and memories in computing device 1400.

[0165] Bus 1401 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, among others. Buses may be classified as address buses, data buses, control buses, and the like. For ease of illustration, FIG14 illustrates a single bus line, but this does not imply a single bus or type of bus. Bus 1401 may include a path for transmitting information between various components of computing device 1400 (e.g., memory 1403, processor 1402, and communication interface 1404).

[0166] The processor 1402 may include any one or more processors such as a CPU, a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0167] The memory 1403 may include a volatile memory, such as a random access memory (RAM). The processor 1402 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).

[0168] Memory 1403 stores executable program code. Processor 1402 executes the executable program code to implement the functions of display module 1201, processing module 1202, and transceiver module 1203, or the functions of transceiver module 1301 and processing module 1302, respectively, thereby implementing the file transfer method. In other words, memory 1403 stores instructions for executing the file transfer method.

[0169] The communication interface 1404 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 1400 and other devices or a communication network.

[0170] Embodiments of the present application also provide a computing device cluster. The computing device cluster includes at least one computing device. At least one computing device in the computing device cluster cooperates to implement the functions of the computing device in the above embodiments. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smartphone.

[0171] As shown in Figure 15, the computing device cluster includes at least one computing device 1400. The memory 1403 in one or more computing devices 1400 in the computing device cluster may store the same instructions for executing the file transfer method.

[0172] In some possible implementations, the memory 1403 of one or more computing devices 1400 in the computing device cluster may also store partial instructions for executing the file transfer method. In other words, the combination of one or more computing devices 1400 can jointly execute the instructions for executing the file transfer method.

[0173] It should be noted that the memory 1403 in different computing devices 1400 in the computing device cluster can store different instructions, each used to perform part of the functions of the computing device. In other words, the instructions stored in the memory 1903 in different computing devices 1400 can implement the functions of one or more units in the display module 1201, the processing module 1202, and the transceiver module 1203, or can implement the functions of the transceiver module 1301 and / or the processing module 1302.

[0174] In some possible implementations, one or more computing devices in a computing device cluster may be connected via a network, which may be a wide area network or a local area network.

[0175] Embodiments of the present application also provide a computer program product comprising instructions. The computer program product may be software or a program product comprising instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, it causes the at least one computing device to execute an application deployment method, or an application deployment method.

[0176] The embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center that contains one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive). The computer-readable storage medium includes instructions that instruct a computing device to execute an application deployment method, or instructs a computing device to execute an application deployment method.

[0177] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0178] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each flow and / or box in the flow chart and / or block diagram, as well as the combination of the flow chart and / or box in the flow chart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more flow charts and / or one or more boxes in the block diagram.

[0179] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0180] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0181] Obviously, those skilled in the art may make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include these modifications and variations.

Claims

1. A file transmission method, characterized in that: Applied to a terminal device, the method comprises: Displaying a first display interface of the browser, wherein the first display interface includes first information for configuring the cloud server; In response to an operation of uploading a local file triggered by the user through the first display interface, encapsulating the source file to be uploaded selected by the user based on a target file format, wherein the browser supports a plurality of different types of file formats and can uniformly encapsulate files of different file formats into files of the target file format, and the target file format is a file format supported by the browser and the cloud server; The packaged source file is uploaded to the cloud server through the browser.

2. The method according to claim 1, characterized in that The file formats supported by the browser include at least one of the following: zip file format, jar file format, war file format, tar file format, iso file format.

3. The method according to claim 1, characterized in that After encapsulating the source file to be uploaded selected by the user based on the target file format, and before uploading the encapsulated source file to the cloud server through the browser, the method further includes: Based on the network transmission protocol supported by the browser and the cloud server, the source file in the target file format is encapsulated.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Displaying a second display interface of the browser, wherein the second display interface includes second information for configuring the cloud server; Determine a target instance selected by the user from at least one instance corresponding to the cloud server; the target instance includes a target file, and the target file is a file created in the target instance after the cloud server receives the packaged source file.

5. A file transmission method, characterized in that: Applied to a cloud server, the method comprises: Receive a source file uploaded by a terminal device through a browser, wherein the source file is a file in a target file format after encapsulation, the browser supports multiple different types of file formats, and can uniformly encapsulate files of different file formats into a file in the target file format, and the target file format is a file format supported by the browser and the cloud server; Create a target file corresponding to the source file.

6. The method according to claim 5, characterized in that The file formats supported by the browser include at least one of the following: zip file format, jar file format, war file format, tar file format, iso file format.

7. The method according to claim 5, characterized in that If the received source file is a file obtained by encapsulating a source file in a target file format based on a network transmission protocol, before creating a target file corresponding to the source file, the method further includes: Based on the network transmission protocol, the received source file is decapsulated to obtain the source file in the target file format; wherein the network transmission protocol is a transmission protocol supported by the browser and the cloud service.

8. The method according to any one of claims 5 to 7, characterized in that: The step of creating a target file corresponding to the source file comprises: A target file corresponding to the source file is created in a target instance, where the target instance is selected by a user from at least one instance corresponding to the cloud server.

9. A file transmission device, characterized in that: The device comprises: A display module, used to display a first display interface of the browser, wherein the first display interface includes first information for configuring the cloud server; a processing module, configured to, in response to an operation of uploading a local file triggered by the user through the first display interface, encapsulate the source file to be uploaded selected by the user based on a target file format, wherein the browser supports a plurality of different types of file formats and can uniformly encapsulate files of different file formats into files of the target file format, and the target file format is a file format supported by the browser and the cloud server; The transceiver module is used to upload the packaged source file to the cloud server through the browser.

10. The device according to claim 9, characterized in that The file formats supported by the browser include at least one of the following: zip file format, jar file format, war file format, tar file format, iso file format.

11. The device according to claim 9, characterized in that After the processing module encapsulates the source file to be uploaded selected by the first user based on the target file format, and before the transceiver module uploads the encapsulated source file to the cloud server through the browser, the processing module is further configured to: Based on the network transmission protocol supported by the browser and the cloud server, the source file in the target file format is encapsulated.

12. The device according to any one of claims 9 to 11, characterized in that: The display module is further used to display a second display interface of the browser, wherein the second display interface includes second information for configuring the cloud server; The processing module is also used to determine the target instance selected by the user from at least one instance corresponding to the cloud server; the target instance includes a target file, and the target file is a file created in the target instance after the cloud server receives the source file after the encapsulation processing.

13. A file transmission device, characterized in that: The device comprises: A transceiver module, used to receive a source file uploaded by a terminal device through a browser, wherein the source file is a file in a target file format after encapsulation, the browser supports a variety of different file formats, and can uniformly encapsulate files of different file formats into a file in the target file format, and the target file format is a file format supported by the browser and the cloud server; The processing module is used to create a target file corresponding to the source file.

14. The device according to claim 13, characterized in that The file formats supported by the browser include at least one of the following: zip file format, jar file format, war file format, tar file format, iso file format.

15. The device according to claim 13, characterized in that If the received source file is a file obtained by encapsulating a source file in a target file format based on a network transmission protocol, before the processing module creates a target file corresponding to the source file, the processing module is further used to decapsulate the received source file based on the network transmission protocol to obtain the source file in the target file format; The network transmission protocol is a transmission protocol supported by the browser and the cloud service.

16. The device according to any one of claims 13 to 15, characterized in that: The processing module is used to create a target file corresponding to the source file in a target instance, where the target instance is selected by a user from at least one instance corresponding to the cloud server.

17. A computing device cluster, characterized in that: comprising at least one computing device, each computing device comprising a processor and a memory; The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method according to any one of claims 1 to 4, or executes the method according to any one of claims 5 to 8.

18. A file transmission system, characterized in that: Including terminal devices and cloud servers; The terminal device is used to execute the method according to any one of claims 1 to 4; The cloud server is used to execute the method according to any one of claims 5 to 8.

19. A computer-readable storage medium, characterized in that: The storage medium stores a computer program or an instruction. When the computer program or the instruction is executed by the communication device, the method according to any one of claims 1 to 4 or the method according to any one of claims 5 to 8 is implemented.

20. A computer program product, characterized in that When the computer program product is executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 4, or execute the method according to any one of claims 5 to 8.

Citation Information

Patent Citations

  • Application processing method of online file and system

    CN101923572A

  • Multi-user online data interaction cloud system

    CN103516813A

  • File processing method, file conversion encryption machine, terminal, server and medium

    CN112597523A

  • Resource cross-platform sharing method and device, terminal equipment and storage medium

    CN114218175A

  • File management method and device

    US20150294024A1