Online file collaboration method and system and readable storage medium
Through the online file collaboration method, the version management problem of multiple people updating the same file at the same time is solved, multi-terminal synchronous updates are realized, version management is simplified, and operation efficiency is improved.
Patent Information
- Application Number
- CN202310165220.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-21
- Publication Date
- 2024-08-23
AI Technical Summary
Existing technology cannot allow multiple people to operate the same file online at the same time and perform collaborative updates, resulting in chaotic version management and requiring users to manually define complex version numbering rules, which increases maintenance and learning costs.
Through the online file collaboration method, the original file is uploaded and saved to the file storage server, file-type documents are created, version updates are performed, and multi-end synchronous updates are implemented through the collaborative document refresh interface to ensure that all users see the latest version and avoid manual definition of version numbers.
It realizes multi-person online collaborative updates, simplifies version management, improves file operation and management efficiency, and avoids complex definitions and manual maintenance of version numbers.
Smart Images

Figure CN118535543A
Abstract
Description
Technical Field
[0001] The present application relates to the field of file collaboration technology, and in particular, to an online file collaboration method and system, and a readable storage medium. Background Art
[0002] Currently, there is no collaborative file technology, and multiple people cannot simultaneously operate and update the same file online. Each update requires uploading a version file, and multiple versions result in multiple exports and display confusion. The same file will be uploaded multiple times due to multiple modifications, and users need to define complex version numbering rules (such as GA, Release, RC, Beta, Alpha version numbering rules and custom version numbering rules) and perform manual maintenance, which has high maintenance costs and requires a certain amount of learning costs. Summary of the invention
[0003] This application aims to solve or improve the above technical problems.
[0004] To this end, the first objective of the present application is to provide an online file collaboration method.
[0005] The second objective of the present application is to provide an online file collaboration system.
[0006] The third objective of this application is to provide an online file collaboration system.
[0007] The fourth object of the present application is to provide a readable storage medium.
[0008] To achieve the first purpose of the present application, the technical solution of the first aspect of the present application provides an online file collaboration method, including: uploading the original file through the front end; saving the original file on the file storage server, saving the original file information of the original file in the document file relationship table, and setting the original file as the current version file; creating a file-type document, and saving the file-type document in the document information table; displaying the file and updating the current version file through the front end to obtain an updated file, the updated file and the current version file are the same source files, and the file display includes online preview and / or download preview; uploading the updated file through the front end; saving the updated file information of the updated file in the document file relationship table, and setting the updated file as the current version file, and changing the original file to a normal file; calling the collaborative document collaborative refresh interface, and synchronously updating and displaying the collaborative file on multiple terminals, and the collaborative file is the current version file.
[0009] According to the online file collaboration method provided by the present application, firstly, the original file is uploaded through the front end, the original file is saved to the file storage service, the original file information is saved in the document file relationship table, and the original file is set as the current version file. Create a file-type document and save the file-type document in the document information table. Display the file and update the current version file through the front end to obtain the updated file. The same source type file must be uploaded again. The updated file is saved to the file storage service, and the updated file information is saved in the document file relationship table. The newly uploaded one is the current version, and the original current version becomes ordinary. A file-type document corresponds to multiple versions of files. Among the multiple version files, only one belongs to the current version file. After the version is updated, the collaborative update is called so that all users who open the file online can see that the current file has been replaced. When multiple people open the file online at the same time, when updating the file, through the version update, the same type of file is re-uploaded to replace the current version of the file, and the collaborative document refresh channel is called at the same time to realize that the files opened by multiple terminals are synchronously updated to the newly uploaded files, so as to achieve the effect of multi-person collaboration. Multiple uploads of the same file need to be based on the uploaded files. In a certain directory, this file always displays one version file that has been uploaded multiple times, which can be viewed in the version list in the file properties. The technical solution of this application solves the problem that online files cannot be updated collaboratively, so that when multiple people open the same file online, they can update collaboratively. Multiple updates are based on the same file without manually defining the file version number, thereby improving the efficiency of file operation and management.
[0010] In addition, the technical solution provided by this application may also have the following additional technical features:
[0011] In the above technical solution, the original file information of the original file is saved in the document file relationship table, and the original file is set as the current version file, which specifically includes: constructing a document file relationship entity based on the original file; writing the document file relationship entity into the document file relationship table, and returning the execution result.
[0012] In this technical solution, the original file information of the original file is saved in the document file relationship table, and the original file is set as the current version file, specifically, the document file relationship entity is first constructed according to the original file, and then the document file relationship entity is written into the document file relationship table, and the execution result is returned.
[0013] In the above technical solution, a file-type document is created and saved in a document information table, which specifically includes: constructing a document information entity according to the original file; writing the document information entity into the document information table, and returning the execution result.
[0014] In this technical solution, a file-type document is created and saved in a document information table. Specifically, a document information entity is first constructed based on the original file. Then the document information entity is written into the document information table, and the execution result is returned. In the same transaction method, the document information entity is written into the document information table, and the document-file relationship entity is written into the document-file relationship table. The execution result is returned to the front end. The user opens the file through the front end and can preview or download the current version of the file.
[0015] In the above technical solution, the updated file information of the updated file is saved in the document file relationship table, and the updated file is set as the current version file, and the original file is changed to a normal file, which specifically includes: constructing a document file relationship write entity according to the updated file, and setting the status of the document file relationship write entity to the current version; querying the current version ID through the document ID, and returning the current version ID; constructing a document file relationship update entity, and changing the status of the original file to normal; writing the document file relationship write entity into the document file relationship table, updating the document file relationship update entity into the document file relationship table, and returning the execution result.
[0016] In this technical solution, the updated file information of the updated file is saved in the document file relationship table, and the updated file is set as the current version file, and the original file is changed to a normal file. Specifically, the legitimacy of the user is verified, whether the user has the version update permission of the current document, and whether the type of the uploaded file is consistent with the file type of the current version. After passing, the file upload interface provided by the file storage service is called, the uploaded file ID is returned, and a document file relationship write entity-the status is the current version. The current version ID is queried in the document file relationship table through the document ID, and the current version ID is returned. The document file relationship update entity-the current version status is normal is constructed. In the same transaction method, the document file relationship write entity is written into the document file relationship table, and the document file relationship update entity is updated into the document file relationship table. After execution is completed, the collaborative document collaborative refresh interface is called, and the multi-terminal display will be updated synchronously, and the current file on the front end will become the updated file.
[0017] In the above technical solution, the online file collaboration method further includes: setting the historical version file in the version history list as the current version.
[0018] In this technical solution, the online file collaboration method further includes setting the historical version file in the version history list as the current version. It can be understood that this is to set a non-current version file in the version history list as the current version, that is, the status of this file in the document file relationship table is the current version, and the status of the previous current version is normal.
[0019] In the above technical solution, the historical version file in the version history list is set as the current version, which specifically includes: calling the historical version restoration interface to verify whether the current user has the permission to restore the version; building an update entity, configuring the status of the current version file to normal, and configuring the status of the historical version file to the current version; updating the update entity to the document file relationship table, and returning the execution result.
[0020] In this technical solution, the historical version file in the version history list is set as the current version, specifically by calling the historical version restoration interface to verify whether the current user has the permission to restore the version. Then build an update entity, configure the status of the current version file to normal, and configure the status of the restored version to the current version. Finally, update the update entity to the document file relationship table, and return the execution result. Specifically, open the file properties, you can view the version list. In the version list, you can rename the version, delete the version, and when you click on a version file, you can preview the file of that version. You can also restore a historical version to become the current version, and the original current version becomes a normal version. The current page will display the restored version file. After the version changes, it will trigger a collaborative update, so that all terminals that open the file online will change synchronously.
[0021] In the above technical solution, the online file collaboration method also includes: querying the preview or download link through the collaborative file ID and the uploaded file ID; querying the document file relationship table through the collaborative file ID and the uploaded file ID; obtaining the download link and / or preview link through the uploaded file ID, and returning the preview link and / or download link; the front end processes the returned link data, previews it within the page and / or displays the download information on the page.
[0022] In this technical solution, the online file collaboration method also includes previewing and downloading collaborative files. Specifically, when a user opens a collaborative file, PDF, images, and office-related files support online preview, and other types of files do not support online preview. The download page is displayed, and the preview or download link is queried through the collaborative file ID and the uploaded file ID. After receiving the request, the collaborative document service queries the document file relationship table through the collaborative file ID and the uploaded file ID, and returns the query result. If the returned result exists, continue to go down, obtain the download link or preview link through the uploaded file ID, return the preview or download link, and the front end processes the returned link data. If it is a preview, it is previewed in the page, and if it is a download, the download information is displayed on the page.
[0023] In the above technical solution, before saving the update file information of the update file into the document file relationship table, it also includes: judging whether the types of the update file and the original file are consistent; if not, reporting an error.
[0024] In this technical solution, before saving the updated file information of the updated file into the document file relationship table, it is also included to determine whether the types of the updated file and the original file are consistent. If the types of the updated file and the original file are inconsistent, an error is reported. It can be understood that the second and subsequent uploads need to be uploaded based on an uploaded file, and the file type needs to be consistent with the first upload. For example, if a PDF file is uploaded for the first time, a PDF file needs to be uploaded for the second time, and a PDF file needs to be uploaded for the third time. Uploading other types of files will result in an error.
[0025] To achieve the second purpose of the present application, the technical solution of the second aspect of the present application provides an online file collaboration system, including: a first upload module, used to upload the original file through the front end; a first collaborative file creation module, used to save the original file to the file storage server, save the original file information of the original file to the document file relationship table, and set the original file as the current version file; a second collaborative file creation module, used to create a file-type document, and save the file-type document to the document information table; a version update module, used to display the file through the front end and update the current version file to obtain an updated file, the updated file and the current version file are the same source file, and the file display includes online preview and / or download preview; the second upload module is used to upload the updated file through the front end; the third collaborative file creation module is used to save the updated file information of the updated file to the document file relationship table, and set the updated file as the current version file, and change the original file to a normal file; a collaborative update module, used to call the collaborative document collaborative refresh interface, and synchronously update and display the collaborative file on multiple terminals, and the collaborative file is the current version file.
[0026] According to the online file collaboration system provided by the present application, it includes a first upload module, a first collaborative file creation module, a second collaborative file creation module, a version update module, a second upload module, a third collaborative file creation module and a collaborative update module. Among them, the first upload module is used to upload the original file through the front end. The first collaborative file creation module is used to save the original file to the file storage server, save the original file information of the original file to the document file relationship table, and set the original file as the current version file. The second collaborative file creation module is used to create a file-type document and save the file-type document to the document information table. The version update module is used to display the file through the front end and update the current version file to obtain an updated file. The updated file and the current version file are the same source file, and the file display includes online preview and / or download preview. The second upload module is used to upload the updated file through the front end. The third collaborative file creation module is used to save the updated file information of the updated file to the document file relationship table, set the updated file as the current version file, and change the original file to a normal file. The collaborative update module is used to call the collaborative document collaborative refresh interface, and the collaborative file is updated and displayed synchronously on multiple terminals. The collaborative file is the current version file. The technical solution of the present application solves the problem that online files cannot be updated collaboratively, so that when multiple people open the same file online, they can collaboratively update it. Multiple updates are performed based on the same file without the need to manually define file version numbers, thereby improving the efficiency of file operations and management.
[0027] To achieve the third purpose of the present application, the technical solution of the third aspect of the present application provides an online file collaboration system, including: a memory and a processor, wherein the memory stores programs or instructions that can be run on the processor, and when the processor executes the program or instruction, it implements the online file collaboration method of any one of the technical solutions of the first aspect, and thus has the technical effect of any of the technical solutions of the first aspect, which will not be repeated here.
[0028] In order to achieve the fourth purpose of the present application, the technical solution of the fourth aspect of the present application provides a readable storage medium on which a program or instruction is stored. When the program or instruction is executed by the processor, the steps of the online file collaboration method of any one of the technical solutions of the first aspect are implemented, and thus it has the technical effect of any one of the technical solutions of the first aspect mentioned above, which will not be repeated here.
[0029] Additional aspects and advantages of the present application will become apparent in the following description or will be learned through practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0031] Figure 1A schematic diagram of the steps of an online file collaboration method according to an embodiment of the present application;
[0032] Figure 2 A schematic diagram of the steps of an online file collaboration method according to an embodiment of the present application;
[0033] Figure 3 A schematic diagram of the steps of an online file collaboration method according to an embodiment of the present application;
[0034] Figure 4 A schematic diagram of the steps of an online file collaboration method according to an embodiment of the present application;
[0035] Figure 5 A schematic diagram of the steps of an online file collaboration method according to an embodiment of the present application;
[0036] Figure 6 A schematic diagram of the steps of an online file collaboration method according to an embodiment of the present application;
[0037] Figure 7 A schematic diagram of the steps of an online file collaboration method according to an embodiment of the present application;
[0038] Figure 8 A schematic block diagram of the structure of an online file collaboration system according to an embodiment of the present application;
[0039] Fig. 9 A schematic structural block diagram of an online file collaboration system according to another embodiment of the present application;
[0040] Fig.10 A schematic diagram of the steps of an online file collaboration method according to an embodiment of the present application;
[0041] Fig.11 A schematic diagram of the steps of an online file collaboration method according to an embodiment of the present application;
[0042] Fig.12 A schematic diagram of the steps of an online file collaboration method according to an embodiment of the present application;
[0043] Fig.13 A schematic diagram of the steps of an online file collaboration method according to an embodiment of the present application;
[0044] Fig.14 A schematic flowchart of the steps of an online file collaboration method according to an embodiment of the present application.
[0045] in, Figure 8 and Fig. 9 The corresponding relationship between the reference numerals and component names in the figure is:
[0046] 10: online file collaboration system; 110: first upload module; 120: first collaborative file creation module; 130: second collaborative file creation module; 140: version update module; 150: second upload module; 160: third collaborative file creation module; 170: collaborative update module; 20: online file collaboration system; 300: memory; 400: processor. DETAILED DESCRIPTION
[0047] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0048] In the following description, many specific details are set forth to facilitate a full understanding of the present application. However, the present application may also be implemented in other ways different from those described herein. Therefore, the scope of protection of the present application is not limited to the specific embodiments disclosed below.
[0049] Refer to the following Figures 1 to 14 Describe online file collaboration methods and systems, and readable storage media according to some embodiments of the present application.
[0050] like Figure 1 As shown, the embodiment of the first aspect of the present application provides an online file collaboration method, comprising the following steps:
[0051] Step S102: Upload the original file through the front end;
[0052] Step S104: saving the original file to the file storage server, saving the original file information of the original file to the document file relationship table, and setting the original file as the current version file;
[0053] Step S106: Create a file document and save the file document into the document information table;
[0054] Step S108: Display the file through the front end and update the current version file to obtain an updated file. The updated file and the current version file are the same source files. The file display includes online preview and / or download preview.
[0055] Step S110: Upload the update file through the front end;
[0056] Step S112: save the updated file information of the updated file into the document file relationship table, set the updated file as the current version file, and change the original file into a common file;
[0057] Step S114: call the collaborative document collaborative refresh interface, and update and display the collaborative file synchronously on multiple terminals. The collaborative file is the current version file.
[0058] According to the online file collaboration method provided by this embodiment, first, the original file is uploaded through the front end, the original file is saved to the file storage service, the original file information is saved in the document file relationship table, and the original file is set as the current version file. The document file relationship table can be used to query which files the document has. If you want to preview and download the file, you will read the file from the file storage server. Create a file-type document and save the file-type document in the document information table. The front end displays the file and updates the current version file to obtain the updated file. The same source type file must be uploaded again. The updated file is saved to the file storage service, and the updated file information is saved in the document file relationship table. The newly uploaded file is the current version, and the original current version becomes ordinary. A file-type document corresponds to multiple versions of files. Among the multiple version files, only one belongs to the current version file. After the version is updated, the collaborative update is called, so that all users who open the file online can see that the current file has been replaced. When multiple people open the file online at the same time, when updating the file, the same type of file is re-uploaded through the version update to replace the current version of the file, and the collaborative document refresh channel is called at the same time to achieve the synchronization of the files opened by multiple terminals to the newly uploaded files, so as to achieve the effect of multi-person collaboration. Multiple uploads of the same file need to be based on the uploaded files. In a certain directory, this file always displays one version file that has been uploaded multiple times, which can be viewed in the version list in the file properties. The technical solution of this application solves the problem that online files cannot be updated collaboratively, so that when multiple people open the same file online, they can update collaboratively. Multiple updates are based on the same file without manually defining the file version number, thereby improving the efficiency of file operation and management.
[0059] like Figure 2 As shown, according to an online file collaboration method of an embodiment proposed by the present application, the original file information of the original file is saved in the document file relationship table, and the original file is set as the current version file, which specifically includes the following steps:
[0060] Step S202: constructing a document file relationship entity according to the original file;
[0061] Step S204: Write the document-file relationship entity into the document-file relationship table and return the execution result.
[0062] In this embodiment, the original file information of the original file is saved in the document file relationship table, and the original file is set as the current version file, specifically, the document file relationship entity is first constructed according to the original file, and then the document file relationship entity is written into the document file relationship table, and the execution result is returned.
[0063] like Figure 3 As shown, according to an online file collaboration method of an embodiment proposed in the present application, a file-type document is created and saved in a document information table, specifically including the following steps:
[0064] Step S302: constructing a document information entity according to the original file;
[0065] Step S304: Write the document information entity into the document information table and return the execution result.
[0066] In this embodiment, a file-type document is created and saved in a document information table. Specifically, a document information entity is first constructed based on the original file. Then the document information entity is written into the document information table, and the execution result is returned. In the same transaction method, the document information entity is written into the document information table, and the document-file relationship entity is written into the document-file relationship table. The execution result is returned to the front end. The user opens the file through the front end and can preview or download the current version of the file.
[0067] like Figure 4 As shown, according to an online file collaboration method of an embodiment proposed by the present application, the update file information of the update file is saved in the document file relationship table, and the update file is set as the current version file, and the original file is changed into a common file, which specifically includes the following steps:
[0068] Step S402: constructing a document file relationship writing entity according to the update file, and setting the status of the document file relationship writing entity to the current version;
[0069] Step S404: query the current version ID through the document ID and return the current version ID;
[0070] Step S406: construct a document file relationship update entity, and change the status of the original file to normal;
[0071] Step S408: Write the document-file relationship write entity into the document-file relationship table, update the document-file relationship update entity into the document-file relationship table, and return the execution result.
[0072] In this embodiment, the update file information of the updated file is saved in the document file relationship table, and the updated file is set as the current version file, and the original file is changed to a normal file. Specifically, the legitimacy of the user is verified, whether the user has the version update authority of the current document, and whether the type of the uploaded file is consistent with the file type of the current version. After passing, the file upload interface provided by the file storage service is called, the uploaded file ID is returned, and a document file relationship write entity-the status is the current version. The current version ID is queried in the document file relationship table through the document ID, and the current version ID is returned. The document file relationship update entity-the current version status is normal is constructed. In the same transaction method, the document file relationship write entity is written into the document file relationship table, and the document file relationship update entity is updated to the document file relationship table. After execution is completed, the collaborative document collaborative refresh interface is called, and the multi-terminal display will be updated synchronously, and the current file on the front end will become the updated file.
[0073] In the above embodiment, the online file collaboration method further includes setting the historical version file in the version history list as the current version. It can be understood that this is to set a non-current version file in the version history list as the current version, that is, the status of this file in the document file relationship table is the current version, and the status of the previous current version is normal.
[0074] like Figure 5 As shown, the online file collaboration method according to an embodiment of the present application further includes the following steps:
[0075] Step S502: calling the historical version restoration interface to verify whether the current user has the permission to restore the version;
[0076] Step S504: construct an update entity, configure the status of the current version file to normal, and configure the status of the historical version file to the current version;
[0077] Step S506: Update the updated entity into the document file relationship table and return the execution result.
[0078] In this embodiment, the online file collaboration method also includes calling the historical version restoration interface to verify whether the current user has the permission to restore the version. Then build an update entity, configure the status of the current version file to normal, and configure the status of the historical version file to the current version. Finally, update the update entity to the document file relationship table and return the execution result. Specifically, open the file properties, you can view the version list. In the version list, you can rename the version, delete the version, and when you click on a version file, you can preview the version of the file. You can also restore a historical version to become the current version. The original current version becomes a normal version. The current page will display the restored version file. After the version changes, it will trigger a collaborative update, so that all terminals that open the file online will change synchronously.
[0079] like Figure 6 As shown, the online file collaboration method according to an embodiment of the present application further includes the following steps:
[0080] Step S602: Query the preview or download link through the collaborative file ID and the uploaded file ID;
[0081] Step S604: query the document file relationship table through the collaborative file ID and the uploaded file ID;
[0082] Step S606: Obtain a download link and / or a preview link by uploading the file ID, and return the preview link and / or the download link;
[0083] Step S608: The front end processes the returned link data, previews it in the page and / or displays the download information on the page.
[0084] In this embodiment, the online file collaboration method also includes previewing and downloading collaborative files. Specifically, when a user opens a collaborative file, PDF, images, and office-related files support online preview, and other types of files do not support online preview, a download page is displayed, and a preview or download link is queried through the collaborative file ID and the uploaded file ID. After receiving the request, the collaborative document service queries the document file relationship table through the collaborative file ID and the uploaded file ID, and returns the query result. If the returned result exists, continue to go down, obtain the download link or preview link through the uploaded file ID, return the preview or download link, and the front end processes the returned link data. If it is a preview situation, preview it in the page, and if it is a download situation, display the download information on the page.
[0085] like Figure 7 As shown, according to an embodiment of the online file collaboration method proposed by the present application, before saving the updated file information of the updated file into the document file relationship table, the following steps are also included:
[0086] Step S702: Determine whether the types of the updated file and the original file are consistent;
[0087] Step S704: If not, an error is reported.
[0088] In this embodiment, before saving the update file information of the update file into the document file relationship table, it is also included to determine whether the types of the update file and the original file are consistent. If the types of the update file and the original file are inconsistent, an error is reported. It can be understood that the second and subsequent uploads need to be uploaded based on an uploaded file, and the file type needs to be consistent with the first upload. For example, if a PDF file is uploaded for the first time, a PDF file needs to be uploaded for the second time, and a PDF file needs to be uploaded for the third time. Uploading other types of files will result in an error.
[0089] In some embodiments, the original file includes an online preview file and a download preview file. It is understandable that all file types can support uploading, only a few can be previewed online, and most do not support preview, but can be downloaded. Specifically, the type of the original file can be a PDF file, picture, office file that supports online preview, or a download preview file that only supports downloading. The type of download preview file includes all file types in the world, such as ddl files, exe files, and java files. Both online preview files and download preview files can be updated on the preview page or download page.
[0090] like Figure 8 As shown, an embodiment of the second aspect of the present application provides an online file collaboration system 10, including: a first upload module 110, used to upload the original file through the front end; a first collaborative file creation module 120, used to save the original file to the file storage server, save the original file information of the original file to the document file relationship table, and set the original file as the current version file; a second collaborative file creation module 130, used to create a file-type document, and save the file-type document to the document information table; a version update module 140, used to display the file through the front end and update the current version file to obtain an updated file, the updated file and the current version file are the same source file, and the file display includes online preview and / or download preview; a second upload module 150, used to upload the updated file through the front end; a third collaborative file creation module 160, used to save the updated file information of the updated file to the document file relationship table, and set the updated file as the current version file, and change the original file to a normal file; a collaborative update module 170, used to call the collaborative document collaborative refresh interface, and multi-terminal synchronously update and display the collaborative file, and the collaborative file is the current version file.
[0091] According to the online file collaboration system 10 provided in this embodiment, it includes a first upload module 110, a first collaborative file creation module 120, a second collaborative file creation module 130, a version update module 140, a second upload module 150, a third collaborative file creation module 160 and a collaborative update module 170. Among them, the first upload module 110 is used to upload the original file through the front end. The first collaborative file creation module 120 is used to save the original file to the file storage server, save the original file information of the original file to the document file relationship table, and set the original file as the current version file. The second collaborative file creation module 130 is used to create a file-type document and save the file-type document to the document information table. The version update module 140 is used to display the file through the front end and update the current version file to obtain an updated file. The updated file and the current version file are the same source file, and the file display includes online preview and / or download preview. The second upload module 150 is used to upload the updated file through the front end. The third collaborative file creation module 160 is used to save the updated file information of the updated file to the document file relationship table, set the updated file as the current version file, and change the original file to a common file. The collaborative update module 170 is used to call the collaborative document collaborative refresh interface, and the collaborative file is displayed synchronously on multiple terminals. The collaborative file is the current version file. The technical solution of this application solves the problem that online files cannot be updated collaboratively, so that when multiple people open the same file online, they can update collaboratively. Multiple updates are based on the same file, and there is no need to manually define the file version number, thereby improving the efficiency of file operation and management.
[0092] like Fig. 9 As shown, an embodiment of the third aspect of the present application provides an online file collaboration system 20, including: a memory 300 and a processor 400, wherein the memory 300 stores programs or instructions that can be run on the processor 400, and when the processor 400 executes the program or instruction, the steps of the online file collaboration method of any one of the embodiments of the first aspect are implemented, and thus the technical effect of any one of the embodiments of the first aspect mentioned above is not repeated here.
[0093] The embodiment of the fourth aspect of the present application provides a readable storage medium on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the online file collaboration method of any one of the embodiments of the first aspect are implemented, and thus it has the technical effect of any one of the embodiments of the first aspect mentioned above, which will not be repeated here.
[0094] like Figures 10 to 14As shown, according to a specific embodiment of the online file collaboration method provided by the present application, the problem that online files cannot be updated collaboratively can be solved, so that when multiple people open the same file online, they can be updated collaboratively, and multiple updates are performed based on the same file without manually defining the file version number, thereby improving the efficiency of file operation and management. For example, if there are two files in a directory, after multiple updates, they are still two files.
[0095] like Fig.10 As shown, it is the first time to upload a file, and the file upload interface needs to be called. After the upload is successful, the collaborative file is created, and the collaborative file always displays the current version. PDF, picture and office file types support preview, and other types of files only support download. Version updates can be performed on the preview page or download page, requiring that the file is of the same type as the current version. Version update is to upload the file again to replace the currently displayed file. The replaced current file becomes a normal file and becomes one of the historical versions. After the version is updated, call the collaborative update, so that all users who open the file online can see that the current file has been replaced. Open the file properties and you can view the version list. In the version list, you can rename and delete the version. When you click a version file, you can preview the file of that version, or restore a historical version to become the current version. The original current version becomes a normal version. The current page will display the restored version file. After the version is changed, a collaborative update will be triggered, so that all terminals that open the file online will change synchronously.
[0096] like Fig.11 As shown in the figure, the core main line starts from user operation, uploading files, creating file-type documents, updating file versions, collaborative refreshing, and when multiple users are online, they perceive that collaborative files have been updated. Upload files and save them to the document file relationship table. The status is the current version. Create a file-type document and save it in the document information table. File version update is a file upload of the same source type again, which is saved in the document file relationship table. The newly uploaded one is the current version, and the original current version becomes ordinary. A file-type document corresponds to multiple versions of files. Among the multiple versions of files, only one is the current version file.
[0097] like Fig.12 As shown, the collaborative file use case structure includes version update, collaborative refresh, version list, preview, download, version rename, restore to current version and version deletion.
[0098] like Fig.13As shown, specifically, the user uploads a file through the front end, and the front end calls the file upload interface of the collaborative document service. After receiving the request, the user's legitimacy is verified. After passing, the file upload interface provided by the file storage service is called. After success, the uploaded file ID is returned, the document information entity is constructed, marked A, and the document file relationship entity is constructed, marked B. In the same transaction method, A is written to the document information table, and B is written to the document file relationship table. The execution result is returned to the front end. The user opens the file through the front end. PDF, pictures and office-related files support online preview, and other types of files display download information. When the user updates the version on the preview file page, the same source file upload interface needs to be called. After receiving the request, the collaborative document service verifies the user's legitimacy, verifies whether the user has the version update permission of the current document, and verifies whether the type of the uploaded file is consistent with the file type of the current version. After passing, the file upload interface provided by the file storage service is called, and the uploaded file ID is returned. The document file relationship write entity-status is the current version, marked A, and the current version ID is queried in the document file relationship table through the document ID. The current version ID is returned, and the document file relationship update entity-current version status is normal, marked B, is constructed in the same transaction method. Write A to the document file relationship table, and update B to the document file relationship table. After the execution is completed, call the collaborative document collaborative refresh interface, and the multi-terminal display will be updated synchronously, and the current file on the front end will become the updated file. The user opens the version list through the properties of the current preview file, calls the file version list interface, verifies whether the current user has the permission to view the version list, queries the document file relationship table by document ID, and returns the file version result list. The user performs a restore on a historical version and calls the historical version restore interface. After receiving the request, the collaborative document service verifies whether the current user has the permission to restore the version, builds an update entity-configures the current version status as normal, marks A, builds an update entity-configures the restored version status as the current version, marks B, the same thing-in the document file relationship table, executes the update of A and B, returns the execution result, and after success, calls the collaborative document collaborative refresh interface, the multi-terminal display will be updated synchronously, and the current file on the front end will become the restored version file.
[0099] like Fig.14As shown, when a user opens a collaborative file, PDF, images, and office-related files support online preview. For other types of files that do not support online preview, the download page is displayed, and the preview or download link is queried through the collaborative file ID and the uploaded file ID. After receiving the request, the collaborative document service queries the document file relationship table through the collaborative file ID and the uploaded file ID and returns the query result. If the returned result exists, continue to go down and obtain the download link or preview link through the uploaded file ID. The preview or download link is returned, and the front end processes the returned link data. If it is a preview, it is previewed on the page. If it is a download, the download information is displayed on the page.
[0100] Among them, the technical principle of the multi-person collaborative effect of online files is: when multiple people open a file online at the same time, when updating the file, through version update, re-upload the same type of file, replace the current version of the file, and at the same time call the collaborative document refresh channel to achieve the synchronization of files opened on multiple terminals to be updated to the newly uploaded files, thereby achieving the effect of multi-person collaboration.
[0101] Additional note: Some online files cannot be edited. For online file collaboration, some files support online editing. After switching to the editing mode, they are converted into standard collaborative documents and collaboration is performed according to the collaborative documents.
[0102] Therefore, such files that cannot be edited online can be updated offline, re-uploaded, and the current version can be replaced by the collaborative document refresh channel to achieve online collaborative effects.
[0103] The technical principle of single display of multiple versions of files: Multiple uploads of the same file need to be based on the uploaded files. In a certain directory, this file always displays one version file that has been uploaded multiple times, which can be viewed in the version list in the file properties.
[0104] The technical principle of restoring the current version of a file from a historical version: In the version list in the file properties, you can perform a restore operation when browsing a historical version file. After the restore is executed, the restored version becomes the current version, and the current version of the file becomes a normal version. After the change, the current version previously displayed on the page is replaced by the restored version. After adjusting the collaborative refresh channel, the effect of multi-person online collaborative refresh is achieved.
[0105] Same-source upload: refers to the second and subsequent uploads, which need to be based on an already uploaded file and must be consistent with the file type of the first upload. For example, if a PDF file is uploaded for the first time, it is also necessary to upload a PDF file for the second and third time. Uploading other types of files will result in an error.
[0106] File-type documents: After a file is uploaded to the collaborative document system, a document data entry needs to be created in the document information table. The document type is file. This way, the file has document attributes and can be managed as a document. For example, in the document directory, there are both ordinary collaborative documents and file-type documents.
[0107] In summary, the beneficial effects of the embodiments of the present application are:
[0108] 1. When multiple people open a file online at the same time, when updating the file, they can re-upload the same type of file through version update to replace the current version of the file, and at the same time adjust the collaborative document refresh channel to synchronize the files opened on multiple terminals to the newly uploaded files, thus achieving the effect of multi-person collaboration.
[0109] 2. Multiple uploads of the same file need to be based on the uploaded files. In a certain directory, this file always displays one version file that has been uploaded multiple times. You can view it in the version list in the file properties.
[0110] 3. In the version list in the file properties, when browsing a historical version file, you can perform a restore operation. After the restore is executed, the restored version becomes the current version, and the current version of the file becomes a normal version. After the change, the current version previously displayed on the page is replaced by the restored version. After adjusting the collaborative refresh channel, the effect of multi-person online collaborative refresh is achieved.
[0111] In this application, the terms "first", "second", and "third" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance; the term "plurality" refers to two or more, unless otherwise expressly defined. Terms such as "installed", "connected", "connected", and "fixed" should be understood in a broad sense. For example, "connected" can be a fixed connection, a detachable connection, or an integral connection; "connected" can be a direct connection or an indirect connection through an intermediate medium. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to the specific circumstances.
[0112] In the description of the present application, it should be understood that the terms "upper", "lower", "front", "rear", etc., indicating directions or positional relationships, are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or module referred to must have a specific direction, be constructed and operated in a specific orientation, and therefore, should not be understood as a limitation on the present application.
[0113] In the description of this specification, the description of the terms "one embodiment", "some embodiments", "specific embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0114] The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. An online file collaboration method, characterized in that: include: Upload the original file through the front end; The original file is saved on a file storage server, the original file information of the original file is saved in a document file relationship table, and the original file is set as a current version file; Creating a file-type document, and saving the file-type document in a document information table; Display the file through the front end and update the current version file to obtain an updated file, wherein the updated file and the current version file are files of the same source, and the file display includes online preview and / or download preview; Upload and update files through the front end; Saving the update file information of the update file into the document file relationship table, setting the update file as the current version file, and changing the original file into a common file; The collaborative document collaborative refresh interface is called, and the collaborative file is updated and displayed synchronously on multiple terminals. The collaborative file is the current version file.
2. The online file collaboration method according to claim 1, characterized in that: The step of saving the original file information of the original file into the document file relationship table and setting the original file as the current version file specifically includes: Constructing a document file relationship entity according to the original file; The document-file relationship entity is written into the document-file relationship table, and the execution result is returned.
3. The online file collaboration method according to claim 2, characterized in that: The step of creating a file-type document and saving the file-type document in a document information table specifically includes: Constructing a document information entity according to the original file; The document information entity is written into the document information table, and the execution result is returned.
4. The online file collaboration method according to claim 3, characterized in that: Saving the update file information of the update file into the document file relationship table, setting the update file as the current version file, and changing the original file into a common file, specifically includes: Constructing a document file relationship writing entity according to the update file, and setting the state of the document file relationship writing entity to the current version; Query the current version ID through the document ID and return the current version ID; Constructing a document file relationship update entity to change the status of the original file to normal; The document-file relationship writing entity is written into the document-file relationship table, the document-file relationship updating entity is updated into the document-file relationship table, and the execution result is returned.
5. The online file collaboration method according to any one of claims 1 to 4, characterized in that: The online file collaboration method further includes: Set the historical version file in the version history list as the current version.
6. The online file collaboration method according to claim 5, characterized in that: The step of setting the historical version file in the version history list as the current version specifically includes: Call the historical version restoration interface to verify whether the current user has the permission to restore the version; Build an update entity, configure the status of the current version file to normal, and configure the status of the historical version file to the current version; The update entity is updated into the document file relationship table, and the execution result is returned.
7. The online file collaboration method according to any one of claims 1 to 4, characterized in that: The online file collaboration method further includes: Query the preview or download link by collaborative file ID and uploaded file ID; Query the document file relationship table by collaborative file ID and uploaded file ID; Get the download link and / or preview link by uploading the file ID, and return the preview link and / or download link; The front end processes the returned link data, previews it within the page, and / or displays the download information on the page.
8. The online file collaboration method according to any one of claims 1 to 4, characterized in that: Before the updating file information of the updating file is saved in the document file relationship table, the method further includes: Determining whether the types of the update file and the original file are consistent; If not, an error is reported.
9. An online file collaboration system, characterized in that: include: A first uploading module (110), used for uploading original files through a front end; A first collaborative file creation module (120), used for saving the original file to a file storage server, saving the original file information of the original file to a document file relationship table, and setting the original file as a current version file; A second collaborative file creation module (130), used to create a file-type document and save the file-type document into a document information table; A version update module (140), used for performing file display through the front end and performing version update on the current version file to obtain an update file, wherein the update file and the current version file are files of the same source, and the file display includes online preview and / or download preview; A second uploading module (150), used for uploading update files through the front end; A third collaborative file creation module (160), used to save the update file information of the update file into the document file relationship table, and set the update file as the current version file, and change the original file into a common file; The collaborative update module (170) is used to call the collaborative document collaborative refresh interface, and to update and display the collaborative file synchronously on multiple terminals, where the collaborative file is the current version file.
10. An online file collaboration system, characterized in that: include: A memory (300) and a processor (400), wherein the memory (300) stores a program or instruction that can be run on the processor (400), and the processor (400) implements the steps of the online file collaboration method as described in any one of claims 1 to 8 when executing the program or the instruction.
11. A readable storage medium having a program or instruction stored thereon, characterized in that: When the program or the instruction is executed by a processor, the steps of the online file collaboration method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
System for writing and compiling cooperated documents
CN101350009A
Method for directly operating file stored at cloud end
CN103605798A
Method and system for document synchronization in a distributed server-client environment
CN105453127A
Method and system for cooperatively editing files and method and system monitoring file operations
CN110888845A
Big data quality control method and device
CN113778978A
