CN116760823A - File access method and device, electronic equipment and storage medium - Google Patents

File access method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116760823A
CN116760823A CN202311020893.1A CN202311020893A CN116760823A CN 116760823 A CN116760823 A CN 116760823A CN 202311020893 A CN202311020893 A CN 202311020893A CN 116760823 A CN116760823 A CN 116760823A
Authority
CN
China
Prior art keywords
file
uploading
temporary
downloading
authorization
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
Application number
CN202311020893.1A
Other languages
Chinese (zh)
Inventor
吴长鹏
甘飞鸿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Arc Information Technology Co ltd
Original Assignee
Beijing Arc Information Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Arc Information Technology Co ltd filed Critical Beijing Arc Information Technology Co ltd
Priority to CN202311020893.1A priority Critical patent/CN116760823A/en
Publication of CN116760823A publication Critical patent/CN116760823A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a file access method, a file access device, electronic equipment and a storage medium, and belongs to the technical field of data processing. The method and the device return a file downloading identifier after the file is successfully uploaded, establish an intermediate jump link according to the file downloading identifier, store rich text containing the intermediate jump link and the file together into a database, jump to a file downloading service interface by clicking the intermediate jump link, generate temporary downloading authorization by the file downloading service interface, and acquire the temporary downloading link according to the temporary downloading authorization and the file downloading identifier corresponding to the intermediate jump link. The method not only meets the platform requirement of timeliness of file access links, but also accords with the uploading and downloading functions of operation and maintenance personnel on files in demand planning, effectively limits the access of malicious requests to file services, and effectively prevents file data leakage. The technical problem that the temporary access link is invalid when the file content with the temporary access link is directly stored in the database is solved.

Description

