CN114363324A - File sharing method and device, storage medium and electronic equipment - Google Patents

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

Info

Publication number
CN114363324A
CN114363324A CN202210028385.7A CN202210028385A CN114363324A CN 114363324 A CN114363324 A CN 114363324A CN 202210028385 A CN202210028385 A CN 202210028385A CN 114363324 A CN114363324 A CN 114363324A
Authority
CN
China
Prior art keywords
sharing
file
target
information
parameter information
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.)
Granted
Application number
CN202210028385.7A
Other languages
Chinese (zh)
Other versions
CN114363324B (en
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 Gaotu Yunji Education Technology Co Ltd
Original Assignee
Beijing Gaotu Yunji Education 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 Gaotu Yunji Education Technology Co Ltd filed Critical Beijing Gaotu Yunji Education Technology Co Ltd
Priority to CN202210028385.7A priority Critical patent/CN114363324B/en
Publication of CN114363324A publication Critical patent/CN114363324A/en
Application granted granted Critical
Publication of CN114363324B publication Critical patent/CN114363324B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application provides a file sharing method, a file sharing device, a storage medium and electronic equipment, wherein the file sharing method comprises the following steps: sending a sharing request carrying file information of a target file to a server; receiving target sharing parameter information corresponding to a target file, which is returned by a server, wherein the target sharing parameter information comprises a target extraction code and a target sharing identifier; and generating file sharing information for sharing the target file by using the target sharing parameter information. By means of the technical scheme, the embodiment of the application can achieve the effect of facilitating link management.

Description

File sharing method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of file transmission technologies, and in particular, to a file sharing method and apparatus, a storage medium, and an electronic device.
Background
The internet cloud disk is a common internet product, such as a Baidu network disk and a google cloud hard disk. These network cloud disks generally have a file sharing function, so as to share and propagate selected files in a sharing link form.
At present, in the sharing form, two sharing modes, namely public sharing and private sharing, are generally provided. The shared content can be checked only by inputting a password after the link for private sharing is opened, and the link for public sharing can be opened directly.
In the process of implementing the invention, the inventor finds that the following problems exist in the prior art: the existing file sharing method has the problem that unified management is difficult. For example, in terms of processing for public sharing and private sharing, existing file sharing methods are all in a separate processing mode, that is, two sharing links are created for the same file, one of the sharing links is a link for public sharing, the other one is a link for private sharing, and if the sharing of the file is to be cancelled, the public sharing and the private sharing need to be cancelled respectively, that is, the sharing needs to be processed for multiple times, so that unified management of the same share content is difficult to achieve, that is, the existing file sharing methods have the problem that unified management is difficult to achieve.
Disclosure of Invention
An object of the embodiments of the present application is to provide a file sharing method, an apparatus, a storage medium, and an electronic device, so as to implement management of a link.
In a first aspect, an embodiment of the present application provides a file sharing method, where the file sharing method is applied to a client in a file sharing system, the file sharing system includes a server and the client, sharing parameter information corresponding to each file in multiple files is stored in the server, and the file sharing method includes: sending a sharing request carrying file information of a target file to a server; receiving target sharing parameter information corresponding to a target file, which is returned by a server, wherein the target sharing parameter information comprises a target extraction code and a target sharing identifier; and generating file sharing information for sharing the target file by using the target sharing parameter information.
Therefore, the file sharing information used for sharing the target file is generated by searching the target sharing parameter information corresponding to the target file and utilizing the target sharing parameter information, so that the file can be shared by managing the target sharing parameter information, and the problem that the existing file sharing method is difficult to uniformly manage is solved. For example, when the sharing of the file is to be cancelled, the user only needs to cancel the related sharing of the target sharing parameter information, that is, the embodiment of the present application only needs to operate once, so that the public sharing and the secret sharing can be cancelled, and further, the effect of facilitating the management of the sharing of the file is achieved.
In one possible embodiment, the file sharing information includes a public sharing link;
the method for generating file sharing information for sharing the target file by using the target sharing parameter information includes: searching a preset sharing website corresponding to the sharing request according to the sharing request; and splicing the preset sharing website and the target sharing parameter information to obtain the public sharing link.
In one possible embodiment, the splicing the preset sharing website and the target sharing parameter information to obtain the public sharing link includes: encrypting the target extraction code to obtain encrypted information; and splicing the encrypted information, the preset sharing website and the target sharing identification to obtain the public sharing link.
In one possible embodiment, the file sharing information includes a private sharing link and a target extraction code;
the method for generating file sharing information for sharing the target file by using the target sharing parameter information includes: searching a preset sharing website corresponding to the sharing request according to the sharing request; and splicing the preset sharing website and the target sharing identifier to obtain a private sharing link, and taking the target extraction code as an extraction code corresponding to the private sharing link.
In a second aspect, an embodiment of the present application provides a file sharing method, where the file sharing method is applied to a server in a file sharing system, the file sharing system includes a client and a server, sharing parameter information corresponding to each file in a plurality of files is stored in the server, and the file sharing method includes: receiving a sharing request which is sent by a client and carries file information of a target file; searching target sharing parameter information corresponding to a target file according to the file information, wherein the target sharing parameter information comprises a target extraction code and a target sharing identifier; and sending the target sharing parameter information to the client so that the client can generate file sharing information for sharing the target file by using the target sharing parameter information.
In one possible embodiment, in the case that the file sharing information includes a public sharing link, the public sharing link is obtained by splicing a preset sharing website and target sharing parameter information, and the file sharing method further includes: acquiring a target extraction code extracted from the public sharing link; and accessing the target file by using the target extraction code extracted from the public sharing link.
In one possible embodiment, the file sharing method further includes: receiving a sharing cancellation request carrying file information sent by a client; searching target record data recorded with the corresponding relation between the file information and the target sharing parameter information according to the file information; and deleting the target record data according to the sharing canceling request.
In a possible embodiment, in the case that the content of the target file is updated, the file sharing method further includes: receiving a file updating request which is sent by a client and carries file information; searching target record data recorded with the corresponding relation between the file information and the target sharing parameter information according to the file information; and according to the file updating request, performing updating processing on the target record data, wherein the updating processing comprises adding and deleting modification processing.
In a third aspect, an embodiment of the present application provides a file sharing device, where the file sharing device is applied to a client in a file sharing system, the file sharing system includes a server and the client, sharing parameter information corresponding to each file in a plurality of files is stored in the server, and the file sharing device includes: the first sending module is used for sending a sharing request carrying file information of a target file to the server; the first receiving module is used for receiving target sharing parameter information corresponding to the target file, wherein the target sharing parameter information comprises a target extraction code and a target sharing identifier; and the generating module is used for generating file sharing information for sharing the target file by utilizing the target sharing parameter information.
In a fourth aspect, an embodiment of the present application provides a file sharing device, where the file sharing device is applied to a server in a file sharing system, the file sharing system includes a client and a server, sharing parameter information corresponding to each file in a plurality of files is stored in the server, and the file sharing device includes: the second receiving module is used for receiving a sharing request which is sent by the client and carries file information of the target file; the first searching module is used for searching target sharing parameter information corresponding to a target file according to the file information, wherein the target sharing parameter information comprises a target extraction code and a target sharing identifier; the second sending module is used for sending the target sharing parameter information to the client so that the client can generate file sharing information for sharing the target file by using the target sharing parameter information.
In a fifth aspect, the present application provides a storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the method according to the first aspect or any optional implementation manner of the first aspect.
In a sixth aspect, the present application provides a storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the method of the second aspect or any optional implementation manner of the second aspect.
In a seventh aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the method of the first aspect or any of the alternative implementations of the first aspect.
In an eighth aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the method of the second aspect or any of the alternative implementations of the second aspect.
In a ninth aspect, the present application provides a computer program product comprising a computer readable storage medium storing a computer program which, when executed by at least one processor, causes the at least one processor to perform the method of the first aspect or any of the optional implementations of the first aspect.
In a tenth aspect, the present application provides a computer program product comprising a computer readable storage medium storing a computer program which, when executed by at least one processor, causes the at least one processor to perform the method of the second aspect or any of the alternative implementations of the second aspect.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
FIG. 1 is a flow chart illustrating a prior art file sharing method;
fig. 2 shows a flowchart of a file sharing method according to an embodiment of the present application;
fig. 3 shows a block diagram of a file sharing apparatus according to an embodiment of the present application;
fig. 4 is a block diagram illustrating a structure of another file sharing apparatus according to an embodiment of the present disclosure;
fig. 5 shows a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1, fig. 1 is a flowchart illustrating a file sharing method according to the prior art. The file sharing method shown in fig. 1 includes:
step S110, the network cloud disk is opened, so that the network disk service can be started.
Step S120, in response to the sharing operation of the user, obtaining a sharing request for sharing the file.
Step S130, a private link for performing private sharing on the file is created, and a password corresponding to the private link is generated.
Subsequently, after generating the private link, the user can view the content of the file by accessing the private link and by inputting the corresponding password.
Step S140, a public link for performing public sharing on the file is created.
Subsequently, after the public link is generated, the user can view the content of the file by accessing the public link.
Therefore, it can be determined from the above content that the existing file sharing method realizes sharing of files by creating two sharing links. However, when a user wants to cancel sharing of the file, the user needs to cancel public sharing and private sharing respectively, so that the user needs to operate for many times to realize the file sharing, and further, the problem that sharing links are difficult to manage in a unified manner is caused, that is, the existing file sharing method cannot realize the effect of sharing the file through one operation.
That is, if there are two types of sharing requirements for the same file, the user needs to create the sharing twice, and then needs to operate twice when the user wants to update the content (for example, add a file in a folder), and needs to operate separately when the user wants to cancel the sharing. Moreover, the above operations are also prone to omission, for example, when content is to be updated, if an operation mistake only updates the privately shared content, the content seen by the publicly shared audience will be inconsistent.
Based on this, the embodiment of the present application provides a file sharing scheme, which generates file sharing information for sharing a target file by searching for target sharing parameter information corresponding to the target file and using the target sharing parameter information, so that the embodiment of the present application can implement file sharing by managing the target sharing parameter information, thereby solving the problem that the existing file sharing method is difficult to manage in a unified manner. For example, when the sharing of the file is to be cancelled, the user only needs to cancel the related sharing of the target sharing parameter information, that is, the embodiment of the present application only needs to operate once, so that the public sharing and the secret sharing can be cancelled, and further, the effect of facilitating the management of the sharing of the file is achieved.
Referring to fig. 2, fig. 2 is a flowchart illustrating a file sharing method according to an embodiment of the present disclosure. The file sharing method shown in fig. 2 is applied to a file sharing system, the file sharing system includes a server and a client, sharing parameter information corresponding to each file in a plurality of files is stored in the server, and the file sharing method includes:
step S210, the client sends a sharing request carrying file information of the target file to the server. Correspondingly, the server client sends a sharing request carrying file information of the target file.
It should be understood that the information included in the file information may be set according to actual requirements, and the embodiments of the present application are not limited thereto.
For example, the file information may include a file name, a storage path of the file, a file size, and the like.
In order to facilitate understanding of step S210, the following description is made by way of specific embodiments.
Specifically, in response to a sharing operation of a user on a target file, a client acquires a sharing request for the target file.
In step S220, the server searches for target sharing parameter information corresponding to the target file according to the file information.
It should be understood that the information included in the target sharing parameter information may be set according to actual requirements, and the embodiment of the present application is not limited thereto.
For example, the target sharing parameter information includes a target extraction code and a target sharing identifier. The target extraction code can be used for generating a public sharing link and can also be used as an extraction code corresponding to a private sharing link; the target sharing identification may be used to determine whether the public sharing link and the private sharing link are the same link.
In order to facilitate understanding of step S220, the following description is made by way of specific embodiments.
Specifically, since the server may pre-store the sharing parameter information corresponding to each of the plurality of files, after receiving the access request, the server may search the target sharing parameter information corresponding to the target file from the sharing parameter information corresponding to each of the plurality of files.
In step S230, the server sends the target sharing parameter information to the client. Correspondingly, the client receives the target sharing parameter information sent by the server.
In step S240, the client generates file sharing information for sharing the target file by using the target sharing parameter information.
It should be understood that, by using the target sharing parameter information, the specific manner of generating the file sharing information for sharing the target file by the client may be set according to actual needs, and the embodiment of the present application is not limited thereto.
Optionally, under the condition that the file sharing information includes the public sharing link, the client may search the preset sharing website corresponding to the sharing request according to the sharing request, and may splice the preset sharing website and the target sharing parameter information to obtain the public sharing link, and the subsequent user may access the public sharing link to view the content of the target file. The preset sharing website may refer to a prefix of a link (e.g., a public sharing link) for sharing the target file.
It should be understood that, according to the sharing request, the specific process of the client searching for the preset sharing website corresponding to the sharing request may be set according to actual requirements, and the embodiment of the present application is not limited thereto.
For example, the client may locally search for a preset sharing website corresponding to the sharing request.
For another example, the client may send a website query instruction to the server, and may receive a preset sharing website returned by the server.
It should also be understood that the specific manner in which the client splices the preset sharing website and the target sharing parameter information may be set according to actual needs, and the embodiment of the present application is not limited thereto.
Optionally, the client may use the preset sharing website as a prefix of the public sharing link, use the target sharing parameter information as a middle part of the public sharing link, and use the target extraction code as a suffix of the public sharing link, so that the preset sharing website, the target sharing parameter information, and the target extraction code may be spliced according to the above manner to obtain the public sharing link.
For example, under the conditions that the preset sharing website is http:// file.share.com ", the target extraction code is 123456" and the target sharing identifier is id123 ", the generated public sharing link is http:// file.share.com/id123password is 123456 by the technical scheme.
Optionally, the client may encrypt the target extraction code to obtain encrypted information, and then the client may use the preset sharing website as a prefix of the public sharing link, may use the target sharing parameter information as a middle part of the public sharing link, and may use the encrypted information as a suffix of the public sharing link, so that the preset sharing website, the target sharing parameter information, and the encrypted information may be spliced according to the above manner to obtain the public sharing link.
Optionally, under the condition that the file sharing information includes a private sharing link and a target extraction code, the client searches for a preset sharing website corresponding to the sharing request according to the sharing request, and can splice the preset sharing website and the target sharing identifier to obtain the private sharing link, and uses the target extraction code as the extraction code corresponding to the private sharing link, and a subsequent user can access the private sharing link and input the target extraction code to view the content of the target file. The preset sharing website may refer to a prefix of a link (e.g., a secret sharing link) for sharing the target file.
It should be understood that the client splices the preset sharing website and the target sharing identifier, and the specific manner of obtaining the private sharing link may be set according to actual requirements, which is not limited in this embodiment of the application.
Optionally, the client may use the preset sharing website as a prefix of the private sharing link, and may use the target sharing identifier as a suffix of the private sharing link, so that the preset sharing website and the target sharing identifier may be spliced according to the above manner to obtain the private sharing link.
For example, under the condition that the preset sharing website is http:// file.share.com ", the target extraction code is 123456", and the target sharing identifier is id123 ", by the above technical scheme, the generated private sharing link is http:// file.share.com/id 123", and the access password thereof may be 123456.
It should be noted here that, for the public sharing link and the private sharing link generated by using the same target sharing parameter information, the target sharing identifiers of the two links are the same, that is, it can be determined that the target sharing identifier corresponds to one target sharing parameter information through the target analysis identifier, and different functions can be implemented through the difference of the target extraction codes.
In addition, under the condition that the file sharing information comprises the public sharing link, the public sharing link is obtained by splicing the preset sharing website and the target sharing parameter information, and the file sharing method further comprises the following steps: the server acquires the target extraction code extracted from the public sharing link, and then the server accesses the target file by using the target extraction code extracted from the public sharing link.
In addition, the file sharing method further comprises the following steps: the server receives a sharing cancellation request carrying file information and sent by a client, then searches for target record data recorded with a corresponding relation between the file information and target sharing parameter information according to the file information, and finally deletes the target record data according to the sharing cancellation request.
In addition, when the content of the target file is updated, the file sharing method further includes: the server receives a file updating request which is sent by the client and carries file information, then searches for target record data recorded with a corresponding relation between the file information and the target sharing parameter information according to the file information, and can update the target record data according to the file updating request. Wherein, the updating process comprises an adding and deleting modification process.
Therefore, with the aid of the above contents, the embodiment of the present application can implement sharing of a file by managing the target sharing parameter information, that is, from the technical implementation point of view, the embodiment can be regarded as sharing substantially, but from the user point of view, the embodiment provides two types of functions at the same time, so that the sharing is created, the content is updated, the sharing is cancelled, and the operation is only required once, thereby fundamentally avoiding the trouble in management.
It should be understood that the above file sharing method is only exemplary, and those skilled in the art can make various changes, modifications or alterations according to the above method and fall within the protection scope of the present application.
Referring to fig. 3, fig. 3 is a block diagram illustrating a structure of a file sharing apparatus 300 according to an embodiment of the present disclosure, it should be understood that the file sharing apparatus 300 corresponds to the above method embodiment and can perform the steps of the above method embodiment, specific functions of the file sharing apparatus 300 may be referred to the above description, and detailed descriptions are omitted here to avoid redundancy. The file sharing apparatus 300 includes at least one software function module that can be stored in a memory in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the file sharing apparatus 300. Specifically, the file sharing apparatus 300 is applied to a client in a file sharing system, where the file sharing system includes a server and a client, sharing parameter information corresponding to each file in a plurality of files is stored in the server, and the file sharing apparatus 300 includes:
a first sending module 310, configured to send a sharing request carrying file information of a target file to a server;
the first receiving module 320 is configured to receive target sharing parameter information corresponding to a target file, where the target sharing parameter information includes a target extraction code and a target sharing identifier;
the generating module 330 is configured to generate file sharing information for sharing the target file by using the target sharing parameter information.
In one possible embodiment, the file sharing information includes a public sharing link; the generating module 330 is specifically configured to: searching a preset sharing website corresponding to the sharing request according to the sharing request; and splicing the preset sharing website and the target sharing parameter information to obtain the public sharing link.
In a possible embodiment, the generating module 330 is specifically configured to: encrypting the target extraction code to obtain encrypted information; and splicing the encrypted information, the preset sharing website and the target sharing identification to obtain the public sharing link.
In one possible embodiment, the file sharing information includes a private sharing link and a target extraction code; the generating module 330 is specifically configured to: searching a preset sharing website corresponding to the sharing request according to the sharing request; and splicing the preset sharing website and the target sharing identifier to obtain a private sharing link, and taking the target extraction code as an extraction code corresponding to the private sharing link.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method, and will not be described in too much detail herein.
Referring to fig. 4, fig. 4 shows a block diagram of another file sharing apparatus 400 according to an embodiment of the present disclosure, it should be understood that the file sharing apparatus 400 corresponds to the above method embodiment and can perform the steps of the above method embodiment, and specific functions of the file sharing apparatus 400 may be referred to the above description, and detailed descriptions are omitted here to avoid redundancy. The file sharing apparatus 400 includes at least one software function module that can be stored in a memory in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the file sharing apparatus 400. Specifically, the file sharing apparatus 400 is applied to a server in a file sharing system, where the file sharing system includes a client and a server, sharing parameter information corresponding to each file in a plurality of files is stored in the server, and the file sharing apparatus 400 includes:
a second receiving module 410, configured to receive a sharing request, which is sent by a client and carries file information of a target file;
the first searching module 420 is configured to search, according to the file information, target sharing parameter information corresponding to a target file, where the target sharing parameter information includes a target extraction code and a target sharing identifier;
the second sending module 430 is configured to send the target sharing parameter information to the client, so that the client generates file sharing information for sharing the target file by using the target sharing parameter information.
In a possible embodiment, in a case that the file sharing information includes a public sharing link, the public sharing link is obtained by splicing a preset sharing website and target sharing parameter information, and the file sharing apparatus 400 further includes: an acquisition module (not shown) for acquiring a target extraction code extracted from the public sharing link; and an access module (not shown) for accessing the target file by using the target extraction code extracted from the public sharing link.
In a possible embodiment, the file sharing apparatus 400 further includes: a third receiving module (not shown) configured to receive a sharing cancellation request with file information sent by a client; a second searching module (not shown) for searching, according to the file information, target record data in which a correspondence between the file information and the target sharing parameter information is recorded; and a deletion module (not shown) configured to delete the target record data according to the sharing cancellation request.
In a possible embodiment, the file sharing apparatus 400 further includes: a fourth receiving module (not shown) configured to receive a file update request carrying file information sent by the client when the content of the target file is updated; a third searching module (not shown) for searching target record data recorded with a corresponding relationship between the file information and the target sharing parameter information according to the file information; and an updating module (not shown) for performing an updating process on the target record data according to the file updating request, wherein the updating process includes an addition/deletion process.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method, and will not be described in too much detail herein.
Referring to fig. 5, fig. 5 is a block diagram illustrating an electronic device 500 according to an embodiment of the present disclosure. Electronic device 500 may include a processor 510, a communication interface 520, a memory 530, and at least one communication bus 540. Wherein the communication bus 540 is used for realizing direct connection communication of these components. The communication interface 520 in the embodiment of the present application is used for communicating signaling or data with other devices. Processor 510 may be an integrated circuit chip having signal processing capabilities. The Processor 510 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor 510 may be any conventional processor or the like.
The Memory 530 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 530 stores computer readable instructions, which when executed by the processor 510, the electronic device 500 may perform the steps of the corresponding side (e.g., client side or server side) of the above-described method embodiments.
The electronic device 500 may further include a memory controller, an input-output unit, an audio unit, and a display unit.
The memory 530, the memory controller, the processor 510, the peripheral interface, the input/output unit, the audio unit, and the display unit are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, these elements may be electrically coupled to each other via one or more communication buses 540. The processor 510 is used to execute executable modules stored in the memory 530.
The input and output unit is used for providing input data for a user to realize the interaction of the user and the server (or the local terminal). The input/output unit may be, but is not limited to, a mouse, a keyboard, and the like.
The audio unit provides an audio interface to the user, which may include one or more microphones, one or more speakers, and audio circuitry.
The display unit provides an interactive interface (e.g. a user interface) between the electronic device and a user or for displaying image data to a user reference. In this embodiment, the display unit may be a liquid crystal display or a touch display. In the case of a touch display, the display can be a capacitive touch screen or a resistive touch screen, which supports single-point and multi-point touch operations. The support of single-point and multi-point touch operations means that the touch display can sense touch operations simultaneously generated from one or more positions on the touch display, and the sensed touch operations are sent to the processor for calculation and processing.
It will be appreciated that the configuration shown in FIG. 5 is merely illustrative and that the electronic device 500 may include more or fewer components than shown in FIG. 5 or may have a different configuration than shown in FIG. 5. The components shown in fig. 5 may be implemented in hardware, software, or a combination thereof.
The present application also provides a storage medium having a computer program stored thereon, which, when executed by a processor, performs the method of the method embodiments.
The present application also provides a computer program product which, when run on a computer, causes the computer to perform the method of the method embodiments.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the system described above may refer to the corresponding process in the foregoing method, and will not be described in too much detail herein.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including 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 application. 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. It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. The file sharing method is applied to a client in a file sharing system, the file sharing system comprises a server and the client, sharing parameter information corresponding to each file in a plurality of files is stored in the server, and the file sharing method comprises the following steps:
sending a sharing request carrying file information of a target file to the server;
receiving target sharing parameter information corresponding to the target file, which is returned by the server, wherein the target sharing parameter information comprises a target extraction code and a target sharing identifier;
and generating file sharing information for sharing the target file by using the target sharing parameter information.
2. The file sharing method according to claim 1, wherein the file sharing information includes a public sharing link;
generating file sharing information for sharing the target file by using the target sharing parameter information, wherein the file sharing information comprises:
searching a preset sharing website corresponding to the sharing request according to the sharing request;
and splicing the preset sharing website and the target sharing parameter information to obtain the public sharing link.
3. The file sharing method according to claim 2, wherein the splicing the preset sharing website and the target sharing parameter information to obtain the public sharing link includes:
encrypting the target extraction code to obtain encrypted information;
and splicing the encrypted information, the preset sharing website and the target sharing identification to obtain the public sharing link.
4. The file sharing method according to claim 1, wherein the file sharing information includes a private sharing link and the target extraction code;
generating file sharing information for sharing the target file by using the target sharing parameter information, wherein the file sharing information comprises:
searching a preset sharing website corresponding to the sharing request according to the sharing request;
and splicing the preset sharing website and the target sharing identifier to obtain the private sharing link, and taking the target extraction code as an extraction code corresponding to the private sharing link.
5. The file sharing method is applied to a server in a file sharing system, the file sharing system comprises a client and the server, sharing parameter information corresponding to each file in a plurality of files is stored in the server, and the file sharing method comprises the following steps:
receiving a sharing request which is sent by the client and carries file information of a target file;
searching target sharing parameter information corresponding to the target file according to the file information, wherein the target sharing parameter information comprises a target extraction code and a target sharing identifier;
and sending the target sharing parameter information to the client so that the client can generate file sharing information for sharing the target file by using the target sharing parameter information.
6. The file sharing method according to claim 5, wherein in a case that the file sharing information includes a public sharing link, the public sharing link is obtained by splicing a preset sharing website and the target sharing parameter information, and the file sharing method further includes:
acquiring a target extraction code extracted from the public sharing link;
and accessing the target file by using the target extraction code extracted from the public sharing link.
7. The file sharing method according to claim 5, further comprising:
receiving a sharing cancellation request carrying the file information and sent by the client;
searching target record data recorded with the corresponding relation between the file information and the target sharing parameter information according to the file information;
and deleting the target record data according to the sharing canceling request.
8. The file sharing method according to claim 5, wherein when the content of the target file is updated, the file sharing method further comprises:
receiving a file updating request which is sent by the client and carries the file information;
searching target record data recorded with the corresponding relation between the file information and the target sharing parameter information according to the file information;
and according to the file updating request, performing updating processing on the target record data, wherein the updating processing comprises adding and deleting modification processing.
9. The utility model provides a file sharing device, its characterized in that, file sharing device is applied to the client in the file sharing system, the file sharing system include the server with the client, the sharing parameter information that every file in a plurality of files corresponds is stored in the server, file sharing device includes:
the first sending module is used for sending a sharing request carrying file information of a target file to the server;
the first receiving module is used for receiving target sharing parameter information corresponding to the target file, wherein the target sharing parameter information comprises a target extraction code and a target sharing identifier;
and the generating module is used for generating file sharing information for sharing the target file by utilizing the target sharing parameter information.
10. The utility model provides a file sharing device, its characterized in that, file sharing device is applied to the server in the file sharing system, the file sharing system include the client with the server, the sharing parameter information that every file in a plurality of files corresponds is stored in the server, file sharing device includes:
the second receiving module is used for receiving a sharing request which is sent by the client and carries file information of a target file;
the first searching module is used for searching target sharing parameter information corresponding to the target file according to the file information, wherein the target sharing parameter information comprises a target extraction code and a target sharing identifier;
the second sending module is configured to send the target sharing parameter information to the client, so that the client generates file sharing information for sharing the target file by using the target sharing parameter information.
11. A storage medium having stored thereon a computer program which, when executed by a processor, performs the photo preview method according to any one of claims 1 to 8.
12. An electronic device, characterized in that the electronic device comprises: a processor, a memory and a bus, the memory storing machine readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is operating, the machine readable instructions when executed by the processor performing the photo preview method of any of claims 1-8.
CN202210028385.7A 2022-01-11 2022-01-11 File sharing method and device, storage medium and electronic equipment Active CN114363324B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210028385.7A CN114363324B (en) 2022-01-11 2022-01-11 File sharing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210028385.7A CN114363324B (en) 2022-01-11 2022-01-11 File sharing method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN114363324A true CN114363324A (en) 2022-04-15
CN114363324B CN114363324B (en) 2023-11-24

Family

ID=81109070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210028385.7A Active CN114363324B (en) 2022-01-11 2022-01-11 File sharing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114363324B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012177253A1 (en) * 2011-06-22 2012-12-27 Dropbox Inc. File sharing via link generation
CN107783996A (en) * 2016-08-26 2018-03-09 阿里巴巴集团控股有限公司 A kind of method and apparatus for sharing files
CN108984202A (en) * 2018-06-28 2018-12-11 广州腾讯科技有限公司 A kind of e-sourcing sharing method, device and storage medium
CN111866155A (en) * 2020-07-26 2020-10-30 陈军 Network disk file sharing method and system based on USB flash disk
CN112491695A (en) * 2020-11-25 2021-03-12 上海中通吉网络技术有限公司 File sharing method and system
CN113127432A (en) * 2021-03-23 2021-07-16 维沃移动通信有限公司 Operation execution method, device, electronic equipment and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012177253A1 (en) * 2011-06-22 2012-12-27 Dropbox Inc. File sharing via link generation
CN107783996A (en) * 2016-08-26 2018-03-09 阿里巴巴集团控股有限公司 A kind of method and apparatus for sharing files
CN108984202A (en) * 2018-06-28 2018-12-11 广州腾讯科技有限公司 A kind of e-sourcing sharing method, device and storage medium
CN111866155A (en) * 2020-07-26 2020-10-30 陈军 Network disk file sharing method and system based on USB flash disk
CN112491695A (en) * 2020-11-25 2021-03-12 上海中通吉网络技术有限公司 File sharing method and system
CN113127432A (en) * 2021-03-23 2021-07-16 维沃移动通信有限公司 Operation execution method, device, electronic equipment and medium

Also Published As

Publication number Publication date
CN114363324B (en) 2023-11-24

Similar Documents

Publication Publication Date Title
US10880287B2 (en) Out of box experience application API integration
US11113463B2 (en) Note browser
US10091174B2 (en) Identifying related user accounts based on authentication data
JP6381776B2 (en) Generating unregistered user accounts for sharing content items
US9864736B2 (en) Information processing apparatus, control method, and recording medium
US20170300464A1 (en) Animating Edits to Documents
US20140215551A1 (en) Controlling access to shared content in an online content management system
US20140223570A1 (en) Information processing apparatus, information processing system, and license management method
US10209976B2 (en) Automated application installation
US20140304384A1 (en) Uploading large content items
US10326731B2 (en) Domain name service information propagation
US20230122861A1 (en) Unified metadata search
US10152538B2 (en) Suggested search based on a content item
US10878089B2 (en) Identifying malware based on content item identifiers
US11442752B2 (en) Central storage management interface supporting native user interface versions
US20210110101A1 (en) Techniques for web framework detection
US11048668B2 (en) Sensitive data management
JP6760904B2 (en) Information processing equipment, information processing methods, and information processing programs
CN112559913B (en) Data processing method, device, computing equipment and readable storage medium
TWI571754B (en) Method for performing file synchronization control, and associated apparatus
CN114363324B (en) File sharing method and device, storage medium and electronic equipment
CN114285839A (en) File transmission method and device, computer storage medium and electronic equipment
US11841916B2 (en) System and method to update a bookmarked document link and avoid a broken link
US9086860B2 (en) Bi-directional linking of product build information
JP2014112434A (en) Information processor, information processing method, program and information processing system

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
GR01 Patent grant
GR01 Patent grant