Movatterモバイル変換


[0]ホーム

URL:


CN114039967A - A file transmission method, device, device and storage medium - Google Patents

A file transmission method, device, device and storage medium
Download PDF

Info

Publication number
CN114039967A
CN114039967ACN202111273544.1ACN202111273544ACN114039967ACN 114039967 ACN114039967 ACN 114039967ACN 202111273544 ACN202111273544 ACN 202111273544ACN 114039967 ACN114039967 ACN 114039967A
Authority
CN
China
Prior art keywords
file
node
uploaded
external network
network node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111273544.1A
Other languages
Chinese (zh)
Inventor
孙玲军
周运杰
宋丕先
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou China Blasting Digital Information Technology Co ltd
Original Assignee
Guangzhou China Blasting Digital Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou China Blasting Digital Information Technology Co ltdfiledCriticalGuangzhou China Blasting Digital Information Technology Co ltd
Priority to CN202111273544.1ApriorityCriticalpatent/CN114039967A/en
Publication of CN114039967ApublicationCriticalpatent/CN114039967A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明公开了一种文件传输方法、装置、设备及存储介质。在接收外网节点发出的文件上传请求之后,基于文件上传请求中外网节点的节点信息对外网节点进行校验,在校验通过时,通过待上传文件在外网节点中的存储路径从外网节点中下载待上传文件,将待上传文件上传至内网节点中指定存储路径下。当该文件在内网节点和外网节点中的其中任意一个发生修改时,另一个节点中相应的文件可以实现对应修改,实现网络不互通的两个文件存储系统文件同步。

Figure 202111273544

The invention discloses a file transmission method, device, equipment and storage medium. After receiving the file upload request sent by the external network node, the external network node is verified based on the node information of the external network node in the file upload request. Download the file to be uploaded in the server, and upload the file to be uploaded to the specified storage path in the intranet node. When the file is modified in any one of the internal network node and the external network node, the corresponding file in the other node can be modified accordingly, so as to realize the file synchronization of the two file storage systems that are not interconnected by the network.

Figure 202111273544

Description

File transmission method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a file transmission method, a file transmission device, file transmission equipment and a storage medium.
Background
File transfer (file transfer) refers to the transfer of a file or a part thereof from one node to another on a network.
In some practical application scenarios, for example, companies, schools or government departments, to ensure internal data security, an internal local area network, called an intranet, is usually isolated from an extranet, and when file transmission is performed between the intranet and the extranet, authority verification is required.
However, in the current interaction process of intranet and extranet files, if a file is modified in one of the intranet and extranet, for example, the content, attribute, etc. of the file changes in the extranet, the file cannot be modified synchronously in the intranet.
Disclosure of Invention
The invention provides a file transmission method, a device, equipment and a storage medium, which are used for realizing file synchronization between an internal network and an external network.
In a first aspect, an embodiment of the present invention provides a file transfer method, including:
receiving a file uploading request sent by an external network node, wherein the uploading request carries a specified storage path, a storage path of a file to be uploaded in the external network node and node information of the external network node;
verifying the external network node based on the node information of the external network node in the file uploading request;
when the verification is passed, downloading the file to be uploaded from the external network node through the storage path of the file to be uploaded in the external network node;
and uploading the file to be uploaded to the designated storage path in the intranet node.
Optionally, the designated storage path and the storage path of the file to be uploaded in the extranet node are both relative paths of the file to be uploaded in the extranet node.
Optionally, the checking the extranet node based on the node information of the extranet node in the file upload request includes:
judging whether the external network node sending the file uploading request belongs to a pre-configured white list or not based on the node information;
if yes, confirming that the verification is passed;
if not, the verification is not passed.
Optionally, uploading the file to be uploaded to the internal network node under the specified storage path includes:
searching a matched original file from the intranet node according to the file information of the file to be uploaded;
when an original file matched with the file to be uploaded exists in the intranet node, generating a link file pointing to the original file;
and uploading the link file to the designated storage path in the intranet node.
Optionally, the file transmission method further includes:
and uploading the file to be uploaded to the designated storage path in the intranet node when the original file matched with the file to be uploaded does not exist in the intranet node.
Optionally, generating a link file pointing to the original file includes:
acquiring a relative path of the original file in the intranet node;
taking the relative path of the original file as the file content of the link file;
and generating the file name of the link file according to a preset strategy.
Optionally, after generating the link file pointing to the original file, the method further includes:
and recording the creation time of the link file.
In a second aspect, an embodiment of the present invention further provides a file transmission apparatus, including:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a file uploading request sent by an external network node, and the uploading request carries a specified storage path, a storage path of a file to be uploaded in the external network node and node information of the external network node;
the verification module is used for verifying the external network nodes based on the node information of the external network nodes in the file uploading request;
the downloading module is used for downloading the file to be uploaded from the external network node through the storage path of the file to be uploaded in the external network node when the verification is passed;
and the uploading module is used for uploading the file to be uploaded to the designated storage path in the intranet node.
Optionally, the designated storage path and the storage path of the file to be uploaded in the extranet node are both relative paths of the file to be uploaded in the extranet node.
Optionally, the checking module includes:
the judging submodule is used for judging whether the external network node sending the file uploading request belongs to a preconfigured white list or not based on the node information;
the verification result determining submodule is used for determining that the verification is passed when the external network node of the file uploading request belongs to a pre-configured white list; and when the external network node of the file uploading request does not belong to the pre-configured white list, confirming that the verification is not passed.
Optionally, the uploading module includes:
the file matching submodule is used for searching a matched original file from the intranet node according to the file information of the file to be uploaded;
the link file generation submodule is used for generating a link file pointing to the original file when the original file matched with the file to be uploaded exists in the intranet node;
and the first file uploading sub-module is used for uploading the link file to the designated storage path in the intranet node.
Optionally, the file transfer device further includes:
and the second file uploading module is used for uploading the file to be uploaded to the intranet node under the specified storage path when the original file matched with the file to be uploaded does not exist in the intranet node.
Optionally, the link file generation sub-module includes:
a relative path obtaining unit, configured to obtain a relative path of the original file in the intranet node;
the file content confirmation unit is used for taking the relative path of the original file as the file content of the link file;
and the file name generating unit is used for generating the file name of the link file according to a preset strategy.
Optionally, the file transfer device further includes:
and the recording module is used for recording the creation time of the link file after the link file pointing to the original file is generated.
In a third aspect, an embodiment of the present invention further provides a computer device, including:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the file transfer method as provided by the first aspect of the invention.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the file transfer method according to the first aspect of the present invention.
According to the file transmission method provided by the embodiment of the invention, after a file uploading request sent by an external network node is received, the external network node is verified based on the node information of the external network node in the file uploading request, when the verification is passed, a file to be uploaded is downloaded from the external network node through a storage path of the file to be uploaded in the external network node, and the file to be uploaded is uploaded to a designated storage path in the internal network node. When the file is modified in any one of the internal network node and the external network node, the corresponding file in the other node can be correspondingly modified, and the file synchronization of two file storage systems which are not communicated with each other in the network is realized.
Drawings
Fig. 1 is a schematic flowchart of a file transmission method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a file transmission method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a file transfer device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic flow diagram of a file transmission method according to an embodiment of the present invention, where the present embodiment is applicable to a case where files in an intranet and an extranet cannot be synchronized, and the method may be executed by a file transmission apparatus according to an embodiment of the present invention, where the apparatus may be implemented by software and/or hardware, and is generally configured in a computer device, as shown in fig. 1, the method specifically includes the following steps:
s101, receiving a file uploading request sent by an external network node, wherein the uploading request carries a specified storage path, a storage path of a file to be uploaded in the external network node and node information of the external network node.
A node is a computer or other device connected to a network having an independent address and a function of transmitting or receiving data. The nodes may be workstations, clients, network users or personal computers, servers, printers and other network-connected devices. Each workstation, server, terminal device, network device, i.e. the device having its own unique network address, is a node. The whole network is composed of a plurality of nodes, and the plurality of nodes are connected by communication lines to form a certain geometrical relationship, namely a computer network topology.
The intranet nodes are nodes in the internal local area network, and the extranet nodes are nodes in the external network. Illustratively, in a specific embodiment of the present invention, the intranet lan is an internal network of an e-government system.
When the external network node has a file transmission requirement, the external network node sends a file uploading request to a gateway (such as a router), and the gateway external network node sends a file uploading request to be received.
In the embodiment of the invention, the file uploading request carries the specified storage path, the storage path of the file to be uploaded in the external network node and the node information of the external network node. The designated storage path is a path in which a file to be uploaded is to be stored in an intranet node, and the node information of the extranet node may be an ip address, an MAC address of the node, or a unique identification code for characterizing the node.
In the embodiment of the present invention, the file may be a text, a picture, a video, an audio, an executable file or a folder, and the like, and the type and format of the file are not limited in the embodiment of the present invention.
S102, verifying the external network nodes based on the node information of the external network nodes in the file uploading request.
Specifically, after receiving the file uploading request, the file uploading request is analyzed to obtain node information of the extranet node, the extranet node is verified according to the node information of the extranet node, and whether the extranet node is a legal node is verified.
S103, when the verification is passed, downloading the file to be uploaded from the external network node through the storage path of the file to be uploaded in the external network node.
Specifically, after receiving the file uploading request, the file uploading request is analyzed, and a storage path of the file to be uploaded in the extranet node is obtained. In the step of verifying the extranet node based on the node information of the extranet node in the file uploading request, if the verification is passed, the file to be uploaded is downloaded from the extranet node through the storage path of the file to be uploaded in the extranet node.
And S104, uploading the file to be uploaded to an appointed storage path in the intranet node.
In the embodiment of the invention, after the file uploading request is received, the file uploading request is analyzed, and the appointed storage path of the file to be uploaded is obtained. After the file to be uploaded is downloaded from the external network node, the file to be uploaded is uploaded to the internal network node under the appointed storage path.
When the file is modified (for example, the content, the attribute and the like of the file are changed) in any one of the internal network node and the external network node, the corresponding file in the other node can be correspondingly modified, so that the file synchronization of two file storage systems which are not communicated with each other in the network is realized, and the method can be applied to an internal and external network exchange scene of an electronic government system. Illustratively, when a certain file is modified in an extranet node, the file can be found according to the specified storage path of the file in an intranet node, and corresponding modification is carried out, so that the file synchronization of two file storage systems which are not communicated with each other in the network is realized.
According to the file transmission method provided by the embodiment of the invention, after a file uploading request sent by an external network node is received, the external network node is verified based on the node information of the external network node in the file uploading request, when the verification is passed, a file to be uploaded is downloaded from the external network node through a storage path of the file to be uploaded in the external network node, and the file to be uploaded is uploaded to a designated storage path in the internal network node. When the file is modified in any one of the internal network node and the external network node, the corresponding file in the other node can be correspondingly modified, and the file synchronization of two file storage systems which are not communicated with each other in the network is realized.
Example two
Fig. 2 is a schematic flow chart of a file transmission method according to a second embodiment of the present invention, which is detailed based on the first embodiment, as shown in fig. 2, the method includes:
s201, receiving a file uploading request sent by an external network node, wherein the uploading request carries a specified storage path, a storage path of a file to be uploaded in the external network node and node information of the external network node.
The intranet nodes are nodes in an internal local area network, and the extranet nodes are nodes in an external network. Illustratively, in a specific embodiment of the present invention, the intranet lan is an internal network of an e-government system.
With the enhancement of environmental awareness of people and the continuous upgrading of office mode requirements of various industries, the pace of modernization and informatization construction is accelerated, and paperless office work is gradually applied to an electronic government system by concepts. Electronic government refers to a brand new management mode for office work, management and public service provision for society by comprehensively applying modern information technology, network technology, office automation technology and the like in government activities.
S202, judging whether the external network node sending the file uploading request belongs to a pre-configured white list or not based on the node information.
For example, information such as current limit fusing, authentication authorization, black and white list, etc. may be configured in the gateway in advance. Wherein requests belonging to the white list may be considered legitimate requests.
When a file uploading request sent by an external network node is received, whether the external network node sending the file uploading request belongs to a pre-configured white list or not can be judged based on node information, if so, the file uploading request is allowed to pass, and otherwise, the file uploading request is prevented from passing. By the method, illegal or redundant requests can be filtered before the gateway and outside the system, the safety and stability of an internal system are ensured, meanwhile, black and white lists and the like of the external requests are dynamically configured in the gateway, configuration in the gateway is not needed at each time, only operation and maintenance personnel add configuration in a configuration center, and the configuration is not needed to be frequently modified by a network administrator, so that the network safety is transmitted to the operation and maintenance personnel from the network administrator, and the complex and fussy system configuration is converted into simple application configuration.
And S203, when the verification is passed, downloading the file to be uploaded from the external network node through the storage path of the file to be uploaded in the external network node.
Specifically, after receiving the file uploading request, the file uploading request is analyzed, and a storage path of the file to be uploaded in the extranet node is obtained. In the step of verifying the extranet node based on the node information of the extranet node in the file uploading request, if the verification is passed, the file to be uploaded is downloaded from the extranet node through the storage path of the file to be uploaded in the extranet node.
And S204, searching the matched original file from the intranet node according to the file information of the file to be uploaded.
In the embodiment of the invention, after downloading the file to be uploaded from the external network node, the gateway searches the matched original file from the internal network node according to the file information of the file to be uploaded in the file uploading request. The file information may be a file name, or an encoding representing a file content, and the embodiment of the present invention is not limited herein. In the embodiment of the present invention, if the file names or codes representing the contents of the files of the two files are the same, the two files are regarded as substantially the same file.
For example, in a Linux file system, a partition is mainly divided into two parts: a small part is used to save inode information (index) of the file, and the remaining large part is used to save block information. The default size of the inode is 128 bytes, which is used to record the authority (read, write and delete) of the file, the owner and the affiliation of the file, the size of the file, the state change time of the file, the last read time of the file, the last modification time of the file, and the block number of the file where the data is really stored, and each file needs to occupy one inode. The inode does not record file names, and the file names are recorded in the block of the directory where the files are located. Each file occupies an inode by itself, and the file contents are pointed to by the inode's records.
If the original file matched with the file to be uploaded is stored in the intranet node (namely the file to be uploaded and the original file are the same). And when the matched original file is searched from the intranet node according to the file information of the file to be uploaded, searching the file name of the original file in the block where the directory is located. If the original file needs to be accessed, the inode of the original file needs to be found by means of the file name of the original file, and the block where the file content is located can be successfully found.
And S205, when the original file matched with the file to be uploaded exists in the intranet node, generating a link file pointing to the original file.
In the embodiment of the invention, if the original file matched with the file to be uploaded is found in the intranet node, the fact that the file identical with the file to be uploaded already exists in the intranet node is indicated, at this time, only a link file pointing to the original file needs to be generated and uploaded to the intranet node for storage.
Illustratively, in some embodiments of the present invention, the step S205 may include the following sub-steps:
1. and acquiring a relative path of the original file in the intranet node.
In the embodiment of the invention, if the original file which is the same as the file to be uploaded already exists in the intranet node, the relative path of the original file in the intranet node is obtained. The relative path refers to the path relationship with other files (or folders) caused by the path of the file. An absolute path is a path where a file actually exists on a hard disk, and is counted from the beginning of a disk character, if a file is located below "C: \ Program Files \ Jiangmin", then this path is its absolute path. A relative path may be understood as a portion of an absolute path and is a portion that does not include a system drive letter.
2. And taking the relative path of the original file as the file content of the link file.
In the embodiment of the invention, after the relative path of the original file in the intranet node is obtained, the link file is generated, and the relative path of the original file in the intranet node is used as the file content of the link file. Illustratively, in the embodiment of the present invention, in order to be consistent with the format of the photo of the identification card to be uploaded, the link file is in a picture format (e.g.,. jpg), the link file can be edited by using a notepad, and the relative path of the original file in the intranet node is written into the link file. When the original file needs to be checked in the later period, the link file can be opened, the relative path in the link file is obtained, and the original file can be found and printed according to the relative path.
Since the relative path of the original file in the intranet node is stored in the link file, the original file can be found according to the relative path even if the absolute path of the original file in the intranet node changes.
3. And generating the file name of the link file according to a preset strategy.
And generating a file name of the link file according to a preset strategy while generating the link file. Specifically, in the embodiment of the present invention, the file name of the link file includes node information of an external node (i.e., a node that uploads the file), the CRC32 code of the original file, the link file identification code, and the time when the link file is generated. When the original file needs to be checked in the later period, the link file is firstly positioned through the file name, the link file is opened, the relative path in the link file is obtained, and the original file can be found and printed according to the relative path.
And S206, uploading the link file to an appointed storage path in the intranet node.
And uploading the generated link file to the intranet node under the designated storage path.
Compared with the original file, the storage space occupied by the link file is less than 100 bytes, the occupied storage resource is greatly reduced, and meanwhile, the corresponding original file can be found through the link file subsequently. When the same file as the original file is transmitted to the intranet node, a link file pointing to the original file is newly created according to the method. Therefore, for one file, only the original file during the first transmission needs to be saved, the expenditure of storage resources caused by repeated files is greatly reduced, and the storage cost is reduced.
For example, when a user transacts electronic business with an e-government system, the e-government system often requires the user to upload identity information (e.g., a photograph or scanned piece of an identity card) via an extranet node to verify the user's identity. Since the identity information uploaded for many times is the same, if the identity information is saved each time, the storage overhead of the government affair system is inevitably huge. By adopting the file transmission method provided by the embodiment of the invention, the expenditure of storage resources caused by repeatedly uploading the same identity information is greatly reduced, and the storage cost is reduced.
And S207, uploading the file to be uploaded to a designated storage path in the intranet node when the original file matched with the file to be uploaded does not exist in the intranet node.
In the embodiment of the invention, if the original file which is the same as the file to be uploaded does not exist in the intranet node, the file to be uploaded is uploaded to the designated storage path in the intranet node.
In some embodiments of the present invention, the designated storage path of the file to be uploaded is a relative path of the file to be uploaded in the first node. And when the file to be uploaded (or the link file) is uploaded, uploading the file to be uploaded to a designated storage path of the intranet node according to the relative path. In this way, even if the storage path of a certain node in the internal network changes, the file can still be found through the relative path because the file is stored under the relative path.
In some embodiments of the invention, the e-government system may record the creation time of the link file in order to record the occurrence time of the authentication.
According to the file transmission method provided by the embodiment of the invention, the file uploading request comprises the appointed storage path of the file to be uploaded, and when the link file is stored, the link file is stored under the appointed storage path of the internal node according to the appointed storage path. Therefore, when the link file is modified at any one of the internal node and the external node, the corresponding file in the other node can be correspondingly modified, and the file synchronization of two file storage systems which are not communicated with each other in the network is realized. Furthermore, the designated storage path of the file to be uploaded is a relative path of the file to be uploaded in the extranet node. In this way, even if the storage path of a file at a certain node in the intranet network changes, the file is stored under the relative path, so that the file can still be found through the relative path. In addition, when the original file matched with the file to be uploaded exists in the intranet node, a link file pointing to the original file is generated and uploaded, and the corresponding original file can be found through the link file. Compared with the original file, the storage resource occupied by the link file is greatly reduced, and only the original file during the first transmission needs to be stored for one file, so that the storage resource overhead caused by repeated files is greatly reduced, and the storage cost is reduced.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a file transfer device according to a third embodiment of the present invention, and as shown in fig. 3, the file transfer device includes:
areceiving module 301, configured to receive a file upload request sent by an external network node, where the upload request carries a specified storage path, a storage path of a file to be uploaded in the external network node, and node information of the external network node;
achecking module 302, configured to check the extranet node based on the node information of the extranet node in the file upload request;
adownloading module 303, configured to download, when the check passes, the file to be uploaded from the extranet node through a storage path of the file to be uploaded in the extranet node;
and theuploading module 304 is configured to upload the file to be uploaded to the specified storage path in the intranet node.
Optionally, the designated storage path and the storage path of the file to be uploaded in the extranet node are both relative paths of the file to be uploaded in the extranet node.
Optionally, thechecking module 302 includes:
the judging submodule is used for judging whether the external network node sending the file uploading request belongs to a preconfigured white list or not based on the node information;
the verification result determining submodule is used for determining that the verification is passed when the external network node of the file uploading request belongs to a pre-configured white list; and when the external network node of the file uploading request does not belong to the pre-configured white list, confirming that the verification is not passed.
Optionally, theuploading module 304 includes:
the file matching submodule is used for searching a matched original file from the intranet node according to the file information of the file to be uploaded;
the link file generation submodule is used for generating a link file pointing to the original file when the original file matched with the file to be uploaded exists in the intranet node;
and the first file uploading sub-module is used for uploading the link file to the designated storage path in the intranet node.
Optionally, the file transfer device further includes:
and the second file uploading sub-module is used for uploading the file to be uploaded to the intranet node under the specified storage path when the original file matched with the file to be uploaded does not exist in the intranet node.
Optionally, the link file generation sub-module includes:
a relative path obtaining unit, configured to obtain a relative path of the original file in the intranet node;
the file content confirmation unit is used for taking the relative path of the original file as the file content of the link file;
and the file name generating unit is used for generating the file name of the link file according to a preset strategy.
Optionally, the file transfer device further includes:
and the recording module is used for recording the creation time of the link file after the link file pointing to the original file is generated.
The file transmission device can execute the file transmission method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the file transmission method.
Example four
A fourth embodiment of the present invention provides a computer device, and fig. 4 is a schematic structural diagram of the computer device provided in the fourth embodiment of the present invention, as shown in fig. 4, the computer device includes:
aprocessor 401, amemory 402, acommunication module 403, aninput device 404, and anoutput device 405; the number of theprocessors 401 in the mobile terminal may be one or more, and oneprocessor 401 is taken as an example in fig. 4; theprocessor 401, thememory 402, thecommunication module 403, theinput device 404 and theoutput device 405 in the mobile terminal may be connected by a bus or other means, and fig. 4 illustrates an example of a connection by a bus. Theprocessor 401,memory 402,communication module 403,input device 404, andoutput device 405 described above may be integrated on a computer device.
Thememory 402, which is a computer-readable storage medium, may be used to store software programs, computer-executable programs, and modules, such as the modules corresponding to the file transfer methods in the above embodiments. Theprocessor 401 executes various functional applications and data processing of the computer device by executing software programs, instructions and modules stored in thememory 402, that is, implements the file transfer method described above.
Thememory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the microcomputer, and the like. Further, thememory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, thememory 402 may further include memory located remotely from theprocessor 401, which may be connected to an electronic device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
And acommunication module 403, configured to establish a connection with an external device (e.g., an intelligent terminal), and implement data interaction with the external device. Theinput device 404 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function controls of the computer apparatus.
The computer device provided by this embodiment of the present invention is capable of executing the file transmission method provided by any of the above embodiments of the present invention, and has corresponding functions and advantageous effects.
EXAMPLE five
An embodiment of the present invention provides a storage medium containing computer-executable instructions, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the method for file transfer provided in any of the above embodiments of the present invention is implemented, where the method includes:
receiving a file uploading request sent by an external network node, wherein the uploading request carries a specified storage path, a storage path of a file to be uploaded in the external network node and node information of the external network node;
verifying the external network node based on the node information of the external network node in the file uploading request;
when the verification is passed, downloading the file to be uploaded from the external network node through the storage path of the file to be uploaded in the external network node;
and uploading the file to be uploaded to the designated storage path in the intranet node.
It should be noted that, as for the apparatus, the device and the storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and in relevant places, reference may be made to the partial description of the method embodiments.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a robot, a personal computer, a server, or a network device) to execute the file transmission method according to any embodiment of the present invention.
It should be noted that, in the above apparatus, each included module is merely divided according to functional logic, but is not limited to the above division as long as the corresponding function can be achieved; in addition, the specific names of the functional modules are only for convenience of distinguishing from each other and are not used for limiting the protection scope of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by suitable instruction execution devices. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for file transfer, comprising:
receiving a file uploading request sent by an external network node, wherein the uploading request carries a specified storage path, a storage path of a file to be uploaded in the external network node and node information of the external network node;
verifying the external network node based on the node information of the external network node in the file uploading request;
when the verification is passed, downloading the file to be uploaded from the external network node through the storage path of the file to be uploaded in the external network node;
and uploading the file to be uploaded to the designated storage path in the intranet node.
2. The file transmission method according to claim 1, wherein the designated storage path and the storage path of the file to be uploaded in the extranet node are both relative paths of the file to be uploaded in the extranet node.
3. The file transmission method according to claim 1, wherein checking the extranet node based on the node information of the extranet node in the file upload request includes:
judging whether the external network node sending the file uploading request belongs to a pre-configured white list or not based on the node information;
if yes, confirming that the verification is passed;
if not, the verification is not passed.
4. The file transmission method according to any one of claims 1 to 3, wherein uploading the file to be uploaded to the designated storage path in the intranet node comprises:
searching a matched original file from the intranet node according to the file information of the file to be uploaded;
when an original file matched with the file to be uploaded exists in the intranet node, generating a link file pointing to the original file;
and uploading the link file to the designated storage path in the intranet node.
5. The file transfer method according to claim 4, further comprising:
and uploading the file to be uploaded to the designated storage path in the intranet node when the original file matched with the file to be uploaded does not exist in the intranet node.
6. The file transfer method according to claim 4, wherein generating a link file pointing to the original file comprises:
acquiring a relative path of the original file in the intranet node;
taking the relative path of the original file as the file content of the link file;
and generating the file name of the link file according to a preset strategy.
7. The file transfer method according to claim 4, further comprising, after generating the link file pointing to the original file:
and recording the creation time of the link file.
8. A file transfer apparatus, comprising:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a file uploading request sent by an external network node, and the uploading request carries a specified storage path, a storage path of a file to be uploaded in the external network node and node information of the external network node;
the verification module is used for verifying the external network nodes based on the node information of the external network nodes in the file uploading request;
the downloading module is used for downloading the file to be uploaded from the external network node through the storage path of the file to be uploaded in the external network node when the verification is passed;
and the uploading module is used for uploading the file to be uploaded to the designated storage path in the intranet node.
9. A computer device, comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the file transfer method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a file transfer method according to any one of claims 1 to 7.
CN202111273544.1A2021-10-292021-10-29 A file transmission method, device, device and storage mediumPendingCN114039967A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202111273544.1ACN114039967A (en)2021-10-292021-10-29 A file transmission method, device, device and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202111273544.1ACN114039967A (en)2021-10-292021-10-29 A file transmission method, device, device and storage medium