File access method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a file access method, apparatus, electronic device, and storage medium.
Background
In the current large internet environment based on data security enhancement, more and more enterprise clients are providing higher requirements on the data security of an application system. The security requirements of the technical aspects such as temporary authorization, access timeliness, temporary link and the like in the process of storing and downloading the data file are related; and on the premise of meeting the technical requirements, the method also ensures that the user experience is not influenced.
For example, patent application CN112632483a discloses a method for protecting data security of enterprise management software, which sends request authorization information to a monitoring center through a data operation API, wherein the request authorization information contains operation type information; the monitoring center receives the front-end request authorization information, checks the information, and age-checks the use validity period and the identity age-checking information of the request authorization; and judging according to the operation type information, if the authorization is allowed, sending the authorization information to the data application system, and if the authorization is judged not to be available, directly returning, wherein the process prompts that the database server is failed to be connected.
However, when the file release content is managed and maintained in the background, because the file release content is required by the security regulations of the related data of enterprises, only the temporary access link can be acquired when the cloud storage file is accessed, and the problem that the access link fails can be faced when the file content with the temporary access link is directly stored in the database, so that the file content maintenance is greatly influenced.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a file access method, a device, electronic equipment and a storage medium.
According to an aspect of the present invention, there is provided a file access method including:
when uploading a file, detecting whether temporary uploading authorization corresponding to a file uploading service is effective, executing file uploading operation when the temporary uploading authorization is effective, and returning a file downloading identifier after the file uploading is successful;
creating an intermediate jump link according to the file downloading identification, and storing rich text containing the intermediate jump link and the file into a database together;
when downloading the file, the intermediate jump link is clicked to jump to the file downloading service interface, the file downloading service interface generates temporary downloading authorization, the temporary downloading link is obtained according to the temporary downloading authorization and the file downloading identifier corresponding to the intermediate jump link, and the file downloading operation is executed through the temporary downloading link.
Optionally, before detecting whether the temporary uploading authorization corresponding to the file uploading service is valid or not when uploading the file, the method includes: and acquiring temporary uploading authorization from the system when the file uploading service is requested each time, and caching temporary uploading authorization information.
Optionally, when uploading the file, detecting whether temporary uploading authorization corresponding to the file uploading service is valid includes:
when uploading a file, the file uploading service reads temporary uploading authorized cache information;
detecting whether temporary uploading authorization corresponding to the file uploading service is effective or not according to the cache information;
when the temporary uploading authorization is invalid, the system regenerates the temporary uploading authorization and updates the cache information.
Optionally, the method further comprises:
the front end requests a back end service interface;
the back-end service interface responds to the request, reads the file from the database and returns the file to the front-end;
the front end displays the file in an html form, and jumps to an actual storage link through a middle jump link aiming at html file tags of pictures and audios and videos related to the file so as to realize preloading operation of the pictures and the audios and videos.
According to another aspect of the present invention, there is provided a file access apparatus comprising:
the uploading module is used for detecting whether the temporary uploading authorization corresponding to the file uploading service is valid or not when uploading the file, executing the file uploading operation when the temporary uploading authorization is valid, and returning a file downloading identifier after the file uploading is successful;
the creation module is used for creating an intermediate jump link according to the file downloading identification and storing the rich text containing the intermediate jump link and the file into the database together;
and the downloading module is used for jumping to the file downloading service interface by clicking the intermediate jump link when downloading the file, generating temporary downloading authorization by the file downloading service interface, acquiring the temporary downloading link according to the temporary downloading authorization and the file downloading identifier corresponding to the intermediate jump link, and executing file downloading operation by the temporary downloading link.
Optionally, the device further comprises a temporary authorization module, which is used for acquiring temporary uploading authorization from the system each time the file uploading service is requested, and caching temporary uploading authorization information.
Optionally, the uploading module is specifically configured to:
when uploading a file, the file uploading service reads temporary uploading authorized cache information;
detecting whether temporary uploading authorization corresponding to the file uploading service is effective or not according to the cache information;
when the temporary uploading authorization is invalid, the system regenerates the temporary uploading authorization and updates the cache information.
Optionally, the device further comprises a front-end service module and a back-end service module, wherein
The front-end service module is used for sending a request to the back-end service interface;
the back-end service module is used for responding to the request, reading the file from the database and returning the file to the front-end;
the front-end service module is also used for displaying the file in an html form, and jumping to an actual storage link through an intermediate jumping link to realize preloading operation of the picture and the audio and video aiming at the html file tag of the picture and the audio and video related to the file.
According to a further aspect of the present invention there is provided a computer readable storage medium storing a computer program for performing the method according to any one of the above aspects of the present invention.
According to still another aspect of the present invention, there is provided an electronic device including: a processor; a memory for storing the processor-executable instructions; the processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the method according to any one of the above aspects of the present invention.
Therefore, when uploading a file, the method detects whether the temporary uploading authorization corresponding to the file uploading service is effective, performs file uploading operation when the temporary uploading authorization is effective, returns a file downloading identifier after the file is successfully uploaded, creates an intermediate jump link according to the file downloading identifier, stores rich text containing the intermediate jump link and the file into a database together, and finally, when downloading the file, jumps to a file downloading service interface by clicking the intermediate jump link, the file downloading service interface generates temporary downloading authorization, acquires the temporary downloading link according to the temporary downloading authorization and the file downloading identifier corresponding to the intermediate jump link, and performs file downloading operation through the temporary downloading link. According to the method and the device, the intermediate jump link is created according to the file downloading identification, the rich text containing the intermediate jump link and the file are stored in the database together, so that the requirement of a platform with timeliness of the file access link is met, the uploading and downloading functions of operation and maintenance personnel on the file in demand planning are met, the access of malicious requests to file services is effectively limited, file data leakage is effectively prevented, and the user experience of a user in the operation process is consistent with that of common uploading and downloading operations. The technical problem that the temporary access link is invalid when the file content with the temporary access link is directly stored in the database is solved.
Drawings
Exemplary embodiments of the present invention may be more completely understood in consideration of the following drawings:
FIG. 1 is a flow chart of a method for accessing a file according to an exemplary embodiment of the present invention;
FIG. 2 is a schematic diagram of a file access device according to an exemplary embodiment of the present invention;
fig. 3 is a structure of an electronic device provided in an exemplary embodiment of the present invention.
Detailed Description
Hereinafter, exemplary embodiments according to the present invention will be described in detail with reference to the accompanying drawings. It should be apparent that the described embodiments are only some embodiments of the present invention and not all embodiments of the present invention, and it should be understood that the present invention is not limited by the example embodiments described herein.
It should be noted that: the relative arrangement of the components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless it is specifically stated otherwise.
It will be appreciated by those of skill in the art that the terms "first," "second," etc. in embodiments of the present invention are used merely to distinguish between different steps, devices or modules, etc., and do not represent any particular technical meaning nor necessarily logical order between them.
It should also be understood that in embodiments of the present invention, "plurality" may refer to two or more, and "at least one" may refer to one, two or more.
It should also be appreciated that any component, data, or structure referred to in an embodiment of the invention may be generally understood as one or more without explicit limitation or the contrary in the context.
In addition, the term "and/or" in the present invention is merely an association relationship describing the association object, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist together, and B exists alone. In the present invention, the character "/" generally indicates that the front and rear related objects are an or relationship.
It should also be understood that the description of the embodiments of the present invention emphasizes the differences between the embodiments, and that the same or similar features may be referred to each other, and for brevity, will not be described in detail.
Meanwhile, it should be understood that the sizes of the respective parts shown in the drawings are not drawn in actual scale for convenience of description.
The following description of at least one exemplary embodiment is merely exemplary in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, the techniques, methods, and apparatus should be considered part of the specification.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further discussion thereof is necessary in subsequent figures.
Embodiments of the invention are operational with numerous other general purpose or special purpose computing system environments or configurations with electronic devices, such as communications terminals, computer systems, servers, etc. Examples of well known communication terminals, computing systems, environments, and/or configurations that may be suitable for use with electronic devices, such as communication terminals, computer systems, servers, and the like, include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, hand-held or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, small computer systems, mainframe computer systems, and distributed cloud computing technology environments that include any of the foregoing, and the like.
Electronic devices such as communication terminals, computer systems, servers, etc. may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc., that perform particular tasks or implement particular abstract data types. The computer system/server may be implemented in a distributed cloud computing environment in which tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computing system storage media including memory storage devices.
Exemplary method
Fig. 1 is a flowchart of a file access method according to an exemplary embodiment of the present invention. As shown in fig. 1, the file access method includes the steps of:
step S101: when uploading a file, detecting whether temporary uploading authorization corresponding to the file uploading service is effective, executing file uploading operation when the temporary uploading authorization is effective, and returning a file downloading identifier after the file uploading is successful.
Optionally, before detecting whether the temporary uploading authorization corresponding to the file uploading service is valid or not when uploading the file, the method includes: and acquiring temporary uploading authorization from the system when the file uploading service is requested each time, and caching temporary uploading authorization information.
Optionally, when uploading the file, detecting whether temporary uploading authorization corresponding to the file uploading service is valid includes: when uploading a file, the file uploading service reads temporary uploading authorized cache information; detecting whether temporary uploading authorization corresponding to the file uploading service is effective or not according to the cache information; when the temporary uploading authorization is invalid, the system regenerates the temporary uploading authorization and updates the cache information.
In the embodiment of the invention, temporary authorization is acquired first when the file uploading and downloading service is requested each time, and the system and the permission are cached. Specifically, taking uploading and downloading of the content of the seal as an example, when the management edits the text-rich information of the article and the video picture attachment of the uploading data through the background management page, the uploading method of the front-end call sdk needs to request the back-end service interface to acquire the temporary authorization of the uploading file to store the temporary authorization, the back-end service can read the temporary authorization cache information when processing the temporary authorization request, and if the temporary authorization cache is invalid or expired, the cache can be automatically regenerated and updated.
Further, the front end performs uploading file storage by calling sdk uploading function after obtaining temporary authorization, and the sdk uploading file is uploaded in a file stream form, and when encountering a large-volume file such as a high-definition video, the front end automatically cuts file fragment uploading, and the fragments are automatically combined after the fragment uploading is completed. And meanwhile, the transmission in various formats such as binary, base64 and the like is supported during the uploading of the pictures. And returning a file downloading identifier after successful uploading, and providing data support for subsequent creation of the intermediate jump link and downloading of the file.
Step S102: and creating an intermediate jump link according to the file downloading identification, and storing the rich text containing the intermediate jump link and the file into a database together.
In the embodiment of the invention, because the link acquired by downloading is a temporary link and cannot be used as a file permanent link record system, the generation of a fixed intermediate jump link is adopted. Specifically, an intermediate jump link may be created according to the file download identifier, where the intermediate jump link is in a fixed standard format for calling the back-end service Get request, and examples of the intermediate jump link include, but are not limited to: https:// www.xxx.com/GetUrlfileId = file download identifier. After the creation of the intermediate jump link is completed, the rich text (html code segment) containing the intermediate jump link is saved to the database along with the file to maintain updated file information.
Step S103: when downloading the file, the intermediate jump link is clicked to jump to the file downloading service interface, the file downloading service interface generates temporary downloading authorization, the temporary downloading link is obtained according to the temporary downloading authorization and the file downloading identifier corresponding to the intermediate jump link, and the file downloading operation is executed through the temporary downloading link.
In the embodiment of the invention, when the requirement of downloading the file exists, the file service interface can be jumped to by clicking the intermediate jump link. The file service interface generates temporary downloading authorization, acquires the temporary downloading link according to the temporary downloading authorization and the file downloading identifier of the intermediate jump link, and executes file downloading operation through the temporary downloading link.
Optionally, the method further comprises: the front end requests a back end service interface; the back-end service interface responds to the request, reads the file from the database and returns the file to the front-end; the front end displays the file in an html form, and jumps to an actual storage link through a middle jump link aiming at html file tags of pictures and audios and videos related to the file so as to realize preloading operation of the pictures and the audios and videos.
In the embodiment of the invention, for the display of the file information, the front end requests a back end service interface, and the back end service reads the file information from the database and returns the file information to the front end. The front-end page displays file information in an html form, and media html file tags such as pictures, audios and videos can automatically jump to an actual storage link through a middle jump link to realize picture preview and audio and video preloading.
In summary, the intermediate jump link is created according to the file downloading identifier, and the rich text containing the intermediate jump link and the file are stored in the database together, so that the platform requirement of timeliness of the file access link is met, uploading and downloading functions of operation and maintenance personnel on the file in demand planning are met, access of malicious requests to file services is effectively limited, file data leakage is effectively prevented, and user experience of a user in an operation process is consistent with that of common uploading and downloading operations. The technical problem that the temporary access link is invalid when the file content with the temporary access link is directly stored in the database is solved.
Exemplary apparatus
Fig. 2 is a schematic diagram of a file access device 200 according to an exemplary embodiment of the present invention. As shown in fig. 2, the apparatus includes:
the uploading module 210 is configured to detect, when uploading a file, whether a temporary uploading authorization corresponding to a file uploading service is valid, perform a file uploading operation when the temporary uploading authorization is valid, and return a file downloading identifier after the file is successfully uploaded;
the creation module 220 is configured to create an intermediate jump link according to the file download identifier, and store the rich text containing the intermediate jump link and the file together in the database;
the downloading module 230 is configured to skip to the file downloading service interface by clicking the intermediate jump link when downloading the file, generate a temporary downloading authorization by the file downloading service interface, obtain the temporary downloading link according to the temporary downloading authorization and the file downloading identifier corresponding to the intermediate jump link, and execute the file downloading operation through the temporary downloading link.
Optionally, the device further comprises a temporary authorization module, which is used for acquiring temporary uploading authorization from the system each time the file uploading service is requested, and caching temporary uploading authorization information.
Optionally, the uploading module 210 is specifically configured to:
when uploading a file, the file uploading service reads temporary uploading authorized cache information;
detecting whether temporary uploading authorization corresponding to the file uploading service is effective or not according to the cache information;
when the temporary uploading authorization is invalid, the system regenerates the temporary uploading authorization and updates the cache information.
Optionally, the device further comprises a front-end service module and a back-end service module, wherein
The front-end service module is used for sending a request to the back-end service interface;
the back-end service module is used for responding to the request, reading the file from the database and returning the file to the front-end;
the front-end service module is also used for displaying the file in an html form, and jumping to an actual storage link through an intermediate jumping link to realize preloading operation of the picture and the audio and video aiming at the html file tag of the picture and the audio and video related to the file.
The file access device according to the embodiment of the present invention corresponds to the file access method according to another embodiment of the present invention, and will not be described herein.
Exemplary electronic device
Fig. 3 is a structure of an electronic device provided in an exemplary embodiment of the present invention. As shown in fig. 3, the electronic device 30 includes one or more processors 31 and memory 32.
The processor 31 may be a Central Processing Unit (CPU) or other form of processing unit having data processing and/or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
Memory 32 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, random Access Memory (RAM) and/or cache memory (cache), and the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, and the like. One or more computer program instructions may be stored on the computer readable storage medium that can be executed by the processor 31 to implement the methods of the software programs of the various embodiments of the present invention described above and/or other desired functions. In one example, the electronic device may further include: an input device 33 and an output device 34, which are interconnected by a bus system and/or other forms of connection mechanisms (not shown).
In addition, the input device 33 may also include, for example, a keyboard, a mouse, and the like.
The output device 34 can output various information to the outside. The output device 34 may include, for example, a display, speakers, a printer, and a communication network and remote output devices connected thereto, etc.
Of course, only some of the components of the electronic device that are relevant to the present invention are shown in fig. 3 for simplicity, components such as buses, input/output interfaces, etc. being omitted. In addition, the electronic device may include any other suitable components depending on the particular application.
Exemplary computer program product and computer readable storage Medium
In addition to the methods and apparatus described above, embodiments of the invention may also be a computer program product comprising computer program instructions which, when executed by a processor, cause the processor to perform steps in a method according to various embodiments of the invention described in the "exemplary methods" section of this specification.
The computer program product may write program code for performing operations of embodiments of the present invention in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the invention may also be a computer-readable storage medium, having stored thereon computer program instructions, which when executed by a processor, cause the processor to perform steps in a method according to various embodiments of the invention described in the "exemplary method" section of the description above.
The computer readable storage medium may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The basic principles of the present invention have been described above in connection with specific embodiments, however, it should be noted that the advantages, benefits, effects, etc. mentioned in the present invention are merely examples and not intended to be limiting, and these advantages, benefits, effects, etc. are not to be considered as essential to the various embodiments of the present invention. Furthermore, the specific details disclosed herein are for purposes of illustration and understanding only, and are not intended to be limiting, as the invention is not necessarily limited to practice with the above described specific details.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different manner from other embodiments, so that the same or similar parts between the embodiments are mutually referred to. For system embodiments, the description is relatively simple as it essentially corresponds to method embodiments, and reference should be made to the description of method embodiments for relevant points.
The block diagrams of the devices, systems, apparatuses, systems according to the present invention are merely illustrative examples and are not intended to require or imply that the connections, arrangements, configurations must be made in the manner shown in the block diagrams. As will be appreciated by one of skill in the art, the devices, systems, apparatuses, systems may be connected, arranged, configured in any manner. Words such as "including," "comprising," "having," and the like are words of openness and mean "including but not limited to," and are used interchangeably therewith. The terms "or" and "as used herein refer to and are used interchangeably with the term" and/or "unless the context clearly indicates otherwise. The term "such as" as used herein refers to, and is used interchangeably with, the phrase "such as, but not limited to.
The method and system of the present invention may be implemented in a number of ways. For example, the methods and systems of the present invention may be implemented by software, hardware, firmware, or any combination of software, hardware, firmware. The above-described sequence of steps for the method is for illustration only, and the steps of the method of the present invention are not limited to the sequence specifically described above unless specifically stated otherwise. Furthermore, in some embodiments, the present invention may also be embodied as programs recorded in a recording medium, the programs including machine-readable instructions for implementing the methods according to the present invention. Thus, the present invention also covers a recording medium storing a program for executing the method according to the present invention.
It is also noted that in the systems, devices and methods of the present invention, components or steps may be disassembled and/or assembled. Such decomposition and/or recombination should be considered as equivalent aspects of the present invention. The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the invention. Thus, the present invention is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, this description is not intended to limit embodiments of the invention to the form disclosed herein. Although a number of example aspects and embodiments have been discussed above, a person of ordinary skill in the art will recognize certain variations, modifications, alterations, additions, and subcombinations thereof.

