File uploading method and device, electronic equipment and storage medium
Through dynamic configuration file upload parameters and verification mechanism, the problem of insufficient flexibility caused by the fixed file format of the file upload component in the existing technology is solved, and a more efficient and flexible file upload process is achieved.
Patent Information
- Application Number
- CN202510123198.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-26
- Publication Date
- 2025-05-13
AI Technical Summary
The file format of the existing file upload component is fixed and cannot be dynamically adjusted according to the actual application scenario, resulting in poor flexibility in file upload and unable to meet the needs of complex business functions.
By obtaining dynamic configuration parameters for uploading files, receiving files to be uploaded, and intercepting and verifying the files according to the configuration parameters, determining the file verification results, and deciding whether to transfer the files to the target server.
It realizes dynamic configuration of file upload parameters, improves the flexibility and efficiency of file upload, and can meet the needs of different business functions.
Smart Images

Figure CN119996402A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of file uploading, and in particular to a file uploading method, device, electronic device and storage medium. Background Art
[0002] In modern Web applications, file upload components encapsulated by UI frameworks are generally used to implement file upload, such as ElementUI, AntDesign UI, etc. In the actual project development process, the file formats that can be uploaded by the file upload components are often fixed in advance, and it is impossible to modify and control the file formats that can be uploaded by the file upload components according to the actual project application scenarios or business function requirements, resulting in poor flexibility in file upload and failure to meet complex business function requirements. Summary of the invention
[0003] The main purpose of the embodiments of the present application is to propose a file uploading method, device, electronic device and storage medium, which can realize dynamic configuration of file uploading parameters and improve the flexibility of file uploading.
[0004] On the one hand, an embodiment of the present application provides a method for uploading a file, the method comprising the following steps:
[0005] Get the dynamic configuration parameters for file upload;
[0006] Receive files to be uploaded;
[0007] According to the file upload dynamic configuration parameters, the file to be uploaded is intercepted and verified to determine the file verification result;
[0008] According to the file verification result, determine whether to transfer the file to be uploaded to the target server.
[0009] In some embodiments, the method further comprises:
[0010] In response to the file query operation, receiving file query information;
[0011] According to the file query information, a file query interface is called to receive the file query result returned by the target server.
[0012] In some embodiments, obtaining the file upload dynamic configuration parameters specifically includes:
[0013] Get multiple file upload components;
[0014] In response to the parameter configuration operation of each of the file upload components, the parameter acquisition interface corresponding to each of the file upload components is called to receive the file upload dynamic configuration parameters, and the file upload dynamic configuration parameters are bound to the file upload components, wherein the file upload dynamic configuration parameters include multiple file upload configuration items and dynamic configuration information of each of the file upload configuration items.
[0015] In some embodiments, receiving the file to be uploaded specifically includes:
[0016] In response to the component selection operation, determining a target upload component from the plurality of file upload components;
[0017] In response to the file selection operation, the target upload component is used to receive the file to be uploaded.
[0018] In some embodiments, the intercepting and verifying the file to be uploaded according to the file upload dynamic configuration parameter to determine the file verification result specifically includes:
[0019] Parsing the file to be uploaded and determining file parsing information;
[0020] The file parsing information is verified according to the file upload dynamic configuration parameter corresponding to the target upload component to determine the file verification result.
[0021] In some embodiments, verifying the file parsing information according to the file upload dynamic configuration parameter corresponding to the target upload component to determine the file verification result specifically includes:
[0022] Determining, according to the file upload dynamic configuration parameter corresponding to the target upload component, the dynamic configuration information corresponding to each of the file upload configuration items contained in the file upload dynamic configuration parameter;
[0023] Determine the target to-be-verified information corresponding to each of the file upload configuration items from the file parsing information;
[0024] For each of the file upload configuration items, verify the target information to be verified according to the dynamic configuration information, and determine the corresponding configuration item verification result;
[0025] The file verification result is determined according to the configuration item verification results corresponding to each of the file upload configuration items.
[0026] In some embodiments, determining whether to transmit the to-be-uploaded file to the target server according to the file verification result specifically includes:
[0027] Obtaining a component identification code corresponding to the target upload component;
[0028] When the configuration item verification results corresponding to each of the file upload configuration items are all verified to pass, the to-be-uploaded file is transmitted to a target folder in the target server according to the component identification code, wherein the target folder is a data storage folder in the target server that matches the component identification code;
[0029] When the configuration item verification result corresponding to any of the file upload configuration items is verification failure, the transmission of the to-be-uploaded file to the target server is stopped, and corresponding file verification failure information is generated.
[0030] On the other hand, an embodiment of the present application provides a file uploading device, the device comprising:
[0031] The first module is used to obtain dynamic configuration parameters for file upload;
[0032] The second module is used to receive files to be uploaded;
[0033] The third module is used to intercept and verify the file to be uploaded according to the file upload dynamic configuration parameters, and determine the file verification result;
[0034] The fourth module is used to determine whether to transmit the file to be uploaded to the target server according to the file verification result.
[0035] On the other hand, an embodiment of the present application provides an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the file upload method described above.
[0036] On the other hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the file uploading method described above is implemented.
[0037] The embodiments of the present application include at least the following beneficial effects: the present application provides a file uploading method, device, electronic device and storage medium, which obtains file uploading dynamic configuration parameters, receives files to be uploaded, intercepts and verifies the files to be uploaded according to the file uploading dynamic configuration parameters, determines the file verification result, and determines whether to transmit the files to be uploaded to the target server according to the file verification result. The present application can realize the dynamic configuration of file uploading parameters, is applicable to a variety of project application scenarios, improves the flexibility and efficiency of file uploading, and meets different business function requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0040] Figure 1 It is a flowchart of a file uploading method provided by an embodiment of the present application;
[0041] Figure 2 It is a structural diagram of a file uploading device provided in an embodiment of the present application;
[0042] Figure 3 It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the attached claims.
[0044] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".
[0045] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.
[0046] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0047] Reference Figure 1 , Figure 1 This is an optional flowchart of a file uploading method provided in an embodiment of the present application. The method may include but is not limited to steps S101 to S104:
[0048] Step S101, obtaining file upload dynamic configuration parameters;
[0049] Step S102, receiving a file to be uploaded;
[0050] Step S103, intercepting and verifying the uploaded file according to the file upload dynamic configuration parameters, and determining the file verification result;
[0051] Step S104: Determine whether to transmit the file to be uploaded to the target server according to the file verification result.
[0052] In some embodiments, through the dynamic configuration parameters of file upload, the uploaded files are intercepted and checked, and various file upload scenarios are effectively combined to control the file upload behavior and improve the flexibility of file upload. For example, in a certain business application scenario, the type of uploaded files is restricted to realize file classification upload.
[0053] In some embodiments, step S101 may include but is not limited to steps S201 to S202:
[0054] Step S201, obtaining multiple file upload components;
[0055] Step S202, in response to the parameter configuration operation of each file upload component, call the parameter acquisition interface corresponding to each file upload component, receive the file upload dynamic configuration parameters, and bind the file upload dynamic configuration parameters to the file upload component, wherein the file upload dynamic configuration parameters include multiple file upload configuration items and dynamic configuration information of each file upload configuration item.
[0056] In some embodiments, optionally, the file upload component is an application control in a Web application, which performs parameter configuration operations in the back-end system, sets the file upload dynamic configuration parameters corresponding to each application control, obtains the corresponding file upload dynamic configuration parameters from the back-end by calling the parameter acquisition interface corresponding to each application control, and binds the application control to the file upload dynamic configuration parameters. The file upload dynamic configuration parameters can be dynamically edited in the back-end system and synchronously transmitted to the application control, thereby realizing dynamic configuration of multiple file upload configuration items of the application control.
[0057] Exemplarily, the file upload configuration items may include but are not limited to:
[0058] a) File type: the file types allowed to be uploaded (such as pictures, PDFs, videos, etc.);
[0059] b) Number of files: The range of the number of files allowed to be uploaded is used to check the number of files to be uploaded and give a corresponding prompt message when the number exceeds the limit to avoid server overload caused by excessive upload volume;
[0060] c) Must upload: prompt whether the file type must be uploaded. This is used in certain business scenarios to prompt that a certain file must be uploaded and to perform verification prompts for the files that must be uploaded;
[0061] d) Information identification: whether to identify and output the file information. This is used in some business scenarios where the uploaded file information needs to be identified. For example, when uploading the front of an ID card, the name, ID number, ethnicity, and household registration address on the ID card can be identified. The user's date of birth, gender, etc. can be calculated based on the identified ID number to reduce the number of user information input;
[0062] e) File encoding: Configure the file's unique identification code, which is used to query the configured file categories and subcategories through the file's unique identification code. At the same time, the uploaded files are also bound and classified according to this file's unique identification code. The file's unique identification code can be set according to different business scenarios;
[0063] f) File sorting: Arrange the files in order according to the requirements, used to sort the files to be uploaded;
[0064] g) File split screen: Split screen display can be used when file comparison is required. Specifically, in some business scenarios, it is necessary to compare the uploaded files. The corresponding files can be selected for split screen display comparison;
[0065] h) File compression: compress the uploaded large files;
[0066] i) Drag and drop upload: Supports drag and drop file upload. Optionally, in some business scenarios, to improve user experience, users are allowed to use the mouse to drag files from the operating system to a specified area on the web page;
[0067] j) Batch download: supports downloading multiple files and compressing them into a single package.
[0068] In some embodiments, step S102 may include but is not limited to steps S301 to S302:
[0069] Step S301, in response to a component selection operation, determining a target upload component from a plurality of file upload components;
[0070] Step S302: In response to the file selection operation, the target upload component receives the file to be uploaded.
[0071] In some embodiments, the user performs a component selection operation in the Web application, determines a target upload component from multiple file upload components in the Web application, and then performs a file selection operation to upload the file to be uploaded to the target upload component. The uploaded file is then intercepted and checked to determine whether to continue uploading it to the target server.
[0072] In some embodiments, step S103 may include but is not limited to steps S401 to S402:
[0073] Step S401, parsing the file to be uploaded and determining the file parsing information;
[0074] Step S402: verify the file parsing information according to the file upload dynamic configuration parameters corresponding to the target upload component to determine the file verification result.
[0075] In some embodiments, the file parsing information includes basic file information and file content information. The basic file information may include but is not limited to the file name, path, size, creation time, modification time, file format, etc. The file content information is the image information and text information of the file. For example, if the file to be uploaded is a photo of an identity card, the corresponding file content information is the identity card image and the identity card content (including identity card name, identity card address, identity card number, date of birth, etc.).
[0076] In some embodiments, step S402 may include, but is not limited to, steps S501 to S504:
[0077] Step S501, determining the dynamic configuration information corresponding to each file upload configuration item contained in the file upload dynamic configuration parameter according to the file upload dynamic configuration parameter corresponding to the target upload component;
[0078] Step S502, determining target information to be verified corresponding to each file upload configuration item from the file parsing information;
[0079] Step S503, for each file upload configuration item, verify the target information to be verified according to the dynamic configuration information, and determine the corresponding configuration item verification result;
[0080] Step S504: determine the file verification result according to the configuration item verification result corresponding to each file upload configuration item.
[0081] In some embodiments, the uploaded file is intercepted and checked according to the dynamic configuration information of each file upload configuration item. For example, in the file type configuration item, the dynamic configuration information includes multiple allowed upload file types. If the file type of the uploaded file is not any of the uploaded file types, the uploaded file will be intercepted and the transmission of the uploaded file to the target server will be stopped. In the file encoding configuration item, the dynamic configuration information includes a dynamically set file unique identification code. If the file encoding corresponding to the uploaded file is not the file unique identification code, the uploaded file will be intercepted and the transmission of the uploaded file to the target server will be stopped.
[0082] In some embodiments, step S104 may include but is not limited to steps S601 to S603:
[0083] Step S601, obtaining a component identification code corresponding to a target upload component;
[0084] Step S602, when the configuration item verification results corresponding to each file upload configuration item are all verified passed, the file to be uploaded is transmitted to a target folder in the target server according to the component identification code, wherein the target folder is a data storage folder in the target server that matches the component identification code;
[0085] Step S603: When the configuration item verification result corresponding to any file upload configuration item is verification failure, the transmission of the file to be uploaded to the target server is stopped, and corresponding file verification failure information is generated.
[0086] In some embodiments, based on the component identification code, a data storage folder in the target server that matches the component identification code is determined. Exemplarily, the component identification code can be a unique file identification code dynamically set in the above-mentioned file encoding configuration item, or it can be an identification code corresponding to the target upload component set by itself according to the business scenario. In the target server, corresponding data storage folders are created based on each file unique identification code and the component identification code set by itself.
[0087] In some embodiments, the above file uploading method may further include steps S701 to S702:
[0088] Step S701, receiving file query information in response to a file query operation;
[0089] Step S702: calling a file query interface according to the file query information, and receiving a file query result returned by the target server.
[0090] In some embodiments, in response to a file query operation, a file query interface is called, and a file search is performed in a target server based on the file query information to determine whether there is a target query file corresponding to the file query information in the target server. If it is determined that there is a target query file corresponding to the file query information in the target server, the target query file and file query success information are returned; if it is determined that there is no target query file corresponding to the file query information in the target server, file non-existence information is returned.
[0091] Reference Figure 2 , Figure 2 : is an optional structural diagram of a file uploading device provided in an embodiment of the present application, the device is used to implement the above-mentioned file uploading method, and the device may include:
[0092] The first module is used to obtain dynamic configuration parameters for file upload;
[0093] The second module is used to receive files to be uploaded;
[0094] The third module is used to intercept and verify the uploaded file according to the file upload dynamic configuration parameters and determine the file verification result;
[0095] The fourth module is used to determine whether to transfer the file to be uploaded to the target server according to the file verification result.
[0096] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0097] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above file uploading method when executing the computer program. The electronic device can be any smart terminal including a tablet computer.
[0098] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0099] See also Figure 3 , Figure 3 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:
[0100] The processor 901 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0101] The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store an operating system and other applications. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 902, and the processor 901 calls and executes the file upload method of the embodiment of this application;
[0102] Input / output interface 903, used to implement information input and output;
[0103] Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized by wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);
[0104] A bus 905 that transmits information between various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904);
[0105] The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .
[0106] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned file uploading method is implemented.
[0107] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0108] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0109] The embodiments of the present application provide a file uploading method, device, electronic device and storage medium, which can realize dynamic configuration of file upload parameters, are suitable for various project application scenarios, improve the flexibility and efficiency of file uploading, and meet different business function requirements.
[0110] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0111] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0112] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0113] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0114] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0115] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0116] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0117] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0118] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0119] It should be appreciated that embodiments of the present invention may be implemented or enforced by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer-readable memory. The method may be implemented in a computer program using standard programming techniques including a non-transitory computer-readable storage medium configured with a computer program, wherein the storage medium so configured causes the computer to operate in a specific and predefined manner - according to the methods and drawings described in the specific embodiments. Each program may be implemented in a high-level procedural or object-oriented programming language to communicate with a computer system. However, if desired, the program may be implemented in an assembly or machine language. In any case, the language may be a compiled or interpreted language. In addition, the program may be run on a programmed ASIC for this purpose.
[0120] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0121] The preferred embodiments of the present application are described above with reference to the accompanying drawings, but the scope of the rights of the present application is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present application should be within the scope of the rights of the present application.
Claims
1. A file uploading method, characterized in that: The method comprises the following steps: Get the dynamic configuration parameters for file upload; Receive files to be uploaded; According to the file upload dynamic configuration parameters, the file to be uploaded is intercepted and verified to determine the file verification result; According to the file verification result, determine whether to transfer the file to be uploaded to the target server.
2. The file uploading method according to claim 1, characterized in that: The method further comprises: In response to the file query operation, receiving file query information; According to the file query information, a file query interface is called to receive the file query result returned by the target server.
3. The file uploading method according to claim 1, characterized in that: The obtaining of the file upload dynamic configuration parameters specifically includes: Get multiple file upload components; In response to the parameter configuration operation of each of the file upload components, the parameter acquisition interface corresponding to each of the file upload components is called to receive the file upload dynamic configuration parameters, and the file upload dynamic configuration parameters are bound to the file upload components, wherein the file upload dynamic configuration parameters include multiple file upload configuration items and dynamic configuration information of each of the file upload configuration items.
4. The file uploading method according to claim 3, characterized in that: The receiving of the file to be uploaded specifically includes: In response to the component selection operation, determining a target upload component from the plurality of file upload components; In response to the file selection operation, the target upload component is used to receive the file to be uploaded.
5. The file uploading method according to claim 4, characterized in that: The intercepting and verifying the file to be uploaded according to the file upload dynamic configuration parameter to determine the file verification result specifically includes: Parsing the file to be uploaded and determining file parsing information; The file parsing information is verified according to the file upload dynamic configuration parameter corresponding to the target upload component to determine the file verification result.
6. The file uploading method according to claim 5, characterized in that: The verifying the file parsing information according to the file upload dynamic configuration parameter corresponding to the target upload component to determine the file verification result specifically includes: Determining, according to the file upload dynamic configuration parameter corresponding to the target upload component, the dynamic configuration information corresponding to each of the file upload configuration items contained in the file upload dynamic configuration parameter; Determine the target to-be-verified information corresponding to each of the file upload configuration items from the file parsing information; For each of the file upload configuration items, verify the target information to be verified according to the dynamic configuration information, and determine the corresponding configuration item verification result; The file verification result is determined according to the configuration item verification results corresponding to each of the file upload configuration items.
7. The file uploading method according to claim 6, characterized in that: Determining whether to transmit the to-be-uploaded file to the target server according to the file verification result specifically includes: Obtaining a component identification code corresponding to the target upload component; When the configuration item verification results corresponding to each of the file upload configuration items are all verified to pass, the to-be-uploaded file is transmitted to a target folder in the target server according to the component identification code, wherein the target folder is a data storage folder in the target server that matches the component identification code; When the configuration item verification result corresponding to any of the file upload configuration items is verification failure, the transmission of the to-be-uploaded file to the target server is stopped, and corresponding file verification failure information is generated.
8. A file uploading device, characterized in that: The device comprises: The first module is used to obtain dynamic configuration parameters for file upload; The second module is used to receive files to be uploaded; The third module is used to intercept and verify the file to be uploaded according to the file upload dynamic configuration parameters, and determine the file verification result; The fourth module is used to determine whether to transmit the file to be uploaded to the target server according to the file verification result.
9. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor executes the computer program to implement the file uploading method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the file uploading method according to any one of claims 1 to 7 is implemented.