Publications (1)

Publication NumberPublication Date
CN114039967Atrue CN114039967A (en)2022-02-11

Family

ID=80142407

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202111273544.1APendingCN114039967A (en)2021-10-292021-10-29 A file transmission method, device, device and storage medium

Country Status (1)

CountryLink
CN (1)CN114039967A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101534480A (en)*2009-04-142009-09-16南京大学Cross network file synchronizing method based on mobile software agent
CN103780648A (en)*2012-10-222014-05-07百度在线网络技术(北京)有限公司Synchronizing system and method for developer information of inner network and outer network
CN105530254A (en)*2015-12-172016-04-27浙江工业大学 A data communication method between internal and external networks
US9614826B1 (en)*2014-05-202017-04-04Symantec CorporationSensitive data protection
WO2017101426A1 (en)*2015-12-142017-06-22乐视控股(北京)有限公司Method for use in file synchronization, recipient device, and system
CN108900625A (en)*2018-07-172018-11-27河北中科恒运软件科技股份有限公司It is a kind of based on government affairs application cloud on storage method
CN109561124A (en)*2017-09-272019-04-02深圳市创易联合科技有限公司A kind of method, system and the terminal device of file transmission
CN110413702A (en)*2019-06-182019-11-05山谷网安科技股份有限公司Heterogeneous database intranet and extranet synchronous method, apparatus and system
US20200034129A1 (en)*2018-07-292020-01-30ColorTokens, Inc.Computer implemented system and method for encoding configuration information in a filename
CN111049907A (en)*2019-12-122020-04-21杭州安恒信息技术股份有限公司File transmission method, device, system, equipment and readable storage medium
CN112131194A (en)*2020-09-242020-12-25上海摩勤智能技术有限公司 A file storage control method and device for a read-only file system, and a storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101534480A (en)*2009-04-142009-09-16南京大学Cross network file synchronizing method based on mobile software agent
CN103780648A (en)*2012-10-222014-05-07百度在线网络技术(北京)有限公司Synchronizing system and method for developer information of inner network and outer network
US9614826B1 (en)*2014-05-202017-04-04Symantec CorporationSensitive data protection
WO2017101426A1 (en)*2015-12-142017-06-22乐视控股(北京)有限公司Method for use in file synchronization, recipient device, and system
CN105530254A (en)*2015-12-172016-04-27浙江工业大学 A data communication method between internal and external networks
CN109561124A (en)*2017-09-272019-04-02深圳市创易联合科技有限公司A kind of method, system and the terminal device of file transmission
CN108900625A (en)*2018-07-172018-11-27河北中科恒运软件科技股份有限公司It is a kind of based on government affairs application cloud on storage method
US20200034129A1 (en)*2018-07-292020-01-30ColorTokens, Inc.Computer implemented system and method for encoding configuration information in a filename
CN110413702A (en)*2019-06-182019-11-05山谷网安科技股份有限公司Heterogeneous database intranet and extranet synchronous method, apparatus and system
CN111049907A (en)*2019-12-122020-04-21杭州安恒信息技术股份有限公司File transmission method, device, system, equipment and readable storage medium
CN112131194A (en)*2020-09-242020-12-25上海摩勤智能技术有限公司 A file storage control method and device for a read-only file system, and a storage medium