Claims (10)

1. A method of accessing a file, comprising:
when uploading a file, detecting whether temporary uploading authorization corresponding to a file uploading service is effective, executing file uploading operation when the temporary uploading authorization is effective, and returning a file downloading identifier after the file uploading is successful;
creating an intermediate jump link according to the file downloading identification, and storing rich text containing the intermediate jump link and the file into a database together;
when downloading the file, the intermediate jump link is clicked to jump to the file downloading service interface, the file downloading service interface generates temporary downloading authorization, the temporary downloading link is obtained according to the temporary downloading authorization and the file downloading identifier corresponding to the intermediate jump link, and the file downloading operation is executed through the temporary downloading link.
2. The method according to claim 1, wherein before detecting whether the temporary upload authorization corresponding to the file upload service is valid or not at the time of uploading the file, comprising: and acquiring temporary uploading authorization from the system when the file uploading service is requested each time, and caching temporary uploading authorization information.
3. The method of claim 2, wherein detecting whether the temporary upload authorization corresponding to the file upload service is valid when uploading the file comprises:
when uploading a file, the file uploading service reads temporary uploading authorized cache information;
detecting whether temporary uploading authorization corresponding to the file uploading service is effective or not according to the cache information;
when the temporary uploading authorization is invalid, the system regenerates the temporary uploading authorization and updates the cache information.
4. The method as recited in claim 1, further comprising:
the front end requests a back end service interface;
the back-end service interface responds to the request, reads the file from the database and returns the file to the front-end;
the front end displays the file in an html form, and jumps to an actual storage link through a middle jump link aiming at html file tags of pictures and audios and videos related to the file so as to realize preloading operation of the pictures and the audios and videos.
5. A file access device, comprising:
the uploading module is used for detecting whether the temporary uploading authorization corresponding to the file uploading service is valid or not when uploading the file, executing the file uploading operation when the temporary uploading authorization is valid, and returning a file downloading identifier after the file uploading is successful;
the creation module is used for creating an intermediate jump link according to the file downloading identification and storing the rich text containing the intermediate jump link and the file into the database together;
and the downloading module is used for jumping to the file downloading service interface by clicking the intermediate jump link when downloading the file, generating temporary downloading authorization by the file downloading service interface, acquiring the temporary downloading link according to the temporary downloading authorization and the file downloading identifier corresponding to the intermediate jump link, and executing file downloading operation by the temporary downloading link.
6. The apparatus of claim 5, further comprising a temporary authorization module configured to obtain a temporary upload authorization from the system each time a file upload service is requested and to cache temporary upload authorization information.
7. The apparatus of claim 6, wherein the upload module is specifically configured to:
when uploading a file, the file uploading service reads temporary uploading authorized cache information;
detecting whether temporary uploading authorization corresponding to the file uploading service is effective or not according to the cache information;
when the temporary uploading authorization is invalid, the system regenerates the temporary uploading authorization and updates the cache information.
8. The apparatus of claim 5, further comprising a front-end service module and a back-end service module, wherein
The front-end service module is used for sending a request to the back-end service interface;
the back-end service module is used for responding to the request, reading the file from the database and returning the file to the front-end;
the front-end service module is also used for displaying the file in an html form, and jumping to an actual storage link through an intermediate jumping link to realize preloading operation of the picture and the audio and video aiming at the html file tag of the picture and the audio and video related to the file.
9. A computer readable storage medium storing a computer program for performing the method of any one of the preceding claims 1-4.
10. An electronic device, the electronic device comprising:
a processor;
a memory for storing the processor-executable instructions;
the processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the method of any of the preceding claims 1-4.
CN202311020893.1A 2023-08-15 2023-08-15 File access method and device, electronic equipment and storage medium Pending CN116760823A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311020893.1A CN116760823A (en) 2023-08-15 2023-08-15 File access method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311020893.1A CN116760823A (en) 2023-08-15 2023-08-15 File access method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116760823A true CN116760823A (en) 2023-09-15

