File sharing method and system based on link form, terminal and medium
By generating sharing links and logging in verification, the problem of inconvenience in file sharing in the existing technology is solved, and convenient file sharing and editing is achieved.
Patent Information
- Application Number
- CN202411665951.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-02-28
AI Technical Summary
The file sharing method in the prior art is not convenient enough, especially when sharing a large number of files or folders, and it is often necessary to use third-party software.
Provide a file sharing method based on link form. After obtaining the files to be shared, generating a sharing link, and receiving the login request information for verification, login to the sharing link to read and edit the file.
It realizes the convenience of file sharing and does not require third-party software, which improves the efficiency of sharing and editing files.
Smart Images

Figure CN119537332A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of file sharing, and in particular to a file sharing method, system, terminal and medium based on link form. Background Art
[0002] In the existing file sharing mechanism, users usually need to log in through special software to upload or download files. This way of sharing files is not convenient enough and is inefficient when sharing a large number of files or folders. Even if there is a way to share files through links in the existing technology, it still needs to rely on third-party software to achieve it, which is not convenient.
[0003] Therefore, the prior art still needs to be improved and enhanced. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a file sharing method, system, terminal and medium based on link form in view of the above-mentioned defects of the prior art, aiming to solve the problem that the file sharing method in the prior art is not convenient enough.
[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is as follows:
[0006] In a first aspect, the present invention provides a file sharing method based on a link form, wherein the method comprises:
[0007] Acquire a file to be shared, and generate a sharing link according to the file to be shared, wherein the file to be shared includes a folder or a file group consisting of multiple folders;
[0008] Receiving login request information, and verifying the login request information, and logging in to the sharing link after the login request information is verified;
[0009] The storage location of the file to be shared is accessed based on the sharing link, and the file to be shared is read and edited.
[0010] In one implementation, the step of obtaining the file to be shared and generating a sharing link according to the file to be shared includes:
[0011] Get the file name and storage path information of the file to be shared;
[0012] Based on the storage path information, determining a storage location of the file to be shared;
[0013] The sharing link is generated based on the file name information and the storage location.
[0014] In one implementation, generating the sharing link based on the file name information and the storage location includes:
[0015] Obtaining a sharing location, and determining a file reading path based on the sharing location and the storage location, wherein the file reading path is used to read the file to be shared;
[0016] The file reading path is associated with the file name information, the sharing link is generated, and the sharing link is sent to a preset sharing location to realize sharing of the sharing link.
[0017] In one implementation, the verifying the login request information and logging in to the sharing link after the login request information is verified includes:
[0018] Parsing the login request information, obtaining user login information, and performing authentication processing on the user login information, wherein the user login information includes user account information and / or identification information of the user terminal;
[0019] Matching the user login information with the pre-stored authorized user information, and if the user login information matches the pre-stored authorized user information successfully, obtaining login password information;
[0020] The login password information is matched with the pre-stored authorization password information, and if the login password information matches the pre-stored authorization password information successfully, it is determined that the login request information is verified and the shared link is successfully logged in.
[0021] In one implementation, the accessing the storage location of the file to be shared based on the sharing link and reading and editing the file to be shared includes:
[0022] Accessing the storage location of the file to be shared based on the sharing link, reading the file to be shared, and selecting a target folder to be edited;
[0023] Obtain the files in the target folder and start the file editing function;
[0024] If there are multiple users who edit the files in the target folder, a multi-user collaborative editing mode is enabled, and collaborative editing authorization is performed for each user.
[0025] In one implementation, the method further includes:
[0026] After logging into the sharing link, receiving a file upload request, and obtaining uploading user information corresponding to the file upload request, wherein the uploading user information includes one or more user information;
[0027] Verifying the uploading user information, and after the uploading user information is verified, obtaining the newly added file corresponding to the file upload request;
[0028] The newly added file is automatically archived, and the file name of the archived newly added file is synchronized to the sharing link.
[0029] In one implementation, the method further includes:
[0030] The validity period of the sharing link is obtained. If the login request information is not received within the validity period, the sharing link automatically becomes invalid.
[0031] In a second aspect, an embodiment of the present invention further provides a file sharing system based on a link form, wherein the system comprises:
[0032] A sharing link generation module, used to obtain a file to be shared, and generate a sharing link according to the file to be shared, wherein the file to be shared includes a folder or a file group consisting of multiple folders;
[0033] A sharing link login module, used to receive login request information, verify the login request information, and log in the sharing link after the login request information is verified;
[0034] The file reading and editing module is used to access the storage location of the file to be shared based on the sharing link, and read and edit the file to be shared.
[0035] In a third aspect, an embodiment of the present invention further provides a terminal, wherein the terminal includes a memory, a processor, and a link-based file sharing program stored in the memory and executable on the processor, and when the processor executes the link-based file sharing program, the steps of the link-based file sharing method of any one of the above-mentioned schemes are implemented.
[0036] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein a link-based file sharing program is stored on the computer-readable storage medium, and when the link-based file sharing program is executed by a processor, the steps of the link-based file sharing method described in any one of the above-mentioned schemes are implemented.
[0037] Beneficial effect: Compared with the prior art, the present invention provides a file sharing method based on a link form. The present invention first obtains the file to be shared, and generates a sharing link according to the file to be shared, wherein the file to be shared includes a folder or a file group consisting of multiple folders. Then, a login request message is received, and the login request message is verified. After the login request message is verified, the sharing link is logged in. Finally, the storage location of the file to be shared is entered based on the sharing link, and the file to be shared is read and edited. The present invention can generate a sharing link based on the file to be shared, thereby realizing the sharing of files in the form of a link. The sharing method is simpler, and there is no need to use third-party software to realize file sharing, which provides convenience for users. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A flowchart of a preferred embodiment of a file sharing method based on link form provided in an embodiment of the present invention.
[0039] Figure 2 A schematic diagram of the architecture of a link-based file sharing system provided in an embodiment of the present invention.
[0040] Figure 3 A functional block diagram of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0042] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations or steps, nor must they be executed in the order described. For example, some operations or steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0043] It should be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0044] It should be understood that, in order to clearly describe the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, words such as "first" and "second" are used to distinguish between identical or similar items with substantially identical functions and effects. For example, the first control information and the second control information are only used to distinguish different control information, and their order is not limited.
[0045] Those skilled in the art can understand that the words "first", "second", etc. do not limit the quantity and execution order, and the words "first", "second", etc. do not necessarily limit the differences.
[0046] It should be further understood that the term “and / or” used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0047] In order to solve the problems of the prior art, the present embodiment provides a file sharing method based on a link form. The method based on the present embodiment can realize sharing of files in the form of a link. The sharing method is simpler and does not require third-party software to realize file sharing, which provides convenience for users. Specifically, the present embodiment obtains the file to be shared, generates a sharing link according to the file to be shared, wherein the file to be shared includes a folder or a file group consisting of multiple folders. Then, a login request information is received, and the login request information is verified. After the login request information is verified, the sharing link is logged in. Finally, the storage location of the file to be shared is entered based on the sharing link, and the file to be shared is read and edited.
[0048] The file sharing method based on link form of this embodiment can be applied to a terminal, which can be a computer, a mobile phone, a smart TV or other intelligent product terminal. Figure 1 As shown in , the file sharing method based on link form of this embodiment includes the following steps:
[0049] Step S100: Acquire a file to be shared, and generate a sharing link according to the file to be shared, wherein the file to be shared includes a folder or a file group consisting of multiple folders.
[0050] The file to be shared in this embodiment can be a folder or a file group consisting of multiple folders. Therefore, this embodiment can realize the sharing of a single folder or the simultaneous sharing of multiple folders, thereby improving the sharing efficiency. In this embodiment, the terminal first obtains the file to be shared that needs to be shared, and then generates a sharing link based on the file to be shared. The sharing link can serve as a medium for users to read files, and users can read and edit the files to be shared through the sharing link.
[0051] In one implementation, when generating a sharing link, this embodiment includes the following steps:
[0052] Step S101, obtaining the file name information and storage path information of the file to be shared;
[0053] Step S102: determining the storage location of the file to be shared based on the storage path information;
[0054] Step S103: Generate the sharing link based on the file name information and the storage location.
[0055] In this embodiment, the file to be shared is the file to be shared selected by the user. In actual application, the terminal can count the stored folders and classify them according to the needs, and each folder stores the same type of files. Then, the terminal displays all the folders for the user to choose. The user can click the required folder on the operation interface of the terminal to select, and the file in the selected folder is used as the file to be shared. In addition, the user can select multiple folders, and then all the files in the multiple folders are used as the files to be shared. Of course, in actual application, the user can open a folder and then select a file or multiple files in the folder as the files to be shared. Further, after selecting the file to be shared, the present embodiment obtains the file name information of the file to be shared and the storage path information of the file to be shared. The storage path information reflects the storage location of the file to be shared. For this reason, the present embodiment can generate a sharing link based on the file name information and the storage location. It can be seen from this that the sharing link generated by the present embodiment can directly determine the file name information and storage location of the file to be shared, so that subsequent users can read the file to be shared.
[0056] Further, when generating a sharing link, the present embodiment may first obtain a sharing location, which reflects the location where the generated sharing link needs to be sent. For example, a dialog box in which the generated sharing link needs to be sent to a certain contact is the sharing location. In actual application, the sharing location can be determined by the user's selection, and the user can select the sharing location of the sharing link based on a preset selection menu. Based on this, the terminal may first read the user's operation, determine the sharing location selected by the user based on the user's operation, and then establish a file reading path in combination with the storage location of the file to be shared, which enables the user to read the file to be shared from the storage location from the sharing location. Finally, the file reading path is bound to the file name information to achieve the association between the two. After the file reading path is associated with the file name information, the terminal may automatically generate a sharing link based on a preset link generation rule. In actual application, in order to increase the probability of link generation, a link generation template may be pre-set in the terminal of the present embodiment, and there is a fill-in area for the file reading path and a fill-in area for the file name information in the link generation template. Therefore, the terminal only needs to fill the determined file reading path and file name information into the link generation template to generate the sharing link. After generating the sharing link, this embodiment can send the generated sharing link to a preset sharing location, thereby realizing the sharing of the sharing link.
[0057] Step S200: receiving a login request message, and verifying the login request message. After the login request message is verified, logging in to the sharing link.
[0058] After sharing the sharing link, the terminal can monitor the login request of the sharing link and receive the login request information, which reflects that the user wants to log in to the sharing link and read the file to be shared corresponding to the sharing link. Then, the terminal verifies the login request information to ensure whether the logged-in user has the authority to read the file to be shared. Only after the login request information is verified, the terminal allows the user to log in to the sharing link to ensure that the file to be shared is not leaked.
[0059] In one implementation, when verifying the login request information, this embodiment includes the following steps:
[0060] Step S201: parsing the login request information, obtaining user login information, and performing authentication processing on the user login information, wherein the user login information includes user account information and / or identification information of the user terminal;
[0061] Step S202: matching the user login information with the pre-stored authorized user information, and if the user login information matches the pre-stored authorized user information successfully, obtaining login password information;
[0062] Step S203: Match the login password information with the pre-stored authorization password information. If the login password information matches the pre-stored authorization password information successfully, it is determined that the login request information is verified and the shared link is successfully logged in.
[0063] Specifically, this embodiment can obtain login request information by monitoring the user's click operation on the sharing link. Then, this embodiment can parse the login request information and then obtain the user login information in the login request information, and the user login information includes user account information or identification information of the user terminal. When the user login information is user account information, the user is required to manually enter the user account information after clicking the sharing link. When the user login information is the identification information of the user terminal, the identification information can be the IMEI code (International Mobile Equipment Identity) of the user terminal. When the terminal obtains the user login information, the user login information can be matched with the pre-stored authorized user information. The authorized user information is pre-set, and the authorized user information can be the authorized user account information and / or the identification information of the authorized user terminal. When the user login information successfully matches the pre-stored authorized user information, the login password information is obtained, and then the login password information is matched with the pre-stored authorized password information. Similarly, the authorized password information is also preset, and the authorized password information corresponds to the authorized user information one by one. When the user login information matches the corresponding authorized user information, the login password information at this time can be matched with the authorized password information of the matched authorized user information. If the login password information matches the authorized password information successfully, it is determined that the login request information is verified and the shared link is successfully logged in. It can be seen that this embodiment first verifies the user login information, and then verifies the login password information. After two verifications, it is determined whether the user can log in to the shared link and whether the file to be shared corresponding to the shared link can be read to ensure that the file to be shared is not leaked.
[0064] Step S300: access the storage location of the file to be shared based on the sharing link, and read and edit the file to be shared.
[0065] Since the sharing link of this embodiment is generated based on the file storage path and file name information, and the file storage path is determined based on the sharing location and the storage location, after logging into the sharing link, this embodiment can enter the storage location of the file to be shared through the sharing link, and then read and edit the to-be-shared sorting in the storage location.
[0066] In one implementation, when reading and editing a file to be shared, this embodiment includes the following steps:
[0067] Step S301: access the storage location of the file to be shared based on the sharing link, read the file to be shared, and select a target folder to be edited;
[0068] Step S302: Obtain the files in the target folder and start the file editing function;
[0069] Step S303: If there are multiple users who edit the files in the target folder, a multi-user collaborative editing mode is enabled, and collaborative editing authorization is performed for each user.
[0070] In this embodiment, after entering the storage location of the file to be shared based on the sharing link, the file to be shared is read. Since the file to be shared may be a file group consisting of multiple folders, when editing is required, this embodiment can first select the target folder to be edited. In actual application, after entering the storage location of the file to be shared, the terminal interface will display the file to be shared in the storage location, and the multiple folders included in the file to be shared will be displayed. At this time, the target folder can be selected based on the user's operation. Then enter the target folder, select the file in the target folder, and start the file editing function to edit the file in the target folder through the file editing function.
[0071] Furthermore, in actual application, this embodiment can support a multi-person collaborative editing mode, allowing multiple users to simultaneously access the storage location through a shared link to edit files in the target folder. The terminal of this embodiment can turn on the collaborative editing mode and authorize each user to perform collaborative editing, so that all users can edit the files in the target folder at the same time, thereby improving the efficiency of file editing. In addition, since the files that each user does not need to edit are not necessarily files in the same folder, the target folders determined by this embodiment can also be multiple. When there are multiple users, the users can edit the files in the target folders that they need to edit respectively. It can be seen that this embodiment meets the needs of multiple people to edit files at the same time by setting a collaborative editing mode, thereby improving the efficiency of file editing.
[0072] In another implementation, in addition to editing the files to be shared in the storage location, this embodiment can also download the files to be shared. Moreover, this embodiment can also add files to the storage location, that is, upload new files to the storage location. In actual application, after entering the storage location based on the sharing link, an upload function key can be set on the display interface of the terminal. When a new file needs to be uploaded, a file upload request can be issued through the upload function key. When a file upload request is received, the terminal of this embodiment can determine the upload user information corresponding to the file upload request. The upload user information includes one or more user information, that is, determine which user or users want to upload the file. Next, it is also necessary to verify the upload user information. The verification method can also be matched with the pre-stored authorized users. If the upload user information is verified, the newly added file corresponding to the file upload request can be obtained, and then the newly added file can be added to the storage location.
[0073] In specific applications, this embodiment will automatically archive the newly added files when adding them to the storage location. In this embodiment, the files to be shared can be named according to the user name, so the files to be shared in the storage location can be classified according to the file name, such as the files of the same user are placed in the same folder, so the newly added files can also be classified according to the name of the uploading user. If the uploading user already has a folder in the storage location, the newly added file will be directly saved to the folder corresponding to the uploading user; if the uploading user does not have a folder in the storage location, it is necessary to first add a folder in the storage location, and then save the newly added file to the newly added file. In addition, this embodiment can also classify the shared files according to the file type or file format, for example, all document files are in the same folder, and all chart files are in the same folder. Therefore, the newly added files can be archived according to the file type or file format, and the newly added files can be saved in the folder of the corresponding file type. In other implementations, this embodiment can define or identify the file name, file type or file format of the newly added file when the uploading user uploads the newly added file to the storage location, so that the newly added files can be archived more efficiently.
[0074] In addition, the sharing link of this embodiment has a set validity period. If the validity period is exceeded, the sharing link will become invalid. Therefore, when the sharing link is generated, the terminal will obtain the validity period of the sharing link, which is automatically set when the link is generated. Then, the terminal monitors the current time information. If the sharing link exists for more than the preset validity period, the sharing link will be controlled to be invalid. At this time, the user cannot jump to the login page by clicking the sharing link. In addition, if the login request information is not received within the validity period of the sharing link, the sharing link will automatically become invalid, thereby ensuring the timeliness of file sharing and avoiding the leakage of files that have been in an open state.
[0075] In summary, the present embodiment first obtains the file to be shared, and generates a sharing link based on the file to be shared, wherein the file to be shared includes a folder or a file group consisting of multiple folders. Then, a login request message is received, and the login request message is verified. After the login request message is verified, the sharing link is logged in. Finally, based on the sharing link, the storage location of the file to be shared is entered, and the file to be shared is read and edited. The present invention can generate a sharing link based on the file to be shared, thereby realizing the sharing of files in the form of links. The sharing method is simpler, and there is no need to use third-party software to realize file sharing, which provides convenience for users.
[0076] Based on the above embodiments, the present invention provides a file sharing system based on link form, such as Figure 2 As shown in , the system includes: a sharing link generation module 10, a sharing link login module 20 and a file reading and editing module 30. Specifically, the sharing link generation module 10 is used to obtain the file to be shared and generate a sharing link according to the file to be shared, wherein the file to be shared includes a folder or a file group consisting of multiple folders. The sharing link login module 20 is used to receive login request information and verify the login request information, and log in the sharing link after the login request information is verified. The file reading and editing module 30 is used to enter the storage location of the file to be shared based on the sharing link, and read and edit the file to be shared.
[0077] In one implementation, the sharing link generation module 10 includes:
[0078] An information acquisition unit, used to acquire file name information and storage path information of the file to be shared;
[0079] A location determination unit, configured to determine a storage location of the file to be shared based on the storage path information;
[0080] A link generation unit is used to generate the sharing link based on the file name information and the storage location.
[0081] In one implementation, the link generation unit includes:
[0082] A path determination subunit, used to obtain a sharing location, and determine a file reading path based on the sharing location and the storage location, wherein the file reading path is used to read the file to be shared;
[0083] The link sharing subunit is used to associate the file reading path with the file name information, generate the sharing link, and send the sharing link to a preset sharing location to realize the sharing of the sharing link.
[0084] In one implementation, the sharing link login module 20 includes:
[0085] A login information acquisition unit, used to parse the login request information, obtain user login information, and perform authentication processing on the user login information, wherein the user login information includes user account information and / or identification information of the user terminal;
[0086] A login information matching unit, used to match the user login information with the pre-stored authorized user information, and if the user login information matches the pre-stored authorized user information successfully, obtain login password information;
[0087] The password information matching unit is used to match the login password information with the pre-stored authorization password information, and if the login password information matches the pre-stored authorization password information successfully, it is determined that the login request information verification is passed and the shared link is successfully logged in.
[0088] In one implementation, the file reading and editing module 30 includes:
[0089] a target folder selection unit, configured to access the storage location of the file to be shared based on the sharing link, read the file to be shared, and select a target folder to be edited;
[0090] A file editing function starting unit, used to obtain the files in the target folder and start the file editing function;
[0091] The collaborative editing authorization unit is used to enable a multi-person collaborative editing mode if there are multiple users editing the files in the target folder, and to provide collaborative editing authorization to each user.
[0092] In one implementation, the device further includes:
[0093] an uploading user determining unit, configured to receive a file upload request after logging into the sharing link, and obtain uploading user information corresponding to the file upload request, wherein the uploading user information includes one or more user information;
[0094] A user information verification unit, used to verify the uploading user information, and after the uploading user information is verified, obtain the newly added file corresponding to the file upload request;
[0095] A newly added file archiving unit is used to automatically archive the newly added file and synchronize the file name of the archived newly added file to the sharing link.
[0096] In one implementation, the device further includes:
[0097] The time limitation unit is used to obtain the validity period of the sharing link. If the login request information is not received within the validity period, the sharing link will automatically become invalid.
[0098] The working principles of each module in the link-based file sharing system of this embodiment are the same as the principles of each step in the above method embodiment, and will not be repeated here.
[0099] Each module in the above-mentioned file sharing system based on link form can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the terminal in hardware form, or can be stored in the memory in the terminal in software form, so that the processor can call and execute the corresponding operations of each module.
[0100] Based on the above embodiment, the present invention further provides a terminal, the principle block diagram of the terminal can be as follows: Figure 3 The terminal may include one or more processors 100 ( Figure 3 Only one is shown in the figure), a memory 101 and a computer program 102 stored in the memory 101 and executable on one or more processors 100, for example, a sleep analysis program based on multi-sensor data. When one or more processors 100 execute the computer program 102, the various steps in the embodiment of the sleep analysis method based on multi-sensor data can be implemented. Alternatively, when one or more processors 100 execute the computer program 102, the functions of various modules / units in the embodiment of the sleep analysis system based on multi-sensor data can be implemented, which is not limited here.
[0101] In one embodiment, the processor 100 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0102] In one embodiment, the memory 101 may be an internal storage unit of an electronic device, such as a hard disk or memory of the electronic device. The memory 101 may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device. Further, the memory 101 may also include both an internal storage unit of the electronic device and an external storage device. The memory 101 is used to store computer programs and other programs and data required by the terminal. The memory 101 may also be used to temporarily store data that has been output or is to be output.
[0103] Those skilled in the art will understand that Figure 3 The principle block diagram shown in the figure is only a block diagram of a partial structure related to the scheme of the present invention, and does not constitute a limitation on the terminal to which the scheme of the present invention is applied. The specific terminal may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0104] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, operating database or other media used in the embodiments provided by the present invention 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 operational 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.
[0105] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A file sharing method based on link form, characterized in that: The method comprises: Acquire a file to be shared, and generate a sharing link according to the file to be shared, wherein the file to be shared includes a folder or a file group consisting of multiple folders; Receiving login request information, and verifying the login request information, and logging in to the sharing link after the login request information is verified; The storage location of the file to be shared is accessed based on the sharing link, and the file to be shared is read and edited.
2. The link-based file sharing method according to claim 1, characterized in that: The obtaining of the file to be shared and generating a sharing link according to the file to be shared includes: Get the file name and storage path information of the file to be shared; Based on the storage path information, determining a storage location of the file to be shared; The sharing link is generated based on the file name information and the storage location.
3. The link-based file sharing method according to claim 2, characterized in that: The generating the sharing link based on the file name information and the storage location includes: Obtaining a sharing location, and determining a file reading path based on the sharing location and the storage location, wherein the file reading path is used to read the file to be shared; The file reading path is associated with the file name information, the sharing link is generated, and the sharing link is sent to a preset sharing location to realize sharing of the sharing link.
4. The link-based file sharing method according to claim 1, characterized in that: The verifying the login request information, and logging in the sharing link after the login request information is verified, includes: Parsing the login request information, obtaining user login information, and performing authentication processing on the user login information, wherein the user login information includes user account information and / or identification information of the user terminal; Matching the user login information with the pre-stored authorized user information, and if the user login information matches the pre-stored authorized user information successfully, obtaining login password information; The login password information is matched with the pre-stored authorization password information, and if the login password information matches the pre-stored authorization password information successfully, it is determined that the login request information is verified and the shared link is successfully logged in.
5. The link-based file sharing method according to claim 1, characterized in that: The step of entering the storage location of the file to be shared based on the sharing link and reading and editing the file to be shared includes: Accessing the storage location of the file to be shared based on the sharing link, reading the file to be shared, and selecting a target folder to be edited; Obtain the files in the target folder and start the file editing function; If there are multiple users who edit the files in the target folder, a multi-user collaborative editing mode is enabled, and collaborative editing authorization is performed for each user.
6. The link-based file sharing method according to claim 1, characterized in that: The method further comprises: After logging into the sharing link, receiving a file upload request, and obtaining uploading user information corresponding to the file upload request, wherein the uploading user information includes one or more user information; Verifying the uploading user information, and after the uploading user information is verified, obtaining the newly added file corresponding to the file upload request; The newly added file is automatically archived, and the file name of the archived newly added file is synchronized to the sharing link.
7. The link-based file sharing method according to claim 1, characterized in that: The method further comprises: The validity period of the sharing link is obtained. If the login request information is not received within the validity period, the sharing link automatically becomes invalid.
8. A file sharing system based on link form, characterized in that: The system comprises: A sharing link generation module, used to obtain a file to be shared, and generate a sharing link according to the file to be shared, wherein the file to be shared includes a folder or a file group consisting of multiple folders; A sharing link login module, used to receive login request information, verify the login request information, and log in the sharing link after the login request information is verified; The file reading and editing module is used to access the storage location of the file to be shared based on the sharing link, and read and edit the file to be shared.
9. A terminal, characterized in that: The terminal includes a memory, a processor, and a link-based file sharing program stored in the memory and executable on the processor. When the processor executes the link-based file sharing program, the steps of the link-based file sharing method as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a file sharing program based on a link format. When the file sharing program based on a link format is executed by a processor, the steps of the file sharing method based on a link format as described in any one of claims 1 to 7 are implemented.