Similar Documents

PublicationPublication DateTitle
CN111935110B (en)Method and device for controlling permission of tenant to access container instance
US11374979B2 (en)Graph-based policy representation system for managing network devices
US20170371625A1 (en)Content delivery method
EP3852329B1 (en)Document tracking method, gateway device and server
CN112653757B (en)File management system, method and equipment
CN112543109A (en)Cloud host creation method, system, server and storage medium
JP7633761B2 (en) Verifying the tracked portion of the received sensor data using computer cryptography.
CN115242434A (en)Application program interface API identification method and device
CN115510163A (en) Synchronization method, device, storage medium and electronic equipment for mirror image files
CN105262800B (en)A kind of authority control method and system applied to cluster NAS file system
CN112073212A (en)Parameter configuration method, device, terminal equipment and storage medium
CN114422160A (en)Method and device for setting virtual firewall, electronic equipment and storage medium
CN114390044B (en)File uploading method, system, equipment and storage medium
JP2010250548A (en)Log output device
CN114039967A (en) A file transmission method, device, device and storage medium
CN112667586A (en)Method, system, device and medium for data synchronization based on stream processing
CN111858497B (en) A storage type conversion method, device and equipment
CN114157435B (en)Document processing method and device based on blockchain technology and client
CN117118972A (en)Method, device, equipment and medium capable of recording file circulation process
CN114020690A (en) A file transmission method, device, device and storage medium
CN113810415A (en)Method for operation and maintenance of unmanaged host account through bastion machine
CN116684282B (en)Method and device for initializing newly-added cloud server and computer equipment
CN114064566A (en) A file filing method, system, storage medium and device
US12418559B2 (en)Method for emulating an attack on an asset within a target network
US20250298897A1 (en)Security Scan With Backup

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20220211

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp