File processing method, file query method, terminal, server and medium

By using view tags between the terminal and the server to associate files with target objects, the problem of multiple queries during file query is solved, query efficiency and flexibility is improved, and system load and data error risks are reduced.

CN119179683APending Publication Date: 2024-12-24YICI NETCOM (HANGZHOU) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411211895.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-12-24

AI Technical Summary

Technical Problem

In the prior art, the database is queried multiple times during the file query process, resulting in increased system load, extended response time and risk of data errors, and is not convenient for flexible classification and query of files.

Method used

By adding view tags between the terminal and the server, the file is associated with the target object, and a flat classification method is adopted to reduce the number of queries, and automatically add labels to the file when the file is sent, which facilitates automatic classification and query of different business scenarios .

Benefits of technology

Improves the efficiency and flexibility of file query, reduces system load and response time, reduces data error risk, and supports fast query and flexible file management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119179683A_ABST
    Figure CN119179683A_ABST
Patent Text Reader

Abstract

The invention discloses a file processing method, a file query method, a terminal, a server and a medium, and relates to the field of information processing.The method comprises the steps that in response to an information sending instruction, uniform resource locators of multiple files to be marked and unique identifiers of target objects are obtained; the information sending instruction comprises sending a plurality of to-be-marked files to a target object; sending the uniform resource locator of the to-be-marked file and the unique identifier of the target object to a server side; sending the received uniform resource locator of the marked file sent from the server to the target object; the marked file is generated by the server side according to the association of the unique identifier of the to-be-marked file and the view tag, the unique identifier of the to-be-marked file is determined according to the uniform resource locator of the to-be-marked file, the view tag is determined according to the name of the target object, and the name of the target object corresponds to the unique identifier of the target object. The method has the advantage of improving the file query efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information processing technology, and in particular to a file processing method, a file query method, a terminal, a server and a medium. Background Art

[0002] In the prior art, orderly storage and rapid retrieval of information are usually achieved through databases.

[0003] In existing solutions, developers can create database tables through relational databases to store the organizational structure and related information of files. However, when querying file data related to the current business scenario, multiple queries are often required. For example, when obtaining a file list, you need to first query the relational database to obtain all the files in the relational database, and then obtain the corresponding file metadata based on the unique identifier of each file.

[0004] This multiple query implementation method has obvious efficiency problems, which not only increases the system load and response time, but also may cause unnecessary network delays. Secondly, frequent database access and data exchange may also increase the risk of data errors. Therefore, how to optimize the above process, reduce the number of queries, and improve the efficiency of information retrieval has become a problem that needs to be solved in the current technical field. Summary of the invention

[0005] The present invention aims to solve one of the technical problems in the related art to a certain extent. To this end, the present invention provides a file processing method, a file query method, a terminal, a server and a medium, which have the advantage of improving the efficiency of file query.

[0006] In order to achieve the above object, the present invention adopts the following technical solution:

[0007] A file processing method, used in a terminal, comprising:

[0008] In response to an information sending instruction, obtaining a uniform resource locator of at least one file to be marked and a unique identifier of at least one target object; the information sending instruction includes sending a plurality of files to be marked to the target object;

[0009] Sending at least one uniform resource locator of the file to be marked and at least one unique identifier of the target object to the server;

[0010] The uniform resource locator of the marked file received from the server is sent to the target object; the marked file is generated by the server according to the association between the unique identifier of the file to be marked and the view tag, the unique identifier of the file to be marked is determined according to the uniform resource locator of the file to be marked, the view tag is determined according to the name of the target object, and the name of the target object corresponds to the unique identifier of the target object.

[0011] By adding view tags, the files to be marked are associated with the target objects. View tags are a flat classification method that is not restricted by the folder structure. That is, there is no need to query and match layer by layer according to the level of the files. Multiple files corresponding to a certain business scenario can be quickly queried, which improves the search efficiency. In addition, each file can be associated with multiple tags. There is no need to change the location of the file for different business scenarios. The same file can be displayed in the file list corresponding to different view tags, which improves the flexibility of file query. In addition, by automatically adding view tags to files when sending them, it is convenient to automatically classify files according to different business scenarios, which helps users to query files later.

[0012] The present invention also provides a file processing method for a server, comprising:

[0013] receiving a uniform resource locator of at least one file to be marked and a unique identifier of at least one target object sent by a terminal;

[0014] Acquire the name of the target object according to the unique identifier of the target object, and determine the name of the target object as a view label;

[0015] According to the uniform resource locator of the file to be marked, obtaining metadata of the file to be marked; the metadata includes a unique identifier of the file to be marked;

[0016] Associating the unique identifier of the file to be marked with the corresponding view tag to obtain a marked file;

[0017] The uniform resource locator of the marked file is sent to the terminal.

[0018] Optionally, the number of the target objects is two or more, and associating the unique identifier of the file to be marked with the corresponding view tag to obtain the marked file includes:

[0019] The unique identifier of the file to be marked is associated with a plurality of corresponding view tags to obtain a marked file.

[0020] Optionally, the target object includes a target group chat, the target group chat is set with a file capacity threshold, the receiving terminal sends at least one uniform resource locator of a file to be marked and at least one unique identifier of a target object, and then includes:

[0021] When the marked files exceed the file capacity threshold, a capacity warning prompt is sent to the terminal.

[0022] Optionally, sending the uniform resource locator of the marked file to the terminal, then comprising:

[0023] Adding the view label determined according to the name of the target object to the original view label list information to obtain the target view label list information;

[0024] The target view label list information is sent to the terminal.

[0025] In addition, the present invention also provides a file query method for a terminal, comprising:

[0026] Receive a user instruction; the user instruction includes filtering multiple target marked files corresponding to the target view tag;

[0027] Parsing the user instruction to obtain a target view label;

[0028] According to the target view tag, at least one target marked file associated with the target view tag is determined; the target marked file is generated by the server according to the association between the unique identifier of the file to be marked and the view tag, the unique identifier of the file to be marked is determined according to the uniform resource locator of the file to be marked, the view tag is determined according to the name of the target object, and the name of the target object corresponds to the unique identifier of the target object;

[0029] A target file list containing multiple target marked files is displayed.

[0030] Optionally, the display includes a target file list of a plurality of the target marked files, including:

[0031] According to the historical usage frequency of the target marked files, a target file list including a plurality of the target marked files is displayed in descending order of the historical usage frequency.

[0032] Furthermore, the present invention also provides a terminal, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned file processing method for the terminal and any one of the file query methods for the terminal when executing the computer program.

[0033] In addition, the present invention also provides a server, including a memory and a processor, wherein the memory stores a computer program, and the processor implements any of the above-mentioned file processing methods for the server when executing the computer program.

[0034] At the same time, the present invention also provides a computer-readable medium on which a computer program is stored. When the computer program is executed by a processor, the file processing method and file query method described in any one of the above items are implemented.

[0035] These features and advantages of the present invention will be disclosed in detail in the following specific embodiments and drawings. The best embodiments or means of the present invention will be described in detail in conjunction with the drawings, but they are not intended to limit the technical solutions of the present invention. In addition, there are multiple features, elements, and components that appear in each of the following texts and drawings, and different symbols or numbers are marked for convenience, but they all represent components with the same or similar structures or functions. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The present invention will be further described below in conjunction with the accompanying drawings:

[0037] Figure 1 A schematic diagram of a process flow of a file processing method for a terminal according to an embodiment of the present invention;

[0038] Figure 2 A schematic diagram of a flow chart of a file processing method for a server according to an embodiment of the present invention;

[0039] Figure 3 A schematic diagram of a process flow of a file query method for a terminal according to an embodiment of the present invention;

[0040] Figure 4 It is a module schematic diagram of the terminal in the above embodiment;

[0041] Figure 5 It is a schematic diagram of the modules of the server in the above embodiment;

[0042] Figure 6 It is a schematic diagram of a computer-readable medium in the above embodiment of the present invention. DETAILED DESCRIPTION

[0043] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments in the implementation manner are intended to be used to explain the present invention and should not be construed as limiting the present invention.

[0044] References in this specification to "one embodiment" or "an example" or "an example" mean that a particular feature, structure, or characteristic described in conjunction with the embodiment itself may be included in at least one embodiment of the present patent disclosure. The appearance of the phrase "in one embodiment" in various places in the specification does not necessarily refer to the same embodiment.

[0045] As a first aspect of the present invention, a file processing method is provided for use in a terminal, such as Figure 1 As shown, the method includes:

[0046] In step S110, in response to an information sending instruction, obtaining a uniform resource locator of at least one file to be marked and a unique identifier of at least one target object; the information sending instruction includes sending a plurality of files to be marked to the target object;

[0047] In step S120, at least one uniform resource locator of the file to be marked and at least one unique identifier of the target object are sent to the server;