Family

ID=87951763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311020893.1A Pending CN116760823A (en) 2023-08-15 2023-08-15 File access method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116760823A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924712A (en) * 2010-08-23 2010-12-22 宇龙计算机通信科技(深圳)有限公司 Sending method and system for push mail and mobile terminal
CN110020294A (en) * 2017-10-20 2019-07-16 腾讯科技(武汉)有限公司 Sheet disposal method, apparatus, system, storage medium and computer equipment
CN110300121A (en) * 2019-07-23 2019-10-01 上海易点时空网络有限公司 Data processing method and device based on full duplex communication
CN110311880A (en) * 2018-03-20 2019-10-08 中移(苏州)软件技术有限公司 Method for uploading, the apparatus and system of file
US20200322429A1 (en) * 2019-04-02 2020-10-08 Esoptra NV Content centric sharing of digital objects
CN112149392A (en) * 2019-06-11 2020-12-29 北京京东尚科信息技术有限公司 Rich text editing method and device
CN113986835A (en) * 2021-10-27 2022-01-28 平安国际智慧城市科技股份有限公司 Management method, device, equipment and storage medium for FastDFS distributed files
CN116366345A (en) * 2023-03-31 2023-06-30 广州方硅信息技术有限公司 Picture cloud storage processing method and device, equipment and medium thereof

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924712A (en) * 2010-08-23 2010-12-22 宇龙计算机通信科技(深圳)有限公司 Sending method and system for push mail and mobile terminal
CN110020294A (en) * 2017-10-20 2019-07-16 腾讯科技(武汉)有限公司 Sheet disposal method, apparatus, system, storage medium and computer equipment
CN110311880A (en) * 2018-03-20 2019-10-08 中移(苏州)软件技术有限公司 Method for uploading, the apparatus and system of file
US20200322429A1 (en) * 2019-04-02 2020-10-08 Esoptra NV Content centric sharing of digital objects
CN112149392A (en) * 2019-06-11 2020-12-29 北京京东尚科信息技术有限公司 Rich text editing method and device
CN110300121A (en) * 2019-07-23 2019-10-01 上海易点时空网络有限公司 Data processing method and device based on full duplex communication
CN113986835A (en) * 2021-10-27 2022-01-28 平安国际智慧城市科技股份有限公司 Management method, device, equipment and storage medium for FastDFS distributed files
CN116366345A (en) * 2023-03-31 2023-06-30 广州方硅信息技术有限公司 Picture cloud storage processing method and device, equipment and medium thereof

Similar Documents

Publication Publication Date Title
CN109597957B (en) Third party application communication API
CN107733972B (en) Short link analysis method, device and equipment
US9553918B1 (en) Stateful and stateless cookie operations servers
US11120107B2 (en) Managing content delivery to client devices
US9060007B2 (en) System and methods for facilitating the synchronization of data
US8935798B1 (en) Automatically enabling private browsing of a web page, and applications thereof
US8341239B2 (en) Method and system for providing runtime vulnerability defense for cross domain interactions
JP6053787B2 (en) Collect transaction data associated with a locally stored data file
US8966446B1 (en) Systems and methods of live experimentation on content provided by a web site
US8443304B2 (en) Conditional modification of browser content
CN112612977B (en) Page display method, system, device, equipment and storage medium
US9047489B2 (en) Security systems and methods for social networking
US20200202066A1 (en) Systems and methods for creating and managing smart hyperlinks
CN102929912A (en) Method and system for generating microblog pictures
US20100229081A1 (en) Method for Providing a Navigation Element in an Application
US10599755B2 (en) System and method for automatically inserting correct escaping functions for field references in a multi-tenant computing environment
CN112231711A (en) Vulnerability detection method and device, computer equipment and storage medium
CN111563215A (en) Method and device for controlling front-end operation authority and related equipment
CN116760823A (en) File access method and device, electronic equipment and storage medium
US9858250B2 (en) Optimized read/write access to a document object model
US20130290830A1 (en) System and method for managing a viewstate of a web application
US10079739B2 (en) Computer-implemented method for handling log file
CN111949472A (en) Method and device for recording application logs
CN116166736B (en) Block chain data uplink method, device and medium based on application program interface
CN114281273B (en) Method and system for printing OFD electronic invoice format files in batches

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

Application publication date: 20230915

RJ01 Rejection of invention patent application after publication