File transmission method, device and equipment
By receiving file access requests and matching file paths, the target files are directly obtained and transferred, which solves the problems of inconvenience and security risks between different devices, and achieves convenient and secure file transfer.
Patent Information
- Application Number
- CN202311109662.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-30
- Publication Date
- 2025-02-28
AI Technical Summary
When transferring files between different devices, unified communication tools are required or separate devices are introduced as transit, resulting in inconvenient transmission and risk of file security and confidentiality.
By receiving file access requests, the file name is obtained based on the target access address and matches the access addresses of each transferred file that are stored in advance to confirm the file path, thereby directly obtaining and transmitting the target file to avoid redirecting the device.
It realizes convenient file transfer between different devices, improves the portability and security of transmission, and avoids the security risks brought by transit equipment.
Smart Images

Figure CN119544698A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of file transmission, and in particular to the technical field of file transmission based on HTTPS protocol. Background Art
[0002] At present, when transferring files between different devices, it is often necessary to use a third-party instant messaging program, or to use a separate device as a transfer station to transfer files. The first transmission method requires both parties to install a unified communication tool, which reduces the convenience of transmission. The second transmission method still has great problems in convenience. At the same time, due to the introduction of a separate device as a transfer, there may be problems with file security and confidentiality during the file transfer process. Summary of the invention
[0003] The present disclosure provides a file transfer method, apparatus, device, storage medium and vehicle for solving the inconvenience of transmitting files between different devices at present, so that different devices can realize file transfer conveniently and quickly, avoiding the need to install unified communication tools between different devices or introduce separate devices as transfer to realize file transfer, thereby improving the portability of file transfer, and because no transfer device is required, thus improving the security and confidentiality of file transfer.
[0004] According to a first aspect of the present disclosure, a file transmission method is provided. The method comprises:
[0005] Receive a file access request, wherein the file access request carries a target access address of a target transfer file;
[0006] Based on the target access address, obtaining the file name of the target transfer file;
[0007] Matching the file name of the target transmission file with the pre-stored access address of each transmission file to confirm the file path of the target transmission file; wherein the access address of each transmission file includes the file name of each transmission file;
[0008] The target transfer file is obtained from the file path of the target transfer file and transmitted to the sender of the file access request.
[0009] This embodiment enables different devices to transfer files conveniently and quickly, avoiding the need to install a unified communication tool between different devices or introduce a separate device as a transit to achieve file transfer, thereby improving the portability of file transfer. Moreover, since no transit device is required, the security and confidentiality of file transfer are improved.
[0010] According to the above aspects and any possible implementation manner, an implementation manner is further provided, before matching the file name of the target transmission file with the access address of each pre-stored transmission file, the method further includes:
[0011] Obtain the network address and file transfer port number of the server where each transfer file is located;
[0012] The file name of each transmission file, the network address of the server where each transmission file is located, and the file transmission port number are combined to obtain the access address of each transmission file.
[0013] In this embodiment, after obtaining the network address and file transfer port number of the server where each transfer file is located, the file name of each transfer file, the network address and file transfer port number of the server where each transfer file is located can be automatically combined to obtain the access address of each transfer file. Compared with directly providing the file path of each file on the server to the sender, this can avoid the leakage of the real storage address of each file, thereby further improving the security of file transmission.
[0014] According to the above aspects and any possible implementation manner, an implementation manner is further provided, wherein matching the file name of the target transmission file with the pre-stored access address of each transmission file to confirm the file path of the target transmission file includes:
[0015] The file paths of the transmission files and the access addresses of the transmission files are stored in a preset mapping table in correspondence;
[0016] Matching the file name of the target transmission file with the access address of each transmission file in the preset mapping table to find the file path corresponding to the access address matching the file name of the target transmission file;
[0017] The file path corresponding to the access address that matches the file name of the target transmission file is confirmed as the file path of the target transmission file.
[0018] In this embodiment, by storing the file path of each transmission file and the access address of each transmission file in a preset mapping table, after the file name of the target transmission file matches the access address of each transmission file in the preset mapping table, the file path corresponding to the access address matching the file name of the target transmission file can be quickly found, and then the file path of the target transmission file can be determined.
[0019] According to the above aspects and any possible implementation, there is further provided an implementation, wherein the file access request also carries the current identity information of the request sender and the current request code;
[0020] The acquiring the target transmission file from the file path of the target transmission file and transmitting it to the sender includes:
[0021] Determining whether the current identity information matches the pre-stored legal identity information;
[0022] If they match, determining whether the current request code matches the preset request code;
[0023] If the current request code matches the preset request code, the target transmission file is read from the file path of the target transmission file and then transmitted to the sender.
[0024] This embodiment can increase the security of file transmission and ensure that there is no risk of file leakage.
[0025] According to the above aspects and any possible implementation method, an implementation method is further provided to display the result of whether the current identity information matches the pre-stored legal identity information and the result of whether the current request code matches the preset request code.
[0026] In this embodiment, by displaying the result of whether the current identity information matches the pre-stored legal identity information and whether the current request code matches the preset request code, the user on the server side can intuitively see whether the target transfer file can be sent to the sender.
[0027] According to the above aspects and any possible implementation, an implementation is further provided.
[0028] The sender includes multiple senders; the file access request includes multiple file access requests;
[0029] The step of acquiring the target transfer file from the file path of the target transfer file and transmitting the target transfer file to the sender of the file access request comprises:
[0030] Obtain the sender's current identity information and current request code carried in each file access request;
[0031] Determining whether the current identity information of each sender matches the pre-stored legal identity information;
[0032] Selecting a sender that matches the pre-stored legal identity information from among the senders as a candidate sender;
[0033] Confirm the request priority corresponding to the current request code of each sender;
[0034] Selecting a sender with the highest request priority from the candidate senders as a target sender;
[0035] The target transmission file is read from the file path of the target transmission file and then transmitted to the target sender.
[0036] This embodiment can ensure that the target transmission file is sent only to the legitimate sender with the highest request priority, and the confirmation of identity information and request code increases the security of file transmission and ensures that there is no risk of file leakage.
[0037] According to the above aspects and any possible implementation manner, an implementation manner is further provided, wherein the method further includes:
[0038] Tracking the current transfer progress of the target transfer file;
[0039] The current transmission progress of the target transmission file is displayed.
[0040] In this embodiment, the current transmission progress of the target transmission file is automatically displayed, so that the user at the server side can intuitively see the transmission progress of the target transmission file.
[0041] According to a second aspect of the present disclosure, a file transmission device is provided. The device comprises:
[0042] A receiving module, used for receiving a file access request, wherein the file access request carries a target access address of a target transfer file;
[0043] A parsing module, used for obtaining the file name of the target transmission file based on the target access address;
[0044] A matching module, used for matching the file name of the target transmission file with the pre-stored access address of each transmission file to confirm the file path of the target transmission file; wherein the access address of each transmission file includes the file name of each transmission file;
[0045] The acquisition module is used to acquire the target transfer file from the file path of the target transfer file and transmit the target transfer file to the sender of the file access request.
[0046] According to a third aspect of the present disclosure, an electronic device is provided, which includes a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the program, the method described above is implemented.
[0047] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the method according to the first aspect of the present disclosure is implemented.
[0048] According to a fifth aspect of the present disclosure, a vehicle is provided, the vehicle comprising the file transfer device as described in the second aspect and / or the electronic device as described in the third aspect.
[0049] In the present disclosure, when a file access request is received, the file name of the target transfer file can be obtained based on the target access address, and then the file name of the target transfer file is matched with the access addresses of each transfer file stored in advance, so that the file path of the target transfer file can be confirmed, and then the target transfer file can be obtained from the file path of the target transfer file and then transmitted to the sender of the file access request. In this way, different devices can realize file transfer conveniently and quickly, avoiding the need to install a unified communication tool between different devices or introduce a separate device as a transit to realize file transfer, thereby improving the portability of file transfer, and since no transit device is required, the security and confidentiality of file transfer are improved.
[0050] It should be understood that the contents described in the summary of the invention are not intended to limit the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, among which:
[0052] Figure 1 A flowchart of a file transmission method according to an embodiment of the present disclosure is shown;
[0053] Figure 2 A schematic diagram of file transmission based on the HTTPS protocol according to an embodiment of the present disclosure is shown;
[0054] Figure 3 A block diagram of a file transmission device according to an embodiment of the present disclosure is shown;
[0055] Figure 4 A block diagram of an exemplary electronic device capable of implementing embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0057] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. 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 " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0058] Figure 1 The flowchart of the file transmission method 100 according to the embodiment of the present disclosure is shown. The execution subject of the method 100 may be a server, and the method 100 may include:
[0059] Step 110, receiving a file access request, wherein the file access request carries a target access address of a target transfer file;
[0060] The file access request may be a file access request based on the Https protocol sent by the sender to the target access address;
[0061] Https protocol is Hypertext Transfer Protocol.
[0062] The file access request based on the Https protocol is a file access request generated using the Https protocol, which is a file access request based on a browser. The sender can be any device among multiple devices that need to transfer files (such as Figure 2 Any device in the multiple devices), and the server is other devices in the multiple devices except the any device (such as Figure 2 For example: the sender is Figure 2 If the server is a device using the Android system, then the server can be a device using the Windows operating system, or the server can be a device using the IOS operating system.
[0063] The sender may be a client, requesting the target transfer file as a client. The target access address may be provided to the sender in advance by the server. Of course, since the target access address may be generated by the network address of the server, the port number of the port for transferring files on the server, and the file name of the target transfer file, if the sender knows the generation rule of the access address, the target access address may also be automatically generated based on this information.
[0064] Since the target access address is generated in combination with the file name of the target transmission file, the file name of the target transmission file can be obtained based on the target access address.
[0065] Step 120, based on the target access address, obtaining the file name of the target transmission file;
[0066] Specifically, the target access address carried in the file access request may be parsed, and then the file name of the target transmission file that the sender needs to access may be obtained;
[0067] During parsing, the target access address can be parsed according to the starting position and byte length of the file name in the access address to obtain the file name of the target transfer file.
[0068] The file access request may include not only the target access address, but also the sender's intention (such as downloading, uploading), the sender's current identity information and the current request code. Of course, the sender's intention can be represented by a number or symbol, for example: the number 1 represents the sender's intention to download, the number 0 represents the sender's intention to upload, or the symbol / represents the sender's intention to download, and the symbol , represents the sender's intention to upload; this is not limited in the present disclosure. The target access address may include not only the file name of the target transfer file, but also the network address of the server where the target transfer file is located and the file transfer port number of the target transfer file, that is, the target access address may be composed of these three items of information.
[0069] Step 130, matching the file name of the target transmission file with the pre-stored access address of each transmission file to confirm the file path of the target transmission file; wherein the access address of each transmission file includes the file name of each transmission file;
[0070] The file path of each transmission file and the access address of each transmission file may be stored in correspondence in advance, so that after confirming the access address matching the target transmission file, the file path of the target transmission file may be confirmed.
[0071] Each transmitted file can be any video, document, audio, etc., and there is no restriction on the platform and transmission protocol used. For example: the sender can be a platform using the Android operating system or the sender can be a platform using the IOS system (mobile operating system) or the sender can be a platform using the MAC system or the sender can be a platform using the Windows system.
[0072] For another example: the sender can use the Http protocol to send the file access request, or the sender can use the FTP (File Transfer Protocol) protocol to send the file access request, or the sender can use the TCP / IP protocol to send the file access request. Of course, it is preferred that the sender uses the Http protocol to send the file access request, that is, the sender and the receiver can transfer files through the cross-platform feature of the web browser, which means that the present disclosure can use the browser to easily implement file transfer between different types of devices.
[0073] Step 140: Obtain the target transfer file from the file path of the target transfer file and transmit it to the sender of the file access request.
[0074] When a file access request is received, the file name of the target transfer file can be obtained based on the target access address, and then the file name of the target transfer file can be matched with the access addresses of each transfer file stored in advance to confirm the file path of the target transfer file. The target transfer file can then be obtained from the file path of the target transfer file and then transmitted to the sender of the file access request. In this way, different devices can realize file transfer conveniently and quickly, avoiding the need to install a unified communication tool between different devices or introduce a separate device as a transit to realize file transfer, thereby improving the portability of file transfer, and since no transit device is required, the security and confidentiality of file transfer are improved.
[0075] In some embodiments, before matching the file name of the target transmission file with the pre-stored access address of each transmission file, the method further includes:
[0076] Obtain the network address and file transfer port number of the server where each transfer file is located;
[0077] The network address is the IP (Internet Protocol Address) address.
[0078] The file transfer port number is the port number of the port for transferring files. A file transfer port number can be arbitrarily specified on each server.
[0079] The file name of each transmission file, the network address of the server where each transmission file is located, and the file transmission port number are combined to obtain the access address of each transmission file.
[0080] After obtaining the network address and file transfer port number of the server where each transfer file is located, the file name of each transfer file, the network address and file transfer port number of the server where each transfer file is located can be automatically combined to obtain the access address of each transfer file. Compared with directly providing the file path of each file on the server to the sender, this can avoid the leakage of the real storage address of each file, thereby further improving the security of file transmission.
[0081] The combination can be as follows:
[0082] The access address of each transferred file = the network address of the server where each transferred file is located + the file transfer port number + the file name of each transferred file. For example, if the network address of device A is 192.168.1.1, the file transfer port number is 8080, and the file name of the target transferred file is sample.txt, then the access address of the target transferred file can be: https: / / 192.168.1.1:8080 / download / sample.txt, but its actual file path on the server can be / sdcard / shared / sample.txt->sample.txt.
[0083] In some embodiments, matching the file name of the target transmission file with the pre-stored access addresses of each transmission file to confirm the file path of the target transmission file includes:
[0084] The file paths of the transmission files and the access addresses of the transmission files are stored in a preset mapping table in correspondence;
[0085] Matching the file name of the target transmission file with the access address of each transmission file in the preset mapping table to find the file path corresponding to the access address matching the file name of the target transmission file;
[0086] Since the access address of each transmission file is generated by the file name of each transmission file, the file path matching the file name of the target transmission file can be found by matching the file name of the target transmission file with the access address of each transmission file.
[0087] The file path corresponding to the access address that matches the file name of the target transmission file is confirmed as the file path of the target transmission file.
[0088] By storing the file paths of each transmission file and the access addresses of each transmission file in a preset mapping table, the file name of the target transmission file is matched with the access addresses of each transmission file in the preset mapping table, the file path corresponding to the access address matching the file name of the target transmission file can be found, and then the file path of the target transmission file can be determined.
[0089] In some embodiments, the file access request also carries the current identity information of the request sender and the current request code;
[0090] The current identity information may be a CA (Certificate Authority) certificate, a public key, and the like.
[0091] The acquiring the target transmission file from the file path of the target transmission file and transmitting it to the sender includes:
[0092] Determining whether the current identity information matches the pre-stored legal identity information;
[0093] If they match, determining whether the current request code matches the preset request code;
[0094] The current request code can be a randomly generated string.
[0095] If the current request code matches the preset request code, the target transmission file is read from the file path of the target transmission file and then transmitted to the sender.
[0096] If the current identity information matches the pre-stored legal identity information, it means that the sender is a legal sender and has preliminary access qualifications. Furthermore, if the current request code matches the preset request code, it means that the sender is the sender for whom the server needs to provide file services. Therefore, the target transfer file can be automatically read from the file path of the target transfer file, and then the target transfer file can be automatically transferred to the sender. After receiving the data stream from the server, the sender automatically enters the file writing process. By default, the target transfer file is written to a specific directory (such as / sdcard / shared), and the target file name is consistent with the file name on the server.
[0097] In addition, the confirmation of identity information and request code increases the security of file transmission and ensures that there is no risk of file leakage.
[0098] In some embodiments, the result of whether the current identity information matches the pre-stored legal identity information and the result of whether the current request code matches the preset request code are displayed.
[0099] By displaying the result of whether the current identity information matches the pre-stored legal identity information and whether the current request code matches the preset request code, the user on the server side can intuitively see whether the target transfer file can be sent to the sender.
[0100] In some embodiments, the sender includes multiple senders; the file access request includes multiple senders;
[0101] The acquiring the target transmission file from the file path of the target transmission file and transmitting it to the sender includes:
[0102] Obtain the sender's current identity information and current request code carried in each file access request;
[0103] Determining whether the current identity information of each sender matches the pre-stored legal identity information;
[0104] Selecting a sender that matches the pre-stored legal identity information from among the senders as a candidate sender;
[0105] Confirm the request priority corresponding to the current request code of each sender;
[0106] Selecting a sender with the highest request priority from the candidate senders as a target sender;
[0107] The target transmission file is read from the file path of the target transmission file and then transmitted to the target sender.
[0108] There can be multiple senders, and accordingly, the file access request can also include multiple ones. In this way, it can be determined whether the current identity information of each sender matches the pre-stored legal identity information, and then the sender matching the pre-stored legal identity information is selected from each sender as a candidate sender, that is, a legal sender is selected from multiple senders, and then the request priority corresponding to the current request code of each sender is confirmed, and then the sender with the highest request priority is selected from the candidate senders as the target sender. In this way, the target transfer file can be read from the file path of the target transfer file and then transmitted to the target sender. This ensures that the target transfer file is only sent to a legal sender with the highest request priority, and the confirmation of the identity information and the request code increases the security of file transmission and ensures that there is no risk of file leakage.
[0109] In some embodiments, the method further comprises:
[0110] Tracking the current transfer progress of the target transfer file;
[0111] The current transmission progress of the target transmission file is displayed.
[0112] By automatically displaying the current transmission progress of the target transmission file, the user at the server side can intuitively see the transmission progress of the target transmission file.
[0113] The following will be combined Figure 2 The technical solution of the present disclosure is further described in detail:
[0114] With device A (such as Figure 2 Windows device) to device B (such as Figure 2 Take sending the specified file sample.txt to an Android device in the example, connect devices A and B to the same network, A acts as the server (assuming the IP is 192.168.1.1), and B acts as the sender (assuming the IP is 192.168.1.2).
[0115] When creating the server, specify the port information (such as 8080), and the file path to be transferred (such as / sdcard / shared / sample.txt->sample.txt) and the access address of the file path (such as https: / / 192.168.1.1:8080 / download / sample.txt ) are added to the mapping table accordingly.
[0116] B can only access the specified address https: / / 192.168.1.1:8080 / download / sample.txt with his own identity information and request code. At the same time, a pop-up window can be displayed to show the request code used for this request. Specifically: when the server receives the request for the URL, it will parse out the key information download and sample.txt, and get the specific file path of the corresponding file from the mapping table, and get the sender's identity information and request code from the request. At the same time, a pop-up window will prompt whether the request code and identity are acceptable. If confirmed, the server can enter the file stream sending process, and the current file sending progress can be displayed on the UI.
[0117] After receiving the data stream from the server, the sender automatically enters the process of writing files. By default, the file is written to a specific directory (such as / sdcard / shared), and the file name is consistent with that on the server.
[0118] Similarly, B can also be used as the server (i.e., Http server), and A accesses the specified address https: / / 192.168.1.2:8080 / upload / sample.txt. B receives the request and writes the data stream to the specified file / sdcard / shared / sample.txt after passing the identity authentication.
[0119] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present disclosure is not limited by the order of the actions described, because according to the present disclosure, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present disclosure.
[0120] The above is an introduction to the method embodiment. The following is a further explanation of the scheme disclosed in the present invention through an apparatus embodiment.
[0121] Figure 3 FIG. 3 shows a block diagram of a file transmission device 300 according to an embodiment of the present disclosure. Figure 3 As shown, the device 300 includes:
[0122] The receiving module 310 is used to receive a file access request, wherein the file access request carries a target access address of a target transfer file;
[0123] The parsing module 320 is used to obtain the file name of the target transmission file based on the target access address;
[0124] A matching module 330 is used to match the file name of the target transmission file with the pre-stored access address of each transmission file to confirm the file path of the target transmission file; wherein the access address of each transmission file includes the file name of each transmission file;
[0125] The acquisition module 340 is used to acquire the target transfer file from the file path of the target transfer file and transmit it to the sender of the file access request.
[0126] This embodiment enables different devices to transfer files conveniently and quickly, avoiding the need to install a unified communication tool between different devices or introduce a separate device as a transit to achieve file transfer, thereby improving the portability of file transfer. Moreover, since no transit device is required, the security and confidentiality of file transfer are improved.
[0127] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the described module can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0128] According to an embodiment of the present disclosure, the present disclosure further provides an electronic device, including:
[0129] at least one processor; and
[0130] a memory communicatively connected to the at least one processor; wherein,
[0131] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform any one of the above method embodiments.
[0132] According to an embodiment of the present disclosure, the present disclosure further provides a vehicle, comprising: the file transmission device as described in the above embodiment or the electronic device as described in the above embodiment.
[0133] According to an embodiment of the present disclosure, the present disclosure further provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute any one of the above method embodiments.
[0134] Figure 4 A schematic block diagram of an electronic device 400 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0135] The device 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 402 or a computer program loaded from a storage unit 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the device 400 can also be stored. The computing unit 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0136] A number of components in the device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0137] The computing unit 401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 401 performs the various methods and processes described above, such as method 100. For example, in some embodiments, the method 100 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 400 via ROM 402 and / or communication unit 409. When the computer program is loaded into RAM 403 and executed by the computing unit 401, one or more steps of the method 100 described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to perform the method 100 in any other appropriate manner (e.g., by means of firmware).
[0138] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0139] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0140] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0141] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0142] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0143] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0144] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0145] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A file transmission method, characterized in that: include: Receive a file access request, wherein the file access request carries a target access address of a target transfer file; Based on the target access address, obtaining the file name of the target transfer file; Matching the file name of the target transmission file with the pre-stored access address of each transmission file to confirm the file path of the target transmission file; wherein the access address of each transmission file includes the file name of each transmission file; The target transfer file is obtained from the file path of the target transfer file and transmitted to the sender of the file access request.
2. The method according to claim 1, characterized in that Before matching the file name of the target transmission file with the access address of each pre-stored transmission file, the method further includes: Obtain the network address and file transfer port number of the server where each transfer file is located; The file name of each transmission file, the network address of the server where each transmission file is located, and the file transmission port number are combined to obtain the access address of each transmission file.
3. The method according to claim 2, characterized in that The matching of the file name of the target transmission file with the pre-stored access addresses of each transmission file to confirm the file path of the target transmission file includes: The file paths of the transmission files and the access addresses of the transmission files are stored in a preset mapping table in correspondence; Matching the file name of the target transmission file with the access address of each transmission file in the preset mapping table to find the file path corresponding to the access address matching the file name of the target transmission file; The file path corresponding to the access address that matches the file name of the target transmission file is confirmed as the file path of the target transmission file.
4. The method according to claim 1, characterized in that The file access request also carries the current identity information and current request code of the request sender; The acquiring the target transmission file from the file path of the target transmission file and transmitting it to the sender includes: Determining whether the current identity information matches the pre-stored legal identity information; If they match, determining whether the current request code matches the preset request code; If the current request code matches the preset request code, the target transmission file is read from the file path of the target transmission file and then transmitted to the sender.
5. The method according to claim 4, characterized in that The result of whether the current identity information matches the pre-stored legal identity information and the result of whether the current request code matches the preset request code are displayed.
6. The method according to claim 1, characterized in that The sender includes multiple senders; the file access request includes multiple file access requests; The step of acquiring the target transfer file from the file path of the target transfer file and transmitting the target transfer file to the sender of the file access request comprises: Obtain the sender's current identity information and current request code carried in each file access request; Determining whether the current identity information of each sender matches the pre-stored legal identity information; Selecting a sender that matches the pre-stored legal identity information from among the senders as a candidate sender; Confirm the request priority corresponding to the current request code of each sender; Selecting a sender with the highest request priority from the candidate senders as a target sender; The target transmission file is read from the file path of the target transmission file and then transmitted to the target sender.
7. The method according to claim 1, characterized in that The method further comprises: Tracking the current transfer progress of the target transfer file; The current transmission progress of the target transmission file is displayed.
8. A file transmission device, characterized in that: include: A receiving module, used for receiving a file access request, wherein the file access request carries a target access address of a target transfer file; A parsing module, used for obtaining the file name of the target transmission file based on the target access address; A matching module, used for matching the file name of the target transmission file with the pre-stored access address of each transmission file to confirm the file path of the target transmission file; wherein the access address of each transmission file includes the file name of each transmission file; The acquisition module is used to acquire the target transfer file from the file path of the target transfer file and transmit the target transfer file to the sender of the file access request.
9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-7.
11. A vehicle, characterized in that: include: The apparatus as claimed in claim 8, and / or the electronic device as claimed in claim 9, and / or the readable storage medium as claimed in claim 10.