[0048] In step S130, the uniform resource locator of the marked file received from the server is sent to the target object; the marked file is generated by the server according to the association between the unique identifier of the file to be marked and the view tag, the unique identifier of the file to be marked is determined according to the uniform resource locator of the file to be marked, the view tag is determined according to the name of the target object, and the name of the target object corresponds to the unique identifier of the target object.

[0049] In the present invention, there is no special limitation on the application scenario of the method for automatically associating tags with files. For example, the method can be applied to a private cloud disk. When a cloud disk terminal user shares a file, the file is sent to the target object, where the file here can be a cloud disk file or a local file. When the terminal receives the information sending instruction for sharing the file, it parses the information sending instruction, obtains the uniform resource locator of the file to be marked and the unique identifier of the target object, and sends the obtained uniform resource locator of the file to be marked and the unique identifier of the target object to the server. The uniform resource locator of the file to be marked is used by the server to locate the file to be marked and obtain the metadata of the file to be marked, and the unique identifier of the target object is used to associate the file to be marked with the view tag (actually the association between the file to be marked and the target object).

[0050] It is understandable that the view tag is determined according to the name of the target object, and the server realizes the association between the file to be marked and the target object by binding the unique identifier of the file to be marked with the unique identifier of the target object. Because the unique identifier of the file to be marked and the unique identifier of the target object are constant, even if the name of the target object changes, the association between the file to be marked and the target object will not change, and the server can update the tag list according to the change of the name of the target object, so that the view tag name of the tag list will be updated on the display interface of the terminal.

[0051] Usually when searching for files, all files in the library are first obtained, and then the corresponding files are searched according to the file metadata (such as file name, file attributes, etc.). When the number of files is large, the search is difficult. Or search in a folder of a specified category. The query steps are cumbersome and time-consuming. In addition, since files in the same business scenario may be scattered in different folders, multiple files in the same business scenario cannot be searched at the same time, which affects the user experience. By adding view tags, the files to be marked are associated with the target objects. The view tags are a flat classification method that is not restricted by the folder structure. That is, there is no need to query and match layer by layer according to the level of the file. Multiple files corresponding to a certain business scenario can be quickly queried, which improves the search efficiency. In addition, each file can be associated with multiple tags. There is no need to change the location of the file for different business scenarios. The same file can be displayed in the file list corresponding to different view tags, which improves the flexibility of file query. In addition, by automatically adding view tags to the files when sending them, it is convenient to automatically classify the files according to different business scenarios, which helps users to query the files later.

[0052] Of course, you can also customize labels. For example, in response to a file upload instruction, when uploading a file to a cloud disk, the corresponding view label is automatically added to the file to be marked according to the file's metadata; or in response to a file selection instruction, the user input content is determined as the view label corresponding to the file to be marked.

[0053] As a second aspect of the present invention, a file processing method is provided for use at a server, such as Figure 2 As shown, including:

[0054] In step S210, receiving at least one uniform resource locator of a file to be marked and at least one unique identifier of a target object sent by a terminal;

[0055] In step S220, the name of the target object is obtained according to the unique identifier of the target object, and the name of the target object is determined as a view label;

[0056] In step S230, metadata of the file to be marked is obtained according to the uniform resource locator of the file to be marked; the metadata includes a unique identifier of the file to be marked;

[0057] In step S240, the unique identifier of the file to be marked is associated with the corresponding view tag to obtain a marked file;

[0058] In step S250, the uniform resource locator of the marked file is sent to the terminal.

[0059] The metadata of the file to be marked and the name of the target object are obtained respectively through the uniform resource locator of the file to be marked and the unique identifier of the target object, the file to be marked is associated with the target object by binding the unique identifier of the file to be marked with the unique identifier of the target object, and the metadata of the file to be marked is updated with the corresponding binding data to obtain the marked file. It is understandable that when the name of the target object changes, the corresponding view label will also be updated.

[0060] Optionally, the number of the target objects is two or more, and step S240 includes:

[0061] The unique identifier of the file to be marked is associated with a plurality of corresponding view tags to obtain a marked file.

[0062] When the terminal shares the same file to be marked with multiple target objects, the same file to be marked is associated with the multiple target objects, and binding data of the unique identifier of the file to be marked and the unique identifier of each target object is added to the metadata of the file to be marked. It should be noted that when a marked file is shared with a new target object, it will also be associated with the new target object.

[0063] In an optional implementation, the target object includes a target group chat, the target group chat is set with a file capacity threshold, the receiving terminal sends at least one uniform resource locator of a file to be marked and at least one unique identifier of a target object, and then includes:

[0064] When the marked files exceed the file capacity threshold, a capacity warning prompt is sent to the terminal.

[0065] When sending a file to a target group chat, the server will first determine whether the current capacity of the system group has reached the previous file capacity threshold. If not, it will perform the step of adding a view tag to the file to be marked. If the file capacity threshold is reached, a capacity warning prompt will be sent to the terminal to prompt the terminal user to delete the files in the target group chat. By setting the file capacity threshold, it is possible to avoid too many files in a single target group chat that are difficult to manage. It should be noted that the above file capacity threshold is a virtual capacity limit.

[0066] Optionally, after step S250, the following steps are included:

[0067] Adding the view label determined according to the name of the target object to the original view label list information to obtain the target view label list information;

[0068] The target view label list information is sent to the terminal.

[0069] After adding a view tag to the file to be marked, the target view tag list information is sent to the terminal so that the information can be saved or cached in the terminal. When the terminal queries the corresponding file through the view tag, there is no need to submit a request to the server again, thereby reducing the terminal response time.

[0070] As a third aspect of the present invention, a file query method is also provided for use in a terminal, such as Figure 3 As shown, including:

[0071] In step S310, a user instruction is received; the user instruction includes filtering a plurality of target marked files corresponding to a target view tag;

[0072] In step S320, the user instruction is parsed to obtain a target view tag;

[0073] In step S330, at least one target marked file associated with the target view tag is determined according to the target view tag; the target marked file is generated by the server according to the association between the unique identifier of the file to be marked and the view tag, the unique identifier of the file to be marked is determined according to the uniform resource locator of the file to be marked, the view tag is determined according to the name of the target object, and the name of the target object corresponds to the unique identifier of the target object;

[0074] In step S340, a target file list including a plurality of target marked files is displayed.

[0075] The user instruction includes searching for a file list corresponding to a specified view tag, obtaining user input content, matching the user input content with all view tags by keywords, and displaying the relevant target view tags on the interface. The user instruction also includes selecting a specified view tag and querying the corresponding file list.

[0076] After the target file list is queried, the target marked files in the target file list can be secondary screened according to the file attribute information, which includes file upload time, sharing time, type (such as picture, audio, text, etc.), etc.

[0077] By adding view tags, the files to be marked are associated with the target objects. View tags are a flat classification method that is not restricted by the folder structure, that is, there is no need to query and match files layer by layer according to their level. Multiple files corresponding to a certain business scenario can be quickly queried, which improves search efficiency. In addition, each file can be associated with multiple tags, and there is no need to change the location of the file for different business scenarios. The same file can be displayed in the file list corresponding to different view tags, which improves the flexibility of file query.

[0078] Optionally, the display includes a target file list of a plurality of the target marked files, including:

[0079] According to the historical usage frequency of the target marked files, a target file list including a plurality of the target marked files is displayed in descending order of the historical usage frequency.

[0080] The target marked files in the target file list are sorted by using the historical usage frequencies of the target marked files, thereby improving the efficiency of user querying files.

[0081] As a fourth aspect of the present invention, this embodiment further provides a terminal, such as Figure 4 As shown, including:

[0082] One or more processors 101;

[0083] The memory 102 stores one or more computer programs. When the one or more computer programs are executed by the one or more processors 101, the one or more processors 101 implement the file processing method described in the first aspect and the file query method described in the third aspect of the present invention.

[0084] The electronic device may further include one or more I / O interfaces 103 connected between the processor 101 and the memory 102 and configured to implement information interaction between the processor 101 and the memory 102 .

[0085] Among them, the processor 101 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory 102 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH); the I / O interface 103 (read-write interface) is connected between the processor 101 and the memory 102, and can realize information interaction between the processor 101 and the memory 102, including but not limited to a data bus (Bus), etc.

[0086] In some embodiments, the processor 101 , the memory 102 , and the I / O interface 103 are connected to each other via a bus 104 , and further connected to other components of the computing device.

[0087] As a fifth aspect of the present invention, this embodiment further provides a server, such as Figure 5 As shown, including:

[0088] One or more processors 201;

[0089] The memory 202 stores one or more computer programs. When the one or more computer programs are executed by the one or more processors 201, the one or more processors 201 implement the file processing method according to the second aspect of the present invention.

[0090] The electronic device may further include one or more I / O interfaces 203 connected between the processor 201 and the memory 202 and configured to implement information interaction between the processor 201 and the memory 202 .

[0091] Among them, the processor 201 is a device with data processing capabilities, including but not limited to a central processing unit (CPU), etc.; the memory 202 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH); the I / O interface 203 (read-write interface) is connected between the processor 201 and the memory 202, and can realize information interaction between the processor 201 and the memory 202, including but not limited to a data bus (Bus), etc.

[0092] In some embodiments, the processor 201 , the memory 202 , and the I / O interface 203 are connected to each other via a bus 204 , and further connected to other components of the computing device.

[0093] As a sixth aspect of the present invention, a computer readable medium is provided. Figure 6 As shown, a computer program is stored thereon, and when the computer program is executed by a processor, the file processing method provided by the first aspect and the second aspect and the file query method provided by the third aspect of the present disclosure are implemented.

[0094] It can be understood by a person of ordinary skill in the art that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program. Accordingly, the computer program can be stored in a non-volatile computer-readable storage medium, and the computer program can implement the method of any of the above-mentioned embodiments when executed. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0095] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Those skilled in the art should understand that the present invention includes but is not limited to the contents described in the drawings and the above specific embodiments. Any modification that does not deviate from the functional and structural principles of the present invention will be included in the scope of the claims.

Claims

1. A file processing method, used in a terminal, characterized in that: The method comprises: In response to an information sending instruction, obtaining a uniform resource locator of at least one file to be marked and a unique identifier of at least one target object; the information sending instruction includes sending a plurality of files to be marked to the target object; Sending at least one uniform resource locator of the file to be marked and at least one unique identifier of the target object to the server; The uniform resource locator of the marked file received from the server is sent to the target object; the marked file is generated by the server according to the association between the unique identifier of the file to be marked and the view tag, the unique identifier of the file to be marked is determined according to the uniform resource locator of the file to be marked, the view tag is determined according to the name of the target object, and the name of the target object corresponds to the unique identifier of the target object.

2. A file processing method, used on a server, characterized in that: include: receiving a uniform resource locator of at least one file to be marked and a unique identifier of at least one target object sent by a terminal; Acquire the name of the target object according to the unique identifier of the target object, and determine the name of the target object as a view label; According to the uniform resource locator of the file to be marked, obtaining metadata of the file to be marked; the metadata includes a unique identifier of the file to be marked; Associating the unique identifier of the file to be marked with the corresponding view tag to obtain a marked file; The uniform resource locator of the marked file is sent to the terminal.

3. The file processing method according to claim 2, characterized in that: The number of the target objects is two or more, and associating the unique identifier of the file to be marked with the corresponding view tag to obtain the marked file includes: The unique identifier of the file to be marked is associated with a plurality of corresponding view tags to obtain a marked file.

4. The file processing method according to claim 2, characterized in that: The target object includes a target group chat, the target group chat is set with a file capacity threshold, the receiving terminal sends at least one uniform resource locator of a file to be marked and at least one unique identifier of a target object, and then includes: When the marked files exceed the file capacity threshold, a capacity warning prompt is sent to the terminal.

5. The file processing method according to claim 2, characterized in that: Sending the uniform resource locator of the marked file to the terminal, then comprising: Adding the view label determined according to the name of the target object to the original view label list information to obtain the target view label list information; The target view label list information is sent to the terminal.

6. A file query method, used in a terminal, characterized in that: include: Receive a user instruction; the user instruction includes filtering multiple target marked files corresponding to the target view tag; Parsing the user instruction to obtain a target view label; According to the target view tag, determining at least one target marked file associated with the target view tag; The target marked file is generated by the server according to the association between the unique identifier of the file to be marked and the view tag, the unique identifier of the file to be marked is determined according to the uniform resource locator of the file to be marked, the view tag is determined according to the name of the target object, and the name of the target object corresponds to the unique identifier of the target object; Displays a target file list containing multiple target marked files.

7. The file query method according to claim 6, characterized in that: The display includes a target file list containing a plurality of the target marked files, including: According to the historical usage frequency of the target marked files, a target file list including a plurality of the target marked files is displayed in descending order of the historical usage frequency.

8. A terminal, characterized in that: include: one or more processors; A memory having one or more computer programs stored thereon, wherein when the one or more computer programs are executed by the one or more processors, the one or more processors implement the file processing method according to claim 1 and the information query method according to claim 6 or 7.

9. A server, characterized in that: include: one or more processors; A memory having one or more computer programs stored thereon, wherein when the one or more computer programs are executed by the one or more processors, the one or more processors implement the file processing method according to any one of claims 2 to 5.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the file processing method described in any one of claims 1 to 5 and the file query method described in claim 6 or 7 are implemented.