CN109714385B - Method and device for uploading files, computer equipment and storage medium - Google Patents
Method and device for uploading files, computer equipment and storage medium Download PDFInfo
- Publication number
- CN109714385B CN109714385B CN201811333554.8A CN201811333554A CN109714385B CN 109714385 B CN109714385 B CN 109714385B CN 201811333554 A CN201811333554 A CN 201811333554A CN 109714385 B CN109714385 B CN 109714385B
- Authority
- CN
- China
- Prior art keywords
- uploading
- file
- files
- port
- requirement
- 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.)
- Active
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application relates to the technical field of data processing, and provides a method, a device, computer equipment and a storage medium for uploading files, which comprises the following steps: when an uploading request of a user is received, receiving files which are uploaded by the user and meet the uploading requirement through each file uploading port; each file uploading port is set with uploading requirements for uploading files; judging whether each file uploading port receives a file meeting the uploading requirement; if not, sending a prompt of uploading failure; and if so, comprehensively evaluating the user according to all the files uploaded by the file uploading port through the uploading request and according to a preset rule. When the file is uploaded, the file missing and wrong transmission are avoided.
Description
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for uploading a file, a computer device, and a storage medium.
Background
At present, when the qualification of a user is evaluated, the corresponding user needs to upload corresponding qualification files, the qualification files are usually of various types, and the qualification files required by each platform are different. When a user uploads a qualification file, the qualification file is easy to be missed or uploaded according to requirements, so that the qualification evaluation of the user cannot be completed.
Disclosure of Invention
The application mainly aims to provide a method and a device for uploading files, computer equipment and a storage medium, and file missing and file error transmission are avoided.
In order to achieve the above object, the present application provides a method for uploading a file, including the following steps:
when an uploading request of uploading files of a user is received, receiving the files which are uploaded by the user and meet the uploading requirement through each file uploading port; each file uploading port is set with uploading requirements for uploading files;
judging whether each file uploading port receives a file meeting the uploading requirement;
if not, sending a prompt of uploading failure; and if so, comprehensively evaluating the user according to all the files uploaded by the file uploading port through the uploading request and according to a preset rule.
Further, the uploading requirement comprises an uploading type and an uploading quantity of the uploaded files; the step of judging whether each file uploading port receives the file meeting the uploading requirement includes:
and judging whether each file uploading port receives files conforming to the uploading type or not, and judging whether the number of the files conforms to the uploading number or not.
Further, before the step of performing comprehensive evaluation on the user according to all the files uploaded by the file uploading port according to the preset rule, the method includes:
and performing definition verification on the file which is received by each file uploading port and meets the uploading requirement so as to verify whether the definition of the file meets the definition requirement.
Further, after the step of performing definition verification on the file which is received by each file upload port and meets the upload requirement to verify whether the definition of the file meets the definition requirement, the method includes:
if the definition of the file does not meet the definition requirement, performing definition processing on the file; and if the definition of the file meets the definition requirement, storing the file.
Further, if not, sending a prompt of uploading failure; if yes, after the step of comprehensively evaluating the user according to all the files uploaded by the file uploading port according to the uploading request and the preset rule, the method comprises the following steps:
and respectively encrypting the files which are received by each file uploading port and meet the uploading requirement.
Further, after the step of encrypting the file which is received by each file upload port and meets the upload requirement, the method includes:
and creating a folder corresponding to each uploading request, and storing all the files subjected to the encryption processing into the folder.
The present application further provides a device for uploading a file, including:
the receiving unit is used for receiving the file uploading request of the user for uploading the file, and respectively receiving the file which is uploaded by the user and meets the uploading requirement through each file uploading port; each file uploading port is set with uploading requirements for uploading files;
the judging unit is used for judging whether each file uploading port receives a file meeting the uploading requirement;
the processing unit is used for sending a prompt of uploading failure if the uploading failure does not occur; and if so, comprehensively evaluating the user according to all the files uploaded by the file uploading port through the uploading request and according to a preset rule.
Further, the uploading requirement comprises an uploading type and an uploading quantity of the uploaded files; the judgment unit is specifically configured to:
and judging whether each file uploading port receives files conforming to the uploading type or not, and judging whether the number of the files conforms to the uploading number or not.
The present application further provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of any of the above.
According to the method, the device, the computer equipment and the storage medium for uploading the files, when an uploading request of uploading the files of a user is received, the files which are uploaded by the user and meet the uploading requirement are received through each file uploading port; and judging whether each file uploading port receives the file meeting the uploading requirement, wherein the uploading can be successful only when all the file uploading ports receive the file meeting the uploading requirement, and the missing and wrong transmission of the file are avoided.
Drawings
FIG. 1 is a schematic diagram illustrating steps of a method for uploading files according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating steps of a method for uploading files according to another embodiment of the present application;
FIG. 3 is a block diagram of an apparatus for uploading a file according to an embodiment of the present application;
FIG. 4 is a block diagram of an apparatus for uploading files in another embodiment of the present application;
fig. 5 is a block diagram illustrating a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1, an embodiment of the present application provides a method for uploading a file, including the following steps:
step S1, when receiving the uploading request of uploading files of the user, receiving the files which are uploaded by the user and meet the uploading requirement through each file uploading port; each file uploading port is set with uploading requirements for uploading files;
step S2, judging whether each file uploading port receives the file meeting the uploading requirement;
step S3, if not, sending a prompt of uploading failure; and if so, comprehensively evaluating the user according to all the files uploaded by the file uploading port through the uploading request and according to a preset rule.
In this embodiment, the method for uploading files is mainly used for uploading qualification files in a qualification evaluation scenario, and when the qualification of a user is evaluated, the user is required to provide various qualification files, so that the user can be comprehensively evaluated according to the qualification files provided by the user. The client for uploading the files is arranged on a user terminal (a computer and the like), the client is provided with a corresponding uploading button and a plurality of file uploading ports, a user can respectively upload corresponding files through the file uploading ports, and the files are qualification files such as qualification certificates and the like which are convenient for qualification evaluation of the user.
As described in step S1, the user may click the upload button correspondingly set on the client on the user terminal to trigger the upload request of the uploaded file, that is, the upload request includes the upload instruction of the file uploaded by the user; a plurality of file uploading ports are preset on a client of a user terminal, each file uploading port is set with an uploading requirement for uploading files, and the uploading requirement means that each file uploading port limits that the port can only upload appointed files; for example, one of the file uploading ports can only upload the id card photos, and the file uploading port cannot upload any other file. And when each file uploading port receives an uploading request triggered by a user, receiving files which are uploaded correspondingly by the user and meet uploading requirements respectively.
As described in the step S2, it is determined whether each file upload port receives a file meeting the upload requirement, that is, any file upload port should receive the corresponding file, so as to avoid the user missing and mistakenly transmitting the corresponding file.
As described in the step S3, if it is detected that any of the file uploading ports does not receive the corresponding file, it indicates that the user does not upload the corresponding file as required, and at this time, a request for uploading the file cannot be passed through by the user, and a notification message indicating that the uploading has failed is sent out and displayed on the client of the user terminal, so as to prompt the user. Furthermore, the file uploading error of the user can be displayed, the user is reminded to upload again, and the like. This embodiment can avoid the user to miss the file, also can avoid the user to upload incorrect file, reduces manpower and materials.
If each file uploading port receives a file meeting the uploading requirement, the file uploading port indicates that the user uploads the corresponding file according to the requirement, at the moment, a prompt message of successful uploading can be sent out through the uploading request of the file uploaded by the user, and the prompt message is displayed on the client side of the user terminal, so that the user can be prompted conveniently. Further, in this embodiment, after the user terminal has received all the files meeting the upload requirement, the user may be comprehensively evaluated according to all the files uploaded by the file upload port according to a preset rule. For example, the identity of the user is evaluated according to the identity card certificate uploaded by the user, or the qualification of the user is evaluated according to the qualification certificate uploaded by the user, and the like; the evaluation of the identification photo is mainly to verify the identity information of the user so as to confirm the identity of the user performing qualification evaluation. The evaluation of the qualification certificate mainly comprises the evaluation of the qualification of the user, such as the evaluation of the academic history of the user according to the graduation certificate, the evaluation of the professional skills of the user according to the skill certificate, and the like. Specifically, the image recognition may be performed on the file, or the text recognition may be performed on the content in the file, so as to recognize information such as the identity and qualification of the user; from this information, the user can then be evaluated.
In an embodiment, the upload request includes an upload type and an upload number of the uploaded files; the step S2 of determining whether each file upload port receives a file meeting the upload requirement includes:
step S201, determining whether each file upload port receives a file meeting the upload type, and determining whether the number of files meets the upload number.
In this embodiment, the upload requirements set by each of the file upload ports mainly include an upload type and an upload number of uploaded files, for example, if one of the file upload ports can require to upload the front and back sides of the identity document, the upload type is the front and back sides of the identity document, and the upload number is two. When judging whether each file uploading port receives the files meeting the uploading requirement, judging whether each file uploading port receives the files meeting the uploading type, and judging whether the number of the files meets the uploading number.
In an embodiment, before performing comprehensive evaluation on the user according to all the files uploaded by the file uploading port according to a preset rule in step S3, the method includes:
a. and performing definition verification on the file which is received by each file uploading port and meets the uploading requirement so as to verify whether the definition of the file meets the definition requirement.
In this embodiment, since the definition of different documents may be different, for example, the original electronic document is usually clearer, the definition of a copy, a scanned copy or a photographed photograph is relatively lower, and some other types of documents may be less clear. When the definition is low, reading, evaluation and the like of file contents are influenced, so that definition verification needs to be performed on files which are received by each file uploading port and meet uploading requirements, and whether the definition of the files meets the definition requirements (which can be a threshold) is verified; in one embodiment, if the definition requirement is met, the next step can be carried out for comprehensive evaluation; if not, the evaluation is not carried out, and meanwhile, result information which cannot be evaluated is fed back.
In this embodiment, after the step of performing definition verification on the file, which is received by each file upload port and meets the upload requirement, to verify whether the definition of the file meets the definition requirement includes:
b. if the definition of the file does not meet the definition requirement, performing definition processing on the file; and if the definition of the file meets the definition requirement, storing the file.
In this embodiment, if the definition of the file does not meet the definition requirement, in order to avoid that the file cannot be correctly identified, definition processing may be performed on the file, so as to improve the definition; if the definition of the file meets the definition requirement, the file can be directly stored; further, after the file is stored, the process of performing the comprehensive evaluation may be entered.
Specifically, the sharpness processing process may adopt photoshop to perform automatic processing, and may include the following processes:
1) copying the layer of the file;
2) adjusting hue/saturation, wherein hue is a set value, saturation is a set value, and brightness is a set value; in one embodiment, the hue is 0, the saturation is-100, and the lightness is 0;
3) high contrast retention, where the radius is a set value that is related to the image size; the radius is set to 0.5-2.2 pixels. In one embodiment, for an image that is greater than 30 centimeters wide and 240 pixels/inch of screen, the radius is set to 2.2 pixels; in the process, different definition files can be obtained by adjusting the radius.
4) And setting the current layer mode as superposition, and downwards combining the layers to obtain the file after definition processing.
Referring to fig. 2, in an embodiment, if the number is not, a warning of uploading failure is sent out; if so, after step S3 of performing comprehensive evaluation on the user according to all the files uploaded by the file upload port through the upload request and according to a preset rule, the method includes:
and step S4, encrypting the files received by each file upload port and meeting the upload requirement.
In this embodiment, in order to avoid information leakage of the user when the file is leaked, the files are encrypted, and even if the encrypted file is leaked, the information of the user is not leaked. The encryption processing in this embodiment may be simply adding a preset password, and when the file receives an open instruction, the correct preset password needs to be input.
In other embodiments, desensitization processing may be performed on the file that is received by each file upload port and meets the upload requirement, where desensitization processing is performed on sensitive information (name, phone, etc.) included in the file. In another embodiment, the sensitive information may also be subjected to fuzzy processing or coding processing, so as to avoid leakage of the sensitive information.
In another embodiment, after the step S4 of encrypting the files that are received by each file upload port and meet the upload requirement respectively, the method includes:
step S5, creating a folder corresponding to each upload request, and storing all encrypted files in the folder.
In this embodiment, for each action of uploading a file by a user, if the user successfully uploads the file, a folder is correspondingly created, and all files uploaded by the user in the action of uploading the file can be stored in the folder, and the files are encrypted without revealing user information. All files uploaded by the user are saved, and subsequent query, recheck and the like are facilitated.
In summary, in the method for uploading files provided in the embodiment of the present application, when an upload request of a user is received, files that meet upload requirements uploaded by the user are received through each file upload port; and judging whether each file uploading port receives the file meeting the uploading requirement, and only when all the file uploading ports receive the files meeting the uploading requirement, the files can be uploaded successfully, so that the missing transmission and the error transmission of the files are avoided.
Referring to fig. 3, an embodiment of the present application further provides an apparatus for uploading a file, including:
the receiving unit 10 is configured to receive a file uploaded by a user and meeting an uploading requirement through each file uploading port when receiving an uploading request of the user for uploading the file; each file uploading port is set with uploading requirements for uploading files;
a determining unit 20, configured to determine whether each file upload port receives a file meeting the upload requirement;
the processing unit 30 is used for sending a prompt of uploading failure if the uploading failure is not detected; and if so, comprehensively evaluating the user according to all the files uploaded by the file uploading port through the uploading request and according to a preset rule.
In this embodiment, the device for uploading files is mainly used for uploading qualification files in a qualification evaluation scenario, and when the qualification of a user is evaluated, the user is required to provide various qualification files, so as to comprehensively evaluate the user according to the qualification files provided by the user. The client for uploading the files is arranged on a user terminal (a computer and the like), the client is provided with a corresponding uploading button and a plurality of file uploading ports, a user can respectively upload corresponding files through the file uploading ports, and the files are qualification files such as qualification certificates and the like which are convenient for qualification evaluation of the user.
As described in the receiving unit 10, a user may click an upload button correspondingly set on a client on a user terminal to trigger an upload request for uploading a file; a plurality of file uploading ports are preset on a client of a user terminal, each file uploading port is set with an uploading requirement for uploading files, and the uploading requirement means that each file uploading port limits that the port can only upload appointed files; for example, one of the file uploading ports can only upload the id card photos, and the file uploading port cannot upload any other files. And when each file uploading port receives an uploading request triggered by a user, receiving files which are uploaded correspondingly by the user and meet uploading requirements respectively.
As described in the foregoing determining unit 20, it is determined whether each file upload port receives a file meeting the upload requirement, that is, any one of the file upload ports should receive the corresponding file, so as to avoid that the user misses and mistransmits the corresponding file.
As described in the processing unit 30, if it is detected that any of the file uploading ports does not receive the corresponding file, it indicates that the user does not upload the corresponding file as required, and at this time, a request for uploading the file cannot be passed through by the user, and a notification message indicating that the uploading has failed is sent out and displayed on the client of the user terminal, so as to facilitate the user being reminded. Furthermore, the file uploading error of the user can be displayed, the user is reminded to upload again, and the like. This embodiment can avoid the user to miss the file, also can avoid the user to upload incorrect file, reduces manpower and materials.
If each file uploading port receives a file meeting the uploading requirement, the file uploading port indicates that the user uploads the corresponding file according to the requirement, at the moment, a prompt message of successful uploading can be sent out through the uploading request of the file uploaded by the user, and the prompt message is displayed on the client side of the user terminal, so that the user can be prompted conveniently. Further, in this embodiment, after the user terminal has received all the files meeting the upload requirement, the user may be comprehensively evaluated according to all the files uploaded by the file upload port according to a preset rule. For example, the identity of the user is evaluated according to the identity card certificate uploaded by the user, or the qualification of the user is evaluated according to the qualification certificate uploaded by the user, and the like; the evaluation of the identification photo is mainly to verify the identity information of the user so as to confirm the identity of the user performing qualification evaluation. The evaluation of the qualification certificate mainly comprises the evaluation of the qualification of the user, such as the evaluation of the academic history of the user according to the graduation certificate, the evaluation of the professional skills of the user according to the skill certificate, and the like. Specifically, the image recognition may be performed on the file, or the text recognition may be performed on the content in the file, so as to recognize information such as the identity and qualification of the user; from this information, the user can then be evaluated.
In one embodiment, the upload requirement includes an upload type and an upload number of the upload file; the determining unit 20 is specifically configured to:
and judging whether each file uploading port receives files conforming to the uploading type or not, and judging whether the number of the files conforms to the uploading number or not.
In this embodiment, the set uploading requirements of each file uploading port mainly include an uploading type and an uploading quantity of the uploaded files, for example, if one of the file uploading ports can require to upload the front and back sides of the identity document, the uploading types are the front and back sides of the identity document, and the uploading quantity is two. When judging whether each file uploading port receives a file meeting the uploading requirement, judging whether each file uploading port receives a file meeting the uploading type, and judging whether the number of the files meets the uploading number.
In an embodiment, the processing unit 30 is further configured to:
and performing definition verification on the file which is received by each file uploading port and meets the uploading requirement so as to verify whether the definition of the file meets the definition requirement.
In this embodiment, since the definition of different documents may be different, for example, the original electronic document is usually clearer, the definition of a copy, a scanned copy or a photographed photograph is relatively lower, and some other types of documents may be less clear. When the definition is low, reading, evaluation and the like of file contents are influenced, so that definition verification needs to be performed on files which are received by each file uploading port and meet uploading requirements, and whether the definition of the files meets the definition requirements (which can be a threshold) is verified; in one embodiment, if the definition requirement is met, the next step can be carried out for comprehensive evaluation; if not, the evaluation is not carried out, and meanwhile, result information which cannot be evaluated is fed back.
In an embodiment, the processing unit 30 is further configured to:
if the definition of the file does not meet the definition requirement, performing definition processing on the file; and if the definition of the file meets the definition requirement, storing the file.
In this embodiment, if the definition of the file does not meet the definition requirement, in order to avoid that the file cannot be correctly identified, definition processing may be performed on the file, so as to improve the definition; if the definition of the file meets the definition requirement, the file can be directly stored; further, after the file is stored, the process of performing the comprehensive evaluation may be entered.
Specifically, the sharpness processing process may adopt photoshop to perform automatic processing, and may include the following processes:
1) copying the layer of the file;
2) adjusting hue/saturation, wherein hue is a set value, saturation is a set value, and brightness is a set value; in one embodiment, the hue is 0, the saturation is-100, and the lightness is 0;
3) high contrast retention, where the radius is a set value that is related to the image size; the radius is set to 0.5-2.2 pixels. In one embodiment, for an image that is greater than 30 centimeters wide and 240 pixels/inch of screen, the radius is set to 2.2 pixels; in the process, different definition files can be obtained by adjusting the radius.
4) And setting the current layer mode as superposition, and downwards splicing the layers to obtain the file after the definition processing.
Referring to fig. 4, in an embodiment, the apparatus for uploading a file further includes:
and the encryption unit 40 is configured to encrypt the file that meets the upload requirement and is received by each file upload port.
In this embodiment, in order to avoid information leakage of the user when the file leaks, the encryption unit 40 encrypts the files, and even if the encrypted file leaks, the information of the user is not leaked. The encryption processing in this embodiment may be simply adding a preset password, and when the file receives an open instruction, the correct preset password needs to be input.
In other embodiments, desensitization processing may be performed on the file that is received by each file upload port and meets the upload requirement, where desensitization processing is performed on sensitive information (name, phone, etc.) included in the file. In another embodiment, the sensitive information may also be subjected to fuzzy processing or coding processing, so as to avoid leakage of the sensitive information.
In an embodiment, the apparatus for uploading a file further includes:
the storage unit 50 is configured to create a folder corresponding to each upload request, and store all encrypted files in the folder.
In this embodiment, for each action of uploading a file by a user, if the user uploads the file successfully, the storage unit 50 correspondingly creates a folder, where all the files uploaded by the user in the current action can be stored in the folder, and the files are encrypted without revealing user information. All files uploaded by the user are saved, and subsequent query, recheck and the like are facilitated.
In summary, in the apparatus for uploading files provided in the embodiment of the present application, when receiving an upload request from a user, the receiving unit 10 receives a file that meets the upload requirement from the user through each file upload port; the determining unit 20 determines whether each file upload port receives a file meeting the upload requirement, and only when all file upload ports receive files meeting the upload requirement, the file can be successfully uploaded, thereby avoiding file miss-transfer and file error-transfer.
Referring to fig. 5, a computer device, which may be a server and whose internal structure may be as shown in fig. 5, is also provided in the embodiment of the present application. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data such as uploaded files. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of uploading files.
The processor executes the steps of the method for uploading the file:
when an uploading request of uploading files of a user is received, receiving the files which are uploaded by the user and meet the uploading requirement through each file uploading port; each file uploading port is set with uploading requirements for uploading files;
judging whether each file uploading port receives a file meeting the uploading requirement;
if not, sending a prompt of uploading failure; and if so, comprehensively evaluating the user according to all the files uploaded by the file uploading port through the uploading request and according to a preset rule.
In one embodiment, the uploading requirement includes an uploading type and an uploading quantity of the uploaded files; the step of judging whether each file uploading port receives a file meeting the uploading requirement by the processor comprises the following steps:
and judging whether each file uploading port receives files conforming to the uploading type or not, and judging whether the number of the files conforms to the uploading number or not.
In an embodiment, before the step of comprehensively evaluating the user according to all the files uploaded by the file upload port according to a preset rule, the processor includes:
and performing definition verification on the file which is received by each file uploading port and meets the uploading requirement so as to verify whether the definition of the file meets the definition requirement.
In an embodiment, after the step of performing definition verification on the file which is received by each file upload port and meets the upload requirement by the processor to verify whether the definition of the file meets the definition requirement, the method includes:
if the definition of the file does not meet the definition requirement, performing definition processing on the file; and if the definition of the file meets the definition requirement, storing the file.
In one embodiment, if the processor executes the upload request, a prompt of uploading failure is sent; if yes, after the step of comprehensively evaluating the user according to all the files uploaded by the file uploading port according to the uploading request and the preset rule, the method comprises the following steps:
and respectively encrypting the files which are received by each file uploading port and meet the uploading requirement.
In an embodiment, after the step of encrypting the file that meets the upload requirement and is received by each file upload port by the processor, the method includes:
and creating a folder corresponding to each uploading request, and storing all the files subjected to the encryption processing into the folder.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is only a block diagram of some of the structures associated with the present solution and is not intended to limit the scope of the present solution as applied to computer devices.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for uploading a file, and specifically includes:
when an uploading request of uploading files of a user is received, receiving the files which are uploaded by the user and meet the uploading requirement through each file uploading port; each file uploading port is set with uploading requirements for uploading files;
judging whether each file uploading port receives a file meeting the uploading requirement;
if not, sending a prompt of uploading failure; and if so, comprehensively evaluating the user according to all the files uploaded by the file uploading port through the uploading request and according to a preset rule.
In one embodiment, the upload request includes an upload type and an upload number of the uploaded files; the step of judging whether each file uploading port receives a file meeting the uploading requirement by the processor comprises the following steps:
and judging whether each file uploading port receives files conforming to the uploading type or not, and judging whether the number of the files conforms to the uploading number or not.
In an embodiment, before the step of comprehensively evaluating the user according to all the files uploaded by the file upload port according to a preset rule, the processor includes:
and performing definition verification on the file which is received by each file uploading port and meets the uploading requirement so as to verify whether the definition of the file meets the definition requirement.
In an embodiment, after the step of performing definition verification on the file which is received by each file upload port and meets the upload requirement by the processor to verify whether the definition of the file meets the definition requirement, the method includes:
if the definition of the file does not meet the definition requirement, performing definition processing on the file; and if the definition of the file meets the definition requirement, storing the file.
In one embodiment, if the processor executes the upload request, a prompt of uploading failure is sent; if yes, after the step of comprehensively evaluating the user according to all the files uploaded by the file uploading port according to the uploading request and the preset rule, the method comprises the following steps:
and respectively encrypting the files which are received by each file uploading port and meet the uploading requirement.
In an embodiment, after the step of encrypting the file that meets the upload requirement and is received by each file upload port by the processor, the method includes:
and creating a folder corresponding to each uploading request, and storing all the files subjected to the encryption processing into the folder.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by hardware associated with instructions of a computer program, which may be stored on a non-volatile computer-readable storage medium, and when executed, may include processes of the above embodiments of the methods. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), dual data rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus (Rambus) direct RAM (RDRAM), direct bused dynamic RAM (DRDRAM), and bused dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method 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, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only for the preferred embodiment of the present application and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are intended to be included within the scope of the present application.
Claims (10)
1. A method for uploading files is characterized by comprising the following steps:
when an uploading request of uploading files of a user is received, receiving the files which are uploaded by the user and meet the uploading requirement through each file uploading port; each file uploading port is set with uploading requirements for uploading files; the uploading requirement limits that each file uploading port can only upload appointed files;
judging whether each file uploading port receives a file meeting the uploading requirement;
if not, sending a prompt of uploading failure;
and if so, comprehensively evaluating the user according to all the files uploaded by the file uploading port through the uploading request and according to a preset rule.
2. The method for uploading files according to claim 1, wherein the uploading requirement comprises an uploading type and an uploading quantity of the uploaded files; the step of judging whether each file uploading port receives the file meeting the uploading requirement includes:
and judging whether each file uploading port receives files conforming to the uploading type or not, and judging whether the number of the files conforms to the uploading number or not.
3. The method for uploading files according to claim 1, wherein the step of comprehensively evaluating the user according to all the files uploaded by the file uploading port according to the preset rule comprises:
and performing definition verification on the file which is received by each file uploading port and meets the uploading requirement so as to verify whether the definition of the file meets the definition requirement.
4. The method for uploading files according to claim 3, wherein after the step of performing definition verification on the file which is received by each file uploading port and meets the uploading requirement to verify whether the definition of the file meets the definition requirement, the method comprises:
if the definition of the file does not meet the definition requirement, performing definition processing on the file; and if the definition of the file meets the definition requirement, storing the file.
5. The method for uploading files according to claim 1, wherein if not, a warning of uploading failure is sent out; if yes, after the step of comprehensively evaluating the user according to all the files uploaded by the file uploading port according to the uploading request and the preset rule, the method comprises the following steps:
and respectively encrypting the files which are received by each file uploading port and meet the uploading requirement.
6. The method for uploading files according to claim 5, wherein after the step of encrypting the files that are received by each file uploading port and meet the uploading requirement respectively, the method comprises:
and creating a folder corresponding to each uploading request, and storing all the files subjected to the encryption processing into the folder.
7. The method for uploading files according to any one of claims 1 to 6, wherein the step of comprehensively evaluating the user according to all the files uploaded by the file uploading port according to a preset rule comprises:
evaluating the identity information of the user according to the identity card certificate photo uploaded by the file uploading port;
or evaluating the qualification of the user according to the qualification file uploaded by the file uploading port.
8. An apparatus for uploading a file, comprising:
the receiving unit is used for receiving the file uploading request of the user for uploading the file, and respectively receiving the file which is uploaded by the user and meets the uploading requirement through each file uploading port; each file uploading port is set with uploading requirements for uploading files; the uploading requirement limits that each file uploading port can only upload appointed files;
the judging unit is used for judging whether each file uploading port receives a file meeting the uploading requirement;
the processing unit is used for sending a prompt of uploading failure if the uploading failure does not occur; and if so, comprehensively evaluating the user according to all the files uploaded by the file uploading port through the uploading request and according to a preset rule.
9. A computer device comprising a memory and a processor, the memory having stored therein a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811333554.8A CN109714385B (en) | 2018-11-09 | 2018-11-09 | Method and device for uploading files, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811333554.8A CN109714385B (en) | 2018-11-09 | 2018-11-09 | Method and device for uploading files, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109714385A CN109714385A (en) | 2019-05-03 |
CN109714385B true CN109714385B (en) | 2022-05-20 |
Family
ID=66254153
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811333554.8A Active CN109714385B (en) | 2018-11-09 | 2018-11-09 | Method and device for uploading files, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109714385B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2274942A1 (en) * | 2008-05-07 | 2011-01-19 | Chalk Media Service Corp. | Method for enabling bandwidth management for mobile content delivery |
CN102868765A (en) * | 2012-10-09 | 2013-01-09 | 乐视网信息技术(北京)股份有限公司 | Method and system for uploading files |
CN103677673A (en) * | 2013-12-23 | 2014-03-26 | Tcl集团股份有限公司 | Method and system for uploading files in classifying and batching mode |
CN104158908A (en) * | 2014-08-29 | 2014-11-19 | 北京奇虎科技有限公司 | Method and system for transmitting files based on WiFi (Wireless Fidelity) equipment |
CN106411987A (en) * | 2016-01-06 | 2017-02-15 | 平安科技(深圳)有限公司 | File uploading monitoring method and apparatus |
CN106446193A (en) * | 2016-09-29 | 2017-02-22 | 广州鹤互联网科技有限公司 | Management method and management device for signed document |
CN107707630A (en) * | 2017-09-15 | 2018-02-16 | 百度在线网络技术(北京)有限公司 | A kind of method and apparatus for file transmission |
CN108616549A (en) * | 2016-12-12 | 2018-10-02 | 北京视联动力国际信息技术有限公司 | A kind of file uploading method and file server |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
AU2006294619B2 (en) * | 2005-09-22 | 2011-10-27 | Viridistor Llc | Method and apparatus for information exchange |
-
2018
- 2018-11-09 CN CN201811333554.8A patent/CN109714385B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2274942A1 (en) * | 2008-05-07 | 2011-01-19 | Chalk Media Service Corp. | Method for enabling bandwidth management for mobile content delivery |
CN102868765A (en) * | 2012-10-09 | 2013-01-09 | 乐视网信息技术(北京)股份有限公司 | Method and system for uploading files |
CN103677673A (en) * | 2013-12-23 | 2014-03-26 | Tcl集团股份有限公司 | Method and system for uploading files in classifying and batching mode |
CN104158908A (en) * | 2014-08-29 | 2014-11-19 | 北京奇虎科技有限公司 | Method and system for transmitting files based on WiFi (Wireless Fidelity) equipment |
CN106411987A (en) * | 2016-01-06 | 2017-02-15 | 平安科技(深圳)有限公司 | File uploading monitoring method and apparatus |
CN106446193A (en) * | 2016-09-29 | 2017-02-22 | 广州鹤互联网科技有限公司 | Management method and management device for signed document |
CN108616549A (en) * | 2016-12-12 | 2018-10-02 | 北京视联动力国际信息技术有限公司 | A kind of file uploading method and file server |
CN107707630A (en) * | 2017-09-15 | 2018-02-16 | 百度在线网络技术(北京)有限公司 | A kind of method and apparatus for file transmission |
Non-Patent Citations (2)
Title |
---|
"FileUpload控件文件上传、扩容、限制文件类型及上传验证";sistrong;《博客园 https://www.cnblogs.com/sistrong-5880558/p/8390467.html》;20180131;全文 * |
"点击上传按钮,文件自动上传";何遇;《博客园 https://www.cnblogs.com/heyuxiu/p/6117800.html》;20161130;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN109714385A (en) | 2019-05-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110365670B (en) | Blacklist sharing method and device, computer equipment and storage medium | |
CN109510796B (en) | Equipment binding method and system | |
CN107733847B (en) | Method and device for platform login website, computer equipment and readable storage medium | |
CN111314306A (en) | Interface access method and device, electronic equipment and storage medium | |
CN112632581A (en) | User data processing method and device, computer equipment and storage medium | |
CN109656931B (en) | Contract data consistency verification method, device, equipment and storage medium | |
CN109412896B (en) | Method and device for testing uploading function, computer equipment and storage medium | |
US20200169415A1 (en) | System and method for high trust cloud digital signing and workflow automation in health sciences | |
US10542422B2 (en) | Data backup method, storage medium and electronic device | |
CN110224855B (en) | Registration method and device of micro service instance, computer equipment and storage medium | |
CN111191281A (en) | Data desensitization processing method and device, computer equipment and storage medium | |
CN112487490B (en) | Tamper identification method, device and medium | |
CN110688661A (en) | Method and device for preventing dynamic link library file hijacking and computer equipment | |
CN108763888B (en) | User profile processing method and device, computer equipment and storage medium | |
CN111460404A (en) | Double-recording data processing method and device, computer equipment and storage medium | |
CN111193740B (en) | Encryption method, device, decryption method, computer device and storage medium | |
CN109766483B (en) | Regular expression generation method, device, computer equipment and storage medium | |
CN110177111B (en) | Information verification method, system and device | |
CN110889131B (en) | File sharing system | |
CN109450637B (en) | Signature data management method and device of electronic perforation seal | |
CN115442143A (en) | Electronic signature method, device, equipment and readable medium | |
CN110602146A (en) | Data encryption and decryption method, readable storage medium and electronic equipment | |
CN109714385B (en) | Method and device for uploading files, computer equipment and storage medium | |
US9288358B2 (en) | Document management system, document management device, and non-transitory computer readable medium | |
JP2019519873A (en) | Computer system for generating authentication data |
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 |