[go: up one dir, main page]

CN107172090B - File acquisition method and acquisition device - Google Patents

File acquisition method and acquisition device Download PDF

Info

Publication number
CN107172090B
CN107172090B CN201710533505.8A CN201710533505A CN107172090B CN 107172090 B CN107172090 B CN 107172090B CN 201710533505 A CN201710533505 A CN 201710533505A CN 107172090 B CN107172090 B CN 107172090B
Authority
CN
China
Prior art keywords
user
file
information
target file
identification information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710533505.8A
Other languages
Chinese (zh)
Other versions
CN107172090A (en
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710533505.8A priority Critical patent/CN107172090B/en
Publication of CN107172090A publication Critical patent/CN107172090A/en
Application granted granted Critical
Publication of CN107172090B publication Critical patent/CN107172090B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明实施例公开了一种文件的获取方法及获取装置,包括接收第一用户发送的针对目标文件的下载请求;根据下载请求从文件存储空间中获取目标文件;获取目标文件的标识信息和第一用户的用户信息;向第一用户发送目标文件;根据目标文件的标识信息和第一用户的用户信息生成文件下载记录,并存储于预设数据库中。从本发明提供的技术方案可见,根据目标文件的标识信息和所述第一用户的用户信息生成文件下载记录,这样下载记录就实现了用户和所下载文件的绑定,从而在所下载文件被他人盗用时,通过记录就可以获取曾经下载过该文件的用户,从而在极大程度上缩小盗用者的范围。

Figure 201710533505

The embodiment of the present invention discloses a file acquisition method and an acquisition device, including receiving a download request for a target file sent by a first user; acquiring a target file from a file storage space according to the download request; acquiring identification information of the target file and a first User information of a user; send the target file to the first user; generate a file download record according to the identification information of the target file and the user information of the first user, and store it in a preset database. It can be seen from the technical solution provided by the present invention that a file download record is generated according to the identification information of the target file and the user information of the first user, so that the download record realizes the binding between the user and the downloaded file, so that when the downloaded file is When others steal the file, users who have downloaded the file can be obtained through records, thereby reducing the scope of the pirates to a great extent.

Figure 201710533505

Description

File acquisition method and acquisition device
Technical Field
The present invention relates to the field of data processing, and in particular, to a method and an apparatus for acquiring a file.
Background
With the rapid development of the internet, people can download various files required by people from the internet, and the method is very simple and rapid.
However, due to the simple and fast file acquisition method, some individuals or units often directly acquire files of other people as research results of the individuals or the units, and therefore the interests of copyright owners are seriously impaired.
Disclosure of Invention
In order to solve the above technical problems, the present invention provides a method and an apparatus for acquiring a file, which can record a download history of the file, so that when the file is illegally stolen, a user who has downloaded the file can be acquired through recording, thereby reducing the scope of the pirate to a great extent.
In order to achieve the object of the present invention, the present invention provides a file acquisition method, including:
receiving a downloading request aiming at a target file sent by a first user;
acquiring a target file from a file storage space according to the downloading request;
acquiring identification information of the target file and user information of the first user; the identification information of the target file is information which uniquely identifies the target file;
sending the target file to the first user;
and generating a file downloading record according to the identification information of the target file and the user information of the first user, and storing the file downloading record in a preset database.
After the obtaining of the identification information of the target file and the user information of the first user, the method further includes:
acquiring the moment when the downloading request is received;
correspondingly, the generating a download record according to the identification information of the target file and the user information of the first user, and storing the download record in a preset database includes:
and generating a file downloading record according to the identification information of the target file, the user information of the first user and the moment of receiving the downloading request, and storing the file downloading record in the preset database.
The sending the target file to the first user includes:
judging whether the first user is a legal user or not;
and if the first user is determined to be a legal user, sending the target file to the first user.
The judging whether the first user is a legal user comprises the following steps:
calculating the identification information of the target file and the user information of the first user by adopting a preset algorithm and generating a verification code;
sending the verification code to the first user in a contact way reserved by the first user;
receiving a verification code input by the first user;
judging whether the verification code input by the first user is consistent with the verification code generated by calculating the identification information of the target file and the user information of the first user by adopting the pre-algorithm;
and if so, determining that the first user is a legal user.
The invention also provides a file acquisition device, comprising:
the receiving module is used for receiving a downloading request aiming at a target file sent by a first user;
the acquisition module is used for acquiring a target file from the file storage space according to the downloading request; acquiring identification information of the target file and user information of the first user; the identification information of the target file is information which uniquely identifies the target file;
a sending module, configured to send the target file to the first user;
and the processing module is used for generating a file downloading record according to the identification information of the target file and the user information of the first user and storing the file downloading record in a preset database.
The acquisition module is further configured to acquire a time when the download request is received;
the processing module is specifically configured to generate a file download record according to the identification information of the target file, the user information of the first user, and the time when the download request is received, and store the file download record in a preset database.
Before receiving a download request for a target file sent by a first user, the method further includes:
receiving a file uploading request containing a file to be uploaded sent by a second user;
storing the file to be uploaded in the file storage space;
acquiring identification information of the file to be uploaded and user information of the second user; the identification information of the file to be uploaded is the information which uniquely identifies the file to be uploaded;
and generating a file uploading record according to the identification information of the file to be uploaded and the user information of the second user, and storing the file uploading record in the preset database.
The sending module comprises:
the judging unit is used for judging whether the first user is a legal user or not;
and the sending unit is used for sending the target file to the first user if the first user is determined to be a legal user.
The judgment unit is specifically configured to:
calculating the identification information of the target file and the user information of the first user by adopting a preset algorithm and generating a verification code;
sending the verification code to the first user;
receiving a verification code input by the first user;
judging whether the verification code input by the first user is consistent with the verification code generated by calculating the identification information of the target file and the user information of the first user by adopting the pre-algorithm;
and if so, determining that the first user is a legal user.
The receiving module is further used for receiving a file uploading request containing a file to be uploaded, which is sent by a second user;
the acquisition module is further configured to acquire identification information of the file to be uploaded and user information of the second user; the identification information of the file to be uploaded is the information which uniquely identifies the file to be uploaded;
the processing module is further configured to store the file to be uploaded in the file storage space;
and generating a file uploading record according to the identification information of the file to be uploaded and the user information of the second user, and storing the file uploading record in the preset database.
Compared with the prior art, the method at least comprises the steps of receiving a downloading request aiming at the target file sent by a first user; acquiring a target file from a file storage space according to a downloading request; acquiring identification information of a target file and user information of a first user; sending a target file to a first user; and generating a file downloading record according to the identification information of the target file and the user information of the first user, and storing the file downloading record in a preset database. According to the technical scheme provided by the invention, when a downloading request aiming at the target file sent by the first user is received, the user information of the first user is obtained, and the file downloading record is generated according to the identification information of the target file and the user information of the first user, so that the downloading record realizes the binding of the user and the downloaded file, and the user who downloads the file can be obtained through the record when the downloaded file is stolen by others, thereby greatly reducing the range of thieves.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a schematic flowchart of a file acquisition method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another file acquisition method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another file acquisition method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a file acquisition apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another file acquiring apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
An embodiment of the present invention provides a file acquisition method, as shown in fig. 1, the method includes:
step 101, receiving a downloading request for a target file sent by a first user.
It should be noted that the first user is a user who sends a download request for the target file, and is distinguished from a user who uploads the file.
Specifically, the number of the object files may be one or more, and the present invention is not limited thereto.
And 102, acquiring a target file from the file storage space according to the downloading request.
Specifically, since the user needs to send the target file first, the target file needs to be obtained from the file storage space storing all files according to the download request.
And 103, acquiring the identification information of the target file and the user information of the first user.
The identification information of the target file is the only information capable of identifying the target file.
Specifically, the identification information may be a check code obtained by checking the target file through a Message Digest fifth version (MD 5) Algorithm; the identification information of the target file may also be the file name of the target file if the file names of each file are different.
It should be noted that the user information is related information that is filled in by the user at the time of registration, and the user information may include a user name of the user, a contact address of the user, and the like, where the contact address of the user may include a telephone contact address and an email contact address, and therefore the user information is unique.
Specifically, the user needs to register before sending a download request for the target file, and during the registration, the user fills in information such as a user name, a contact information of the user, and a login password, and the information is stored in the system, wherein the login password set by the user is stored in a form of a ciphertext for security. After the user finishes registering and before the file is required to be downloaded, the user can log in the system according to the registered user name and the set login password, after the user logs in the system, the user sends a downloading request aiming at the target file, and because the request is sent on the name of the user, the system can obtain the user information of the user according to the stored information after receiving the downloading request.
And 104, sending the target file to the first user.
And 105, generating a file downloading record according to the identification information of the target file and the user information of the first user, and storing the file downloading record in a preset database.
Specifically, because the identification information of the target file and the user information of the first user are unique, the download record realizes the binding between the first user and the downloaded file.
The file acquisition method provided by the invention receives a downloading request aiming at a target file sent by a first user; acquiring a target file from a file storage space according to a downloading request; acquiring identification information of a target file and user information of a first user; sending a target file to a first user; and generating a file downloading record according to the identification information of the target file and the user information of the first user, and storing the file downloading record in a preset database. According to the technical scheme provided by the invention, when a downloading request aiming at the target file sent by the first user is received, the user information of the first user is obtained, and the file downloading record is generated according to the identification information of the target file and the user information of the first user, so that the downloading record realizes the binding of the user and the downloaded file, and the user who downloads the file can be obtained through the record when the downloaded file is stolen by others, thereby greatly reducing the range of thieves.
An embodiment of the present invention provides another file acquisition method, as shown in fig. 2, the method includes:
step 201, receiving a downloading request for a target file sent by a first user.
Step 202, obtaining the target file from the file storage space according to the downloading request.
Step 203, acquiring the identification information of the target file and the user information of the first user.
The identification information of the target file is the only information capable of identifying the target file.
And step 204, acquiring the time when the downloading request is received.
Specifically, the time when the download request is received includes year, month, day, hour, minute, and may also include second.
It should be noted that, since the communication speed is extremely fast, the time when the download request is transmitted is very close to the time when the download request is received and the time when the target file is received by the user, the time when the target file is downloaded by the user is represented by the time when the download request transmitted by the user is received.
Step 205, determine whether the first user is a valid user.
And step 206, if the first user is determined to be a legal user, sending the target file to the first user.
It should be noted that, if it is determined that the first user is not a legal user, the target file is not sent to the first user.
And step 207, generating a file downloading record according to the identification information of the target file, the user information of the first user and the time when the downloading request is received, and storing the file downloading record in a preset database.
Specifically, the time when the download request is received is added to the download record, so that the binding between the user and the downloaded file and the download time of the user is realized.
It should be noted that, for the explanation of the same steps or concepts in the present embodiment as in the other embodiments, reference may be made to the description in the other embodiments.
The file acquisition method provided by the invention receives a downloading request aiming at a target file sent by a first user; acquiring a target file from a file storage space according to a downloading request; acquiring identification information of a target file and user information of a first user; sending a target file to a first user; and generating a file downloading record according to the identification information of the target file and the user information of the first user, and storing the file downloading record in a preset database. According to the technical scheme provided by the invention, when a downloading request aiming at the target file sent by the first user is received, the user information of the first user is obtained, and the file downloading record is generated according to the identification information of the target file and the user information of the first user, so that the downloading record realizes the binding of the user and the downloaded file, and the user who downloads the file can be obtained through the record when the downloaded file is stolen by others, thereby greatly reducing the range of thieves.
An embodiment of the present invention provides another file obtaining method, as shown in fig. 3, the method includes:
step 301, receiving a file uploading request containing a file to be uploaded sent by a second user.
It should be noted that the second user is a user who sends a file upload request containing a file to be uploaded, and is different from the user who downloads the file.
Step 302, storing the file to be uploaded in a file storage space.
And step 303, acquiring the identification information of the file to be uploaded and the user information of the second user.
The identification information of the file to be uploaded is the only information capable of identifying the file to be uploaded.
Specifically, a user needs to register before sending a file uploading request containing a file to be uploaded, the user fills in information such as a user name, a contact way of the user, a login password and the like during registration, the information is stored in the system, and the login password set by the user is stored in a form of a ciphertext for safety. After the user finishes registering and before the file is required to be uploaded, the user can log in the system according to the registered user name and the set login password, after the user logs in the system, the user sends a file uploading request containing the file to be uploaded, and because the request is sent in the name of the user, the system can obtain the user information of the user according to the stored information after receiving the uploading request.
And 304, generating a file uploading record according to the identification information of the file to be uploaded and the user information of the second user, and storing the file uploading record in a preset database.
Specifically, the identification information of the file to be uploaded and the user information of the second user are unique, so that the second user and the file uploaded by the second user are bound.
Step 305, receiving a downloading request for a target file sent by a first user.
And step 306, acquiring the target file from the file storage space according to the downloading request.
And 307, acquiring the identification information of the target file and the user information of the first user.
The identification information of the target file is the only information capable of identifying the target file.
Step 308, obtaining the time when the download request is received.
Step 309, calculating the identification information of the target file and the user information of the first user by adopting a preset algorithm, and generating a verification code.
Step 310, sending the verification code to the first user in the contact way reserved by the first user.
It should be noted that the purpose of sending the verification code to the first user is to dynamically verify the identity of the first user, and prevent others from stealing the identity of the first user to download the file.
Step 311, receiving a verification code input by a first user.
And step 312, judging whether the verification code input by the first user is consistent with the verification code generated by calculating the identification information of the target file and the user information of the first user by adopting a pre-algorithm.
And 313, if the first user is consistent with the second user, determining that the first user is a legal user.
Step 314, sending the target file to the first user.
It should be noted that even if the first user requests to download the target file after logging in successfully, the system will not send the target file to the first user if the subsequent legal user identity fails.
And 315, generating a file downloading record according to the identification information of the target file, the user information of the first user and the time when the downloading request is received, and storing the file downloading record in a preset database.
Specifically, the time when the download request is received is added to the download record, so that the binding between the user and the downloaded file and the download time of the user is realized.
It should be noted that, for the explanation of the same steps or concepts in the present embodiment as in the other embodiments, reference may be made to the description in the other embodiments.
The file acquisition method provided by the invention receives a downloading request aiming at a target file sent by a first user; acquiring a target file from a file storage space according to a downloading request; acquiring identification information of a target file and user information of a first user; sending a target file to a first user; and generating a file downloading record according to the identification information of the target file and the user information of the first user, and storing the file downloading record in a preset database. According to the technical scheme provided by the invention, when a downloading request aiming at the target file sent by the first user is received, the user information of the first user is obtained, and the file downloading record is generated according to the identification information of the target file and the user information of the first user, so that the downloading record realizes the binding of the user and the downloaded file, and the user who downloads the file can be obtained through the record when the downloaded file is stolen by others, thereby greatly reducing the range of thieves.
An embodiment of the present invention provides an apparatus for acquiring a file, as shown in fig. 4, where the apparatus 4 includes:
the receiving module 41 is configured to receive a download request for a target file sent by a first user.
An obtaining module 42, configured to obtain a target file from a file storage space according to a download request; acquiring identification information of a target file and user information of the first user; the identification information of the target file is information for uniquely identifying the target file.
A sending module 43, configured to send the target file to the first user.
And the processing module 44 is configured to generate a file download record according to the identification information of the target file and the user information of the first user, and store the file download record in a preset database.
Further, the obtaining module 42 is further configured to obtain a time when the download request is received.
The processing module 44 is specifically configured to generate a file download record according to the identification information of the target file, the user information of the first user, and the time when the download request is received, and store the file download record in a preset database.
Further, on the basis of the embodiment corresponding to fig. 4, an embodiment of the present invention provides another file obtaining apparatus, as shown in fig. 5, the sending module 43 includes:
the determining unit 431 is configured to determine whether the first user is a valid user.
A sending unit 432, configured to send the target file to the first user if it is determined that the first user is a legal user.
The determining unit 431 is specifically configured to:
and calculating the identification information of the target file and the user information of the first user by adopting a preset algorithm and generating the verification code.
The verification code is sent to the first user.
A verification code input by a first user is received.
And judging whether the verification code input by the first user is consistent with the verification code generated by calculating the identification information of the target file and the user information of the first user by adopting a pre-algorithm.
And if so, determining that the first user is a legal user.
Further, the receiving module 41 is further configured to receive a file upload request that includes a file to be uploaded and is sent by a second user.
The obtaining module 42 is further configured to obtain identification information of the file to be uploaded and user information of the second user; the identification information of the file to be uploaded is the information which uniquely identifies the file to be uploaded.
The processing module 44 is further configured to store the file to be uploaded in the file storage space; and generating a file uploading record according to the identification information of the file to be uploaded and the user information of the second user.
The file acquisition device provided by the invention receives a downloading request aiming at a target file sent by a first user; acquiring a target file from a file storage space according to a downloading request; acquiring identification information of a target file and user information of a first user; sending a target file to a first user; and generating a file downloading record according to the identification information of the target file and the user information of the first user, and storing the file downloading record in a preset database. According to the technical scheme provided by the invention, when a downloading request aiming at the target file sent by the first user is received, the user information of the first user is obtained, and the file downloading record is generated according to the identification information of the target file and the user information of the first user, so that the downloading record realizes the binding of the user and the downloaded file, and the user who downloads the file can be obtained through the record when the downloaded file is stolen by others, thereby greatly reducing the range of thieves.
In practical applications, the receiving module 41, the obtaining module 42, the sending module 43, the determining Unit 431, the sending Unit 432, and the processing module 44 may be implemented by a Central Processing Unit (CPU), a microprocessor Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like, which is located in a file obtaining device.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (8)

1.一种文件的获取方法,其特征在于,包括:1. a kind of acquisition method of file, is characterized in that, comprises: 接收第一用户发送的针对目标文件的下载请求;receiving a download request for the target file sent by the first user; 根据所述下载请求从文件存储空间中获取目标文件;Obtain the target file from the file storage space according to the download request; 获取所述目标文件的标识信息、所述第一用户的用户信息和接收到所述下载请求的时刻;其中,所述目标文件的标识信息是唯一标识所述目标文件的信息;Obtain the identification information of the target file, the user information of the first user, and the moment when the download request is received; wherein, the identification information of the target file is information that uniquely identifies the target file; 向所述第一用户发送所述目标文件;sending the target file to the first user; 根据所述目标文件的标识信息、所述第一用户的用户信息和所述接收到下载请求的时刻生成文件下载记录,并存储于预设数据库中。A file download record is generated according to the identification information of the target file, the user information of the first user and the moment when the download request is received, and stored in a preset database. 2.根据权利要求1所述的获取方法,其特征在于,所述向第一用户发送所述目标文件,包括:2. The acquisition method according to claim 1, wherein the sending the target file to the first user comprises: 判断所述第一用户是否为合法用户;Determine whether the first user is a legitimate user; 若确定所述第一用户为合法用户,向所述第一用户发送所述目标文件。If it is determined that the first user is a legitimate user, the target file is sent to the first user. 3.根据权利要求2所述的获取方法,其特征在于,所述判断第一用户是否为合法用户,包括:3. The acquisition method according to claim 2, wherein the judging whether the first user is a legitimate user comprises: 采用预设算法计算所述目标文件的标识信息和所述第一用户的用户信息并生成验证码;Using a preset algorithm to calculate the identification information of the target file and the user information of the first user and generate a verification code; 以所述第一用户预留的联系方式向所述第一用户发送所述验证码;sending the verification code to the first user in the contact information reserved by the first user; 接收所述第一用户输入的验证码;receiving a verification code input by the first user; 判断所述第一用户输入的验证码与自身采用所述预设 算法计算所述目标文件的标识信息和所述第一用户的用户信息并生成的验证码是否一致;Judging whether the verification code input by the first user is consistent with the verification code generated by using the preset algorithm to calculate the identification information of the target file and the user information of the first user; 若一致,确定所述第一用户为合法用户。If they are consistent, it is determined that the first user is a legitimate user. 4.根据权利要求1-3任一项所述的获取方法,其特征在于,所述接收第一用户发送的针对目标文件的下载请求之前,还包括:4. The acquisition method according to any one of claims 1-3, wherein before receiving the download request for the target file sent by the first user, the method further comprises: 接收第二用户发送的包含有待上传文件的文件上传请求;receiving a file upload request sent by the second user and containing the file to be uploaded; 将所述待上传文件存储于所述文件存储空间中;storing the to-be-uploaded file in the file storage space; 获取所述待上传文件的标识信息和所述第二用户的用户信息;其中,所述待上传文件的标识信息是唯一标识所述待上传文件的信息;Obtain the identification information of the file to be uploaded and the user information of the second user; wherein, the identification information of the file to be uploaded is information that uniquely identifies the file to be uploaded; 根据所述待上传文件的标识信息和所述第二用户的用户信息生成文件上传记录,并存储于所述预设数据库中。A file upload record is generated according to the identification information of the to-be-uploaded file and the user information of the second user, and stored in the preset database. 5.一种文件的获取装置,其特征在于,包括:5. A device for obtaining a file, comprising: 接收模块,用于接收第一用户发送的针对目标文件的下载请求;a receiving module, configured to receive a download request for the target file sent by the first user; 获取模块,用于根据所述下载请求从文件存储空间中获取目标文件;获取所述目标文件的标识信息、所述第一用户的用户信息和接收到所述下载请求的时刻;其中,所述目标文件的标识信息是唯一标识所述目标文件的信息;an obtaining module, configured to obtain the target file from the file storage space according to the download request; obtain the identification information of the target file, the user information of the first user and the moment when the download request is received; wherein, the The identification information of the target file is the information that uniquely identifies the target file; 发送模块,用于向所述第一用户发送所述目标文件;a sending module, configured to send the target file to the first user; 处理模块,用于根据所述目标文件的标识信息、所述第一用户的用户信息和所述接收到下载请求的时刻生成文件下载记录,并存储于预设数据库中。The processing module is configured to generate a file download record according to the identification information of the target file, the user information of the first user and the moment when the download request is received, and store the record in a preset database. 6.根据权利要求5所述的获取装置,其特征在于,所述发送模块包括:6. The obtaining device according to claim 5, wherein the sending module comprises: 判断单元,用于判断所述第一用户是否为合法用户;a judging unit for judging whether the first user is a legitimate user; 发送单元,用于若确定所述第一用户为合法用户,向所述第一用户发送所述目标文件。A sending unit, configured to send the target file to the first user if it is determined that the first user is a legitimate user. 7.根据权利要求6所述的获取装置,其特征在于,所述判断单元具体用于:7. The obtaining device according to claim 6, wherein the judging unit is specifically used for: 采用预设算法计算所述目标文件的标识信息和所述第一用户的用户信息并生成验证码;Using a preset algorithm to calculate the identification information of the target file and the user information of the first user and generate a verification code; 向所述第一用户发送所述验证码;sending the verification code to the first user; 接收所述第一用户输入的验证码;receiving a verification code input by the first user; 判断所述第一用户输入的验证码与自身采用所述预设 算法计算所述目标文件的标识信息和所述第一用户的用户信息并生成的验证码是否一致;Judging whether the verification code input by the first user is consistent with the verification code generated by using the preset algorithm to calculate the identification information of the target file and the user information of the first user; 若一致,确定所述第一用户为合法用户。If they are consistent, it is determined that the first user is a legitimate user. 8.根据权利要求5-7任一项所述的获取装置,其特征在于,8. The acquisition device according to any one of claims 5-7, characterized in that, 所述接收模块,还用于接收第二用户发送的包含有待上传文件的文件上传请求;The receiving module is further configured to receive a file upload request including a file to be uploaded sent by a second user; 所述获取模块,还用于获取所述待上传文件的标识信息和所述第二用户的用户信息;其中,所述待上传文件的标识信息是唯一标识所述待上传文件的信息;The obtaining module is further configured to obtain the identification information of the file to be uploaded and the user information of the second user; wherein the identification information of the file to be uploaded is information that uniquely identifies the file to be uploaded; 所述处理模块,还用于将所述待上传文件存储于所述文件存储空间中;The processing module is further configured to store the to-be-uploaded file in the file storage space; 根据所述待上传文件的标识信息和所述第二用户的用户信息生成文件上传记录,并存储于所述预设数据库中。A file upload record is generated according to the identification information of the to-be-uploaded file and the user information of the second user, and stored in the preset database.
CN201710533505.8A 2017-07-03 2017-07-03 File acquisition method and acquisition device Active CN107172090B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710533505.8A CN107172090B (en) 2017-07-03 2017-07-03 File acquisition method and acquisition device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710533505.8A CN107172090B (en) 2017-07-03 2017-07-03 File acquisition method and acquisition device

Publications (2)

Publication Number Publication Date
CN107172090A CN107172090A (en) 2017-09-15
CN107172090B true CN107172090B (en) 2020-03-27

Family

ID=59828061

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710533505.8A Active CN107172090B (en) 2017-07-03 2017-07-03 File acquisition method and acquisition device

Country Status (1)

Country Link
CN (1) CN107172090B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108710681B (en) * 2018-05-18 2022-02-22 腾讯科技(深圳)有限公司 File acquisition method, device, device and storage medium
CN109766720A (en) * 2018-12-29 2019-05-17 上海易点时空网络有限公司 For the monitoring method and device of code, server
CN110149535A (en) * 2019-05-16 2019-08-20 北京小米移动软件有限公司 Image management method and device, storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103559056A (en) * 2013-11-05 2014-02-05 广东欧珀移动通信有限公司 File downloading method and device
CN105868321A (en) * 2016-03-25 2016-08-17 乐视控股(北京)有限公司 File management method and device
CN106209904A (en) * 2016-08-08 2016-12-07 桂林信通科技有限公司 A kind of document down loading method and system
CN106453448A (en) * 2015-08-06 2017-02-22 北京奇虎科技有限公司 Method for downloading target file and device thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4170742B2 (en) * 2002-11-29 2008-10-22 株式会社エヌ・ティ・ティ・ドコモ Download system, communication terminal, server, download method
US8028322B2 (en) * 2005-03-14 2011-09-27 Time Warner Cable Inc. Method and apparatus for network content download and recording
CN102073624B (en) * 2009-11-25 2013-05-29 李成龙 Method for storing electronic book format
CN103473501B (en) * 2013-08-22 2016-05-25 北京奇虎科技有限公司 A malware tracking method based on cloud security

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103559056A (en) * 2013-11-05 2014-02-05 广东欧珀移动通信有限公司 File downloading method and device
CN106453448A (en) * 2015-08-06 2017-02-22 北京奇虎科技有限公司 Method for downloading target file and device thereof
CN105868321A (en) * 2016-03-25 2016-08-17 乐视控股(北京)有限公司 File management method and device
CN106209904A (en) * 2016-08-08 2016-12-07 桂林信通科技有限公司 A kind of document down loading method and system

Also Published As

Publication number Publication date
CN107172090A (en) 2017-09-15

Similar Documents

Publication Publication Date Title
US11765177B1 (en) System and method for providing a web service using a mobile device capturing dual images
CN107395614B (en) Single sign-on method and system
CN109840591B (en) Model training system, method and storage medium
CN113114624B (en) Identity authentication method and device based on biological characteristics
US11057372B1 (en) System and method for authenticating a user to provide a web service
JP6574168B2 (en) Terminal identification method, and method, system, and apparatus for registering machine identification code
CN112491553B (en) Short-duration digital certificate issuance method and system based on long-duration digital certificate verification
JP4992283B2 (en) Dynamic authentication method, dynamic authentication system, control program, and physical key
CN105472052B (en) Cross-domain server login method and system
CA3057396A1 (en) Methods and devices for acquiring and recording tracking information on blockchain
EP3700164A1 (en) Method and apparatus for facilitating the login of an account
CN111159651A (en) Block chain online evidence storage method and system
US10044710B2 (en) Device and method for validating a user using an intelligent voice print
CN101621381B (en) System for Webpage Authentication
CN107172090B (en) File acquisition method and acquisition device
WO2017107961A1 (en) Backup system and method
CN108121904A (en) Unlocking method, device, electronic equipment and server
CN110599311A (en) Resource processing method and device, electronic equipment and storage medium
JP6737532B2 (en) Authentication method
CN113536290A (en) Server login method, device, terminal equipment and medium
CN102843584A (en) Method and system for authenticating network terminals
CN108600259B (en) Authentication and binding method of equipment, computer storage medium and server
KR101550256B1 (en) A server, a system, a method, a computer program and a computer program product for accessing a server in a computer network
CN107483456A (en) Identity identifying method and device
WO2021101871A1 (en) Server side authentication

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant