CN112667581A - File link processing method, client and server for text editing - Google Patents
File link processing method, client and server for text editing Download PDFInfo
- Publication number
- CN112667581A CN112667581A CN202011438475.0A CN202011438475A CN112667581A CN 112667581 A CN112667581 A CN 112667581A CN 202011438475 A CN202011438475 A CN 202011438475A CN 112667581 A CN112667581 A CN 112667581A
- Authority
- CN
- China
- Prior art keywords
- file
- link address
- internal
- external
- address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 37
- 238000004140 cleaning Methods 0.000 claims abstract description 78
- 238000000034 method Methods 0.000 claims abstract description 30
- 238000004590 computer program Methods 0.000 claims description 10
- 238000012544 monitoring process Methods 0.000 claims description 7
- 230000008569 process Effects 0.000 abstract description 12
- 238000010586 diagram Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000005406 washing Methods 0.000 description 1
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention provides a file link processing method, a client and a server for text editing, wherein the method comprises the following steps: after detecting that a client receives an external file, sending a file cleaning request to an internal server, wherein the file cleaning request comprises the external file and a link address corresponding to the external file; receiving an internal file link address sent by an internal server after the file is cleaned; the internal file link address is a link address generated after the internal server stores the external file or external file data acquired according to the external file link address; the external file is replaced by the internal file link address, the server downloads the external file and generates the internal file link address through the cooperation of the client and the server, the client replaces the external file, the user can still edit the content of the file in the file cleaning process, and the user experience is improved while the risk of content loss is reduced.
Description
Technical Field
The invention relates to the technical field of data processing, in particular to a file link processing method, a client and a server for text editing.
Background
At present, many existing content editors directly use original pictures of copied contents, and although some content editors support picture cleaning, users cannot operate in the picture cleaning process, and user experience is poor.
However, the existing content editor does not perform any technical processing on the copied content, or only performs serialized file cleaning to interrupt the user operation, and the above-mentioned existing technology has at least the following technical disadvantages: 1. the picture is not cleaned, so that the content picture is lost; 2. if serialized file cleaning is performed, the cleaning process is longer; the cleaning process can interrupt user operations and the user experience is poor.
Therefore, how to provide a file link processing scheme for text editing, which can improve user experience while reducing the risk of content loss, is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
The invention provides a file link processing method, a client and a server for text editing, which can reduce the risk of content loss and improve the user experience.
In a first aspect, the present invention provides a file link processing method for text editing, including:
after detecting that a client receives an external file, sending a file cleaning request to an internal server, wherein the file cleaning request comprises the external file and a link address corresponding to the external file;
receiving an internal file link address sent by an internal server after the file is cleaned; the internal file link address is a link address generated after the internal server stores the external file or external file data acquired according to the external file link address;
and replacing the external file by using the internal file link address.
Further, the external file includes at least one or more of: image files, audio files, and video files.
Further, before the sending the file cleaning request to the internal server, the method further includes:
monitoring whether a preset instruction event occurs at the client;
if a preset instruction event occurs, judging whether the target content of the preset instruction event contains an external file link address or an external file;
and sending a file cleaning request to an internal server under the condition that the target content of the preset instruction event comprises an external file link address.
Further, after said sending the file cleaning request to the internal server; before the receiving the internal file link address sent by the internal server, the method further includes:
recording the link address of the external file at an address replacement position;
and replacing the external file link address with a preset temporary file address.
Further, the replacing the external file with the internal file link address includes:
positioning the preset temporary file address according to the address replacement position;
and deleting the preset temporary file address and adding the internal file link address to the address replacement position.
In a second aspect, an embodiment of the present invention provides a file link processing method for text editing, including:
receiving a file cleaning request sent by a client, wherein the file cleaning request comprises an external file and a link address corresponding to the external file;
downloading an external file corresponding to the external file link address, and generating a corresponding internal file link address after storing the external file in an internal server;
and sending the internal file link address to the client so that the client replaces the external file by using the internal file link address.
In a third aspect, an embodiment of the present invention provides a client, including:
the client side is used for receiving an external file, and sending a file cleaning request to the internal server after detecting that the client side receives the external file, wherein the file cleaning request comprises the external file and a link address corresponding to the external file;
the address receiving module is used for receiving an internal file link address sent by the internal server after the file is cleaned; the internal file link address is a link address generated after the internal server stores the external file or external file data acquired according to the external file link address;
and the address replacing module is used for replacing the external file by using the internal file link address.
Further, still include:
the event monitoring module is used for monitoring whether a preset instruction event occurs to the client;
the address judgment module is used for judging whether the target content of a preset instruction event contains an external file link address or an external file if the preset instruction event occurs;
and the request confirmation module is used for sending a file cleaning request to the internal server under the condition that the target content of the preset instruction event comprises an external file link address.
Further, still include:
the position recording module is used for recording the link address of the external file at an address replacing position;
and the temporary replacement module is used for replacing the external file link address with a preset temporary file address.
Further, the address replacement module includes:
the position positioning module is used for positioning the preset temporary file address according to the address replacement position;
and the deleting and adding module is used for deleting the preset temporary file address and adding the internal file link address to the address replacing position.
In a fourth aspect, an embodiment of the present invention provides a server, including:
the request receiving module is used for receiving a file cleaning request sent by a client, wherein the file cleaning request comprises an external file and a link address corresponding to the external file;
the file downloading module is used for downloading the external file corresponding to the external file link address, storing the external file in an internal server and then generating a corresponding internal file link address;
and the address sending module is used for sending the internal file link address to the client so that the client can replace the external file by using the internal file link address. .
In a fifth aspect, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the file link processing method for text editing as described in any one of the above when executing the program.
In a sixth aspect, the present invention further provides a non-transitory computer readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the file link processing method for text editing as described in any one of the above.
According to the file link processing method, the client and the server for text editing provided by the embodiment of the invention, through the matching of the client and the server, the server downloads the external file and generates the internal file link address, and the client replaces the file link address, so that the asynchronous efficient cleaning is realized, the user basically does not feel the file cleaning process, the user can still edit the content of the file in the file cleaning process, and the user experience is improved while the risk of content loss is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a flowchart of a file link processing method for text editing according to an embodiment of the present invention;
fig. 2 is a second flowchart of a file link processing method for text editing according to an embodiment of the present invention;
fig. 3 is a third flowchart of a file link processing method for text editing according to an embodiment of the present invention;
FIG. 4 is a fourth flowchart of a file link processing method for text editing according to an embodiment of the present invention
Fig. 5 is a flowchart of a file link processing method for text editing for a server according to an embodiment of the present invention;
fig. 6 is an interaction diagram of a file link processing method for text editing according to an embodiment of the present invention;
fig. 7 is a schematic diagram illustrating a client according to an embodiment of the present invention;
FIG. 8 is a block diagram of a server according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The file link processing method for text editing of the present invention is described below with reference to fig. 1 to 4. Fig. 1 is a flowchart of a file link processing method for text editing according to an embodiment of the present invention; fig. 2 is a second flowchart of a file link processing method for text editing according to an embodiment of the present invention; fig. 3 is a third flowchart of a file link processing method for text editing according to an embodiment of the present invention; fig. 4 is a fourth flowchart of a file link processing method for text editing according to an embodiment of the present invention.
The embodiment of the invention provides a file link processing method for text editing, which comprises the following steps:
step 110: after detecting that a client receives an external file, sending a file cleaning request to an internal server, wherein the file cleaning request comprises the external file and a link address corresponding to the external file;
in the embodiment of the invention, firstly, a file cleaning request is sent to the internal server under the condition that a user is detected to use an external file link address or an external file, wherein the file cleaning request comprises the external file link address or the external file which needs to be cleaned. In practical application, the file link address is not an external file link address, so that in practice, the file link in the client needs to be judged, and the subsequent file cleaning step is performed after the external file link address is judged or the file is judged to be an external file. Specifically, the external file corresponding to the external file link address includes at least one or more of the following: the image file, the audio file, and the video file may also be files in other file formats that do not exist in an internal server, which is only exemplified here, and the file type corresponding to the link address of the external file is not limited. Step 120: receiving an internal file link address sent by an internal server after the file is cleaned; the internal file link address is a link address generated after the internal server stores the external file or external file data acquired according to the external file link address;
after receiving the file cleaning request sent by the client, the server downloads the corresponding file from the third-party file server according to the external file link address in the file cleaning request, and can generate the corresponding internal file link address after storing the file in the internal server. When the server sends the internal file link address to the client, the client automatically receives the internal file link address.
Step 130: and replacing the external file by using the internal file link address.
After the client receives the internal file link address, the corresponding external file link address can be replaced by using the internal file link address. In particular, in practice, in order to establish a corresponding relationship between the internal file link address and the external file link address replacement, a unique location identifier may be further set in the file cleaning request, where the unique location identifier corresponds to a location where the link address needs to be replaced, so as to facilitate replacement of the external file link address with the internal file link address.
Note that, in this application, the term "document cleaning" refers to: when the files quoted in the client are files on the external server, loading errors can occur when the files are loaded and used subsequently, in order to prevent the loading errors, the files are downloaded to the internal server for storage, and the files on the internal server are quoted, so that the safety of the quoted files is ensured while the contents are the same.
When the object needing to be cleaned is an external file, the external file can be directly uploaded to the internal server, and the internal server can generate an internal file link address after storing the file, so that the external file can be replaced, and the purpose of cleaning the file is achieved.
Further, in practice, to initiate the action of link address washing, the following steps may also be performed:
step 210: monitoring whether a preset instruction event occurs at the client;
specifically, for example, a ctrl (command) + v event of the editor (client) may be monitored, and whether to paste the variable flag may be set to true. Since the callback of the event is earlier than the time node at which the content is rendered, the content picture cannot be directly cleaned at this point. Of course, other command events that may generate a link address that needs to be flushed may also be snooped.
Step 220: if a preset instruction event occurs, judging whether the target content of the preset instruction event contains an external file link address or an external file;
after the occurrence of the preset instruction event is monitored, the target content needs to be judged, because in practice, a situation that only characters are pasted may also occur, specifically, the content picture cleaning logic may be executed and the flag is false when the content change event is monitored and the flag is true.
Step 230: and under the condition that the target content of the preset instruction event comprises an external file link address, sending a file cleaning request to an internal server, wherein the file cleaning request comprises the external file link address.
And carrying out a subsequent file cleaning process under the condition that the external file address needing to be cleaned exists, specifically maliciously sending a file cleaning request comprising an external file link address to the internal server, and executing a content picture continuous cleaning logic after an editor component of the client loads and pulls back the content.
Specifically, in practice, in order to facilitate the user to observe whether the external file link address is completely cleaned, the file cleaning request may be sent to the internal server; before the internal file link address sent by the internal server is received, the following steps are carried out:
step 310: recording the link address of the external file at an address replacement position;
step 320: and replacing the external file link address with a preset temporary file address.
That is, other content may be temporarily displayed at the address replacement position, for example, all the content of the client that is not under the present system and has the picture link address after duplication removal may be scanned; 2. temporarily replace all picture addresses with the address of the loading moving picture? sourceUrl is the original picture address. For example: http//. image. ljcdn. com/qwer-asdf-zxcvsourceurrl ═ http//. x.test. com/cccc. At this time, all the files such as the pasted pictures are shown in the loading state, and of course, other identifiers may be used to prompt that the files are currently being cleaned.
In addition, in particular in order to replace the external file with the internal file link address, the following steps may be performed:
step 410: positioning the preset temporary file address according to the address replacement position;
step 420: and deleting the preset temporary file address and adding the internal file link address to the address replacement position.
And after the request is sent to the interface of the server for picture cleaning, the cleaned picture link address is returned after the request is successful. And replacing the address of the loading moving picture with the address of the cleaned picture. And after the link address is replaced successfully after all requests are returned, the storage of the content is automatically triggered once, so that the loss of the cleaned content is prevented.
Referring to fig. 5, fig. 5 is a flowchart of a file link processing method for text editing for a server according to an embodiment of the present invention.
Another embodiment of the present invention provides a file link processing method for text editing, including:
step 510: receiving a file cleaning request sent by a client, wherein the file cleaning request comprises an external file and a link address corresponding to the external file;
step 520: downloading an external file corresponding to the external file link address, and generating a corresponding internal file link address after storing the external file in an internal server;
step 530: and sending the internal file link address to the client so that the client replaces the external file by using the internal file link address.
In this embodiment, the specific implementation steps correspond to the steps of the euro crown in the client, and the server uses http content to send an original link to obtain an image response stream; uploading the picture response stream data to a picture uploading server of the system; returning a new picture link address; configuring different http request headers to obtain the picture response stream according to different source links. For example, configuring User-Agent, Renfer, etc.
Specifically, the content information can be queried in the database according to the content identifier; scanning all picture link addresses which are not under the system and are subjected to duplicate removal in the content; starting a plurality of threads to clean the picture links in the content, and storing the result in a ConcurrentHashMap, wherein key is the original link address, and value is the cleaned link address; after the processing of all the threads is completed, the links in the content are replaced by the cleaned links according to the data of the ConcurrentHashMap. And then save the content to the database.
Referring to fig. 6, fig. 6 is an interaction diagram of a file link processing method for text editing according to an embodiment of the present invention.
In the embodiment of the invention, after a rich text editor serving as a client detects a command of CTRL + V, detection development is triggered, whether an external file link address exists in content in a content change event is judged, specifically, in the embodiment, an external file is taken as an example, after a picture to be cleaned is detected, an original picture URL list is generated and sent to a background server, the background server downloads a corresponding picture from a third-party file server according to the picture URLF list and uploads the picture to a company file server, a corresponding replacement picture URL list is generated and sent to the rich text editor for replacement, and therefore, the whole file cleaning process is completed.
According to the file link processing method for text editing provided by the embodiment of the invention, the server downloads the external file and generates the internal file link address through the matching of the client and the server, the client replaces the file link address, so that the asynchronous efficient cleaning is realized, the user basically does not feel the file cleaning process, the user can still edit the content of the file in the file cleaning process, and the user experience is improved while the risk of content loss is reduced.
The following describes the client and the server provided by the present invention, and the client described below and the file link processing method for text editing described above can be referred to correspondingly.
Referring to fig. 7 and 8, fig. 7 is a schematic diagram illustrating a client according to an embodiment of the present invention; fig. 8 is a schematic diagram illustrating a server according to an embodiment of the present invention.
An embodiment of the present invention provides a client 700, including:
a request sending module 710, configured to send a file cleaning request to an internal server after detecting that a client receives an external file, where the file cleaning request includes the external file and a link address corresponding to the external file;
an address receiving module 720, configured to receive an internal file link address sent by an internal server after the file is cleaned; the internal file link address is a link address generated after the internal server stores the external file or external file data acquired according to the external file link address;
an address replacing module 730, configured to replace the external file with the internal file link address.
Further, still include:
the event monitoring module is used for monitoring whether a preset instruction event occurs to the client;
the address judgment module is used for judging whether the target content of a preset instruction event contains an external file link address or an external file if the preset instruction event occurs;
and the request confirmation module is used for sending a file cleaning request to the internal server under the condition that the target content of the preset instruction event comprises an external file link address.
Further, still include:
the position recording module is used for recording the link address of the external file at an address replacing position;
and the temporary replacement module is used for replacing the external file link address with a preset temporary file address.
Further, the address replacement module includes:
the position positioning module is used for positioning the preset temporary file address according to the address replacement position;
and the deleting and adding module is used for deleting the preset temporary file address and adding the internal file link address to the address replacing position.
An embodiment of the present invention provides a server 800, including:
a request receiving module 810, configured to receive a file cleaning request sent by a client, where the file cleaning request includes an external file and a link address corresponding to the external file;
a file downloading module 820, configured to download an external file corresponding to the external file link address, and generate a corresponding internal file link address after storing the external file in an internal server;
an address sending module 830, configured to send the internal file link address to the client, so that the client replaces the external file with the internal file link address.
According to the client and the server provided by the embodiment of the invention, through the matching of the client and the server, the server downloads the external file and generates the internal file link address, and the client replaces the file link address, so that the asynchronous and efficient cleaning is realized, the user basically does not feel the file cleaning process, the user can still edit the content of the file in the file cleaning process, and the user experience is improved while the risk of content loss is reduced.
Fig. 9 illustrates a physical structure diagram of an electronic device, and as shown in fig. 9, the electronic device may include: a processor (processor)910, a communication Interface (Communications Interface)920, a memory (memory)930, and a communication bus 940, wherein the processor 910, the communication Interface 920, and the memory 930 communicate with each other via the communication bus 940. Processor 910 may invoke logic instructions in memory 930 to perform a file link processing method for text editing, the method comprising: after detecting that a client receives an external file, sending a file cleaning request to an internal server, wherein the file cleaning request comprises the external file and a link address corresponding to the external file; receiving an internal file link address sent by an internal server after the file is cleaned; the internal file link address is a link address generated after the internal server stores the external file or external file data acquired according to the external file link address; and replacing the external file by using the internal file link address. Or a file link processing method for text editing is performed, the method including: receiving a file cleaning request sent by a client, wherein the file cleaning request comprises an external file and a link address corresponding to the external file; downloading an external file corresponding to the external file link address, and generating a corresponding internal file link address after storing the external file in an internal server; and sending the internal file link address to the client so that the client replaces the external file by using the internal file link address.
Furthermore, the logic instructions in the memory 930 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, which when executed by a computer, enable the computer to execute the file link processing method for text editing provided by the above methods, the method comprising: after detecting that a client receives an external file, sending a file cleaning request to an internal server, wherein the file cleaning request comprises the external file and a link address corresponding to the external file; receiving an internal file link address sent by an internal server after the file is cleaned; the internal file link address is a link address generated after the internal server stores the external file or external file data acquired according to the external file link address; and replacing the external file by using the internal file link address. Or a file link processing method for text editing is performed, the method including: receiving a file cleaning request sent by a client, wherein the file cleaning request comprises an external file and a link address corresponding to the external file; downloading an external file corresponding to the external file link address, and generating a corresponding internal file link address after storing the external file in an internal server; and sending the internal file link address to the client so that the client replaces the external file by using the internal file link address.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program, which when executed by a processor is implemented to perform the file link processing method for text editing provided in each of the above, the method including: after detecting that a client receives an external file, sending a file cleaning request to an internal server, wherein the file cleaning request comprises the external file and a link address corresponding to the external file; receiving an internal file link address sent by an internal server after the file is cleaned; the internal file link address is a link address generated after the internal server stores the external file or external file data acquired according to the external file link address; and replacing the external file by using the internal file link address. Or a file link processing method for text editing is performed, the method including: receiving a file cleaning request sent by a client, wherein the file cleaning request comprises an external file and a link address corresponding to the external file; downloading an external file corresponding to the external file link address, and generating a corresponding internal file link address after storing the external file in an internal server; and sending the internal file link address to the client so that the client replaces the external file by using the internal file link address.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A file link processing method for text editing, comprising:
after detecting that a client receives an external file, sending a file cleaning request to an internal server, wherein the file cleaning request comprises the external file and a link address corresponding to the external file;
receiving an internal file link address sent by an internal server after the file is cleaned; the internal file link address is a link address generated after the internal server stores the external file or external file data acquired according to the external file link address;
and replacing the external file by using the internal file link address.
2. The method of claim 1,
the external file includes at least one or more of: image files, audio files, and video files.
3. The method of claim 1,
before the sending the file cleaning request to the internal server, the method further comprises:
monitoring whether a preset instruction event occurs at the client;
if a preset instruction event occurs, judging whether the target content of the preset instruction event contains an external file link address or an external file;
and sending a file cleaning request to an internal server under the condition that the target content of the preset instruction event comprises an external file link address.
4. A method according to any one of claims 1 to 3, wherein after said sending of the file cleansing request to the internal server; before the receiving the internal file link address sent by the internal server, the method further includes:
recording the link address of the external file at an address replacement position;
and replacing the external file link address with a preset temporary file address.
5. The method of claim 4, wherein replacing the external file with the internal file link address comprises:
positioning the preset temporary file address according to the address replacement position;
and deleting the preset temporary file address and adding the internal file link address to the address replacement position.
6. A file link processing method for text editing, comprising:
receiving a file cleaning request sent by a client, wherein the file cleaning request comprises an external file and a link address corresponding to the external file;
downloading an external file corresponding to the external file link address, and generating a corresponding internal file link address after storing the external file in an internal server;
and sending the internal file link address to the client so that the client replaces the external file by using the internal file link address.
7. A client, comprising:
the client side is used for receiving an external file, and sending a file cleaning request to the internal server after detecting that the client side receives the external file, wherein the file cleaning request comprises the external file and a link address corresponding to the external file;
the address receiving module is used for receiving an internal file link address sent by the internal server after the file is cleaned; the internal file link address is a link address generated after the internal server stores the external file or external file data acquired according to the external file link address;
and the address replacing module is used for replacing the external file by using the internal file link address.
8. A server, comprising:
the request receiving module is used for receiving a file cleaning request sent by a client, wherein the file cleaning request comprises an external file and a link address corresponding to the external file;
the file downloading module is used for downloading the external file corresponding to the external file link address, storing the external file in an internal server and then generating a corresponding internal file link address;
and the address sending module is used for sending the internal file link address to the client so that the client can replace the external file by using the internal file link address.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the file link processing method for text editing according to any one of claims 1 to 6 when executing the program.
10. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the steps of the file link processing method for text editing according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011438475.0A CN112667581A (en) | 2020-12-07 | 2020-12-07 | File link processing method, client and server for text editing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011438475.0A CN112667581A (en) | 2020-12-07 | 2020-12-07 | File link processing method, client and server for text editing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112667581A true CN112667581A (en) | 2021-04-16 |
Family
ID=75401885
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011438475.0A Pending CN112667581A (en) | 2020-12-07 | 2020-12-07 | File link processing method, client and server for text editing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112667581A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103457916A (en) * | 2012-06-01 | 2013-12-18 | 阿里巴巴集团控股有限公司 | Method for managing chained file and server |
CN103631916A (en) * | 2013-11-29 | 2014-03-12 | 北京奇虎科技有限公司 | Method and device for downloading downloadable resources |
CN104036053A (en) * | 2014-07-07 | 2014-09-10 | 广州金山网络科技有限公司 | Invalid link address processing method and device |
CN105550165A (en) * | 2015-12-23 | 2016-05-04 | 深圳市八零年代网络科技有限公司 | Plug-in and method capable of importing webpage article into webpage text editor |
CN106911794A (en) * | 2017-03-23 | 2017-06-30 | 福建天泉教育科技有限公司 | The method and system that a kind of picture is stored automatically |
CN109670131A (en) * | 2018-12-18 | 2019-04-23 | 网宿科技股份有限公司 | The processing of Resource Description File, the acquisition methods of page resource and intermediate server |
-
2020
- 2020-12-07 CN CN202011438475.0A patent/CN112667581A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103457916A (en) * | 2012-06-01 | 2013-12-18 | 阿里巴巴集团控股有限公司 | Method for managing chained file and server |
CN103631916A (en) * | 2013-11-29 | 2014-03-12 | 北京奇虎科技有限公司 | Method and device for downloading downloadable resources |
CN104036053A (en) * | 2014-07-07 | 2014-09-10 | 广州金山网络科技有限公司 | Invalid link address processing method and device |
CN105550165A (en) * | 2015-12-23 | 2016-05-04 | 深圳市八零年代网络科技有限公司 | Plug-in and method capable of importing webpage article into webpage text editor |
CN106911794A (en) * | 2017-03-23 | 2017-06-30 | 福建天泉教育科技有限公司 | The method and system that a kind of picture is stored automatically |
CN109670131A (en) * | 2018-12-18 | 2019-04-23 | 网宿科技股份有限公司 | The processing of Resource Description File, the acquisition methods of page resource and intermediate server |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1988535B (en) | Synchronous method, system for file storage and customer terminal | |
US10129264B2 (en) | Method and apparatus for implementing document sharing between user groups | |
JP2020518926A (en) | Backup and restore framework for distributed computing systems | |
CN102819461B (en) | Desktop synchronous method, device, equipment and system | |
CN107766509B (en) | Method and device for static backup of webpage | |
CN110825399B (en) | Deployment method and device of application program | |
CN115088235B (en) | Main node selection method and device, electronic equipment and storage medium | |
CN111104387A (en) | Method and device for acquiring data set on server | |
CN113626286A (en) | Multi-cluster instance processing method and device, electronic equipment and storage medium | |
CN111240892A (en) | Data backup method and device | |
CN101146111B (en) | A file download method and device | |
CN114416883A (en) | Block chain light node data synchronization method, device, equipment and readable storage medium | |
CN111147585B (en) | Equipment upgrading method, device, storage medium and system | |
CN113536168A (en) | Component processing method and device | |
CN108153794B (en) | Page cache data refreshing method, device and system | |
CN112015454A (en) | System upgrade package generation method and device, electronic equipment and storage medium | |
CN112667581A (en) | File link processing method, client and server for text editing | |
CN115878226A (en) | H5 offline package loading method and device | |
CN114610446B (en) | Method, device and system for automatically injecting probe | |
CN111596933B (en) | File processing method, device, electronic equipment and computer readable storage medium | |
CN115174596A (en) | Equipment remote copying method, device and medium | |
CN113407498A (en) | Data synchronization method, device, cloud platform, system and storage medium | |
CN108509287B (en) | Request state management method and device, electronic equipment and readable storage medium | |
CN105867961A (en) | System upgrading and degrading method and device | |
CN111176746A (en) | Data configuration method, device and system, electronic equipment and storage medium thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210416 |