Automatic replacing method and apparatus of same-name file
A technology of files with the same name and files, applied to electrical components, transmission systems, etc., can solve problems such as operational errors and low efficiency, and achieve the effect of improving replacement efficiency and avoiding errors
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0064] figure 1 It is a schematic flow chart of an automatic replacement method for a file with the same name in the embodiment of the present application; as figure 1 As indicated, it may specifically include:
[0065] S101. Obtain a replacement picture;
[0066] In this embodiment, a file storage server is established in the background, the replacement file is stored on the file storage server, and the replacement file can be obtained directly from it.
[0067] In this embodiment, a specific data uploading interface is set in the existing file uploading system, and only webpage element files are allowed to be uploaded to the file storage server. Specifically, the picture may be uploaded to the file storage server through http post.
[0068] It should be noted that if there are multiple replacement pictures, batch processing can be performed. For example, a form uploaded in the form of http post is provided, and multiple replacement pictures are uploaded in batches by loa...
Embodiment 2
[0085] figure 2 A schematic flow diagram of formatting the file name of the replacement file according to Embodiment 2 of the present application; as figure 2 shown, which can include:
[0086] S112. Obtain the domain name classifier included in the storage directory of the replacement picture;
[0087] If the domain name specifiers are COM, ORG, GOV, NET, EDU, etc. Taking COM as an example, if the uploaded file storage directory is: i0^img^letv^com~dyw~2013~12~test.png, then, according to the ^com~ included in the storage directory, it is the domain name classifier.
[0088] S122. Divide the storage directory of the replacement picture into two sections according to the domain name classifier;
[0089] Use ^ in the storage directory as a separator, and split the storage directory into the first array such as: i0, img, letv, com, which is the front section; the front section includes the domain name address letv.com of the file name;
[0090] Use ~ in the storage directo...
Embodiment 3
[0095] image 3 It is the automatic replacement method of the file with the same name in the third embodiment of this application; this embodiment is aimed at the scene with a rollback requirement, that is, restoring the replaced picture. like image 3 As indicated, it may specifically include:
[0096] S301. Obtain the uploaded replacement picture file from the file storage server, and format the storage directory and file name of the replacement file;
[0097] S302. According to the storage directory of the replacement picture obtained by formatting, traverse the storage directory of the corresponding source file, and find the source file with the same file name as the replacement picture as the replaced picture;
[0098] S303. Replace the replaced file from the replacement picture, and distribute and cache the replacement picture to each CDN node;
[0099] For steps S301-S303, reference may be made to the relevant records of the first and second embodiments above, and de...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com