CN115361375A - File uploading method and system, computer equipment and storage medium - Google Patents
File uploading method and system, computer equipment and storage medium Download PDFInfo
- Publication number
- CN115361375A CN115361375A CN202210967573.6A CN202210967573A CN115361375A CN 115361375 A CN115361375 A CN 115361375A CN 202210967573 A CN202210967573 A CN 202210967573A CN 115361375 A CN115361375 A CN 115361375A
- Authority
- CN
- China
- Prior art keywords
- terminal
- file
- page
- uploading page
- uploading
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 53
- 238000012795 verification Methods 0.000 claims description 32
- 238000004590 computer program Methods 0.000 claims description 16
- 238000010586 diagram Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 5
- 230000032683 aging Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 238000012546 transfer Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000002123 temporal effect Effects 0.000 description 2
- 230000002776 aggregation Effects 0.000 description 1
- 238000004220 aggregation Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention relates to a file uploading method, a file uploading system, computer equipment and a storage medium, wherein the file uploading method comprises the following steps: a first terminal of a login system generates a document uploading page calling certificate according to the address of the document uploading page; the file uploading page is used for uploading a file to the system under the condition that the system is not logged in; a second terminal which does not log in the system acquires the document uploading page calling certificate; the second terminal calls an address in the certificate according to the file uploading page and displays the file uploading page; the second terminal acquires a file uploaded through the displayed file uploading page and uploads the file to the server; and the server synchronizes the information of the uploaded files to the first terminal for display. The method and the device solve the problem that the files in the terminal which does not log in the system need to be transferred to the terminal which logs in the system before being uploaded when the files are uploaded, and can improve the file uploading efficiency.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a file uploading method and apparatus, a computer device, and a storage medium.
Background
Many systems used in daily life or in offices have a file uploading function, and files can be uploaded in the systems after logging in the systems through equipment. However, in some cases, the file to be uploaded is not stored in the device logged in to the system, but is in another device, or some devices are prohibited from logging in to the system due to system access restriction, so that the file to be uploaded needs to be transferred from the device not logged in to the system or the device prohibited from logging in to the system to the device logged in to the system before being uploaded to the system.
For example: an office automation system or a paperless office system of an enterprise can use a file uploading function, and various documents, chat screenshots, examination and approval materials and the like required in process approval are uploaded to the system in a file form, and the materials are sometimes stored in different devices, for example, the chat screenshots are stored on a mobile phone. Alternatively, documents may need to be collected from various staff members for aggregation during work.
In the conventional method, it is generally necessary to copy and collect files in other devices by means of tools such as a usb disk or a mobile hard disk, and then copy the files to a device logging in a system for uploading, or send files in each device to a collector through a chat tool, and then the files are collected by the collector and uploaded to the system. However, these methods are cumbersome and inefficient.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a file uploading method, system, computer device and storage medium capable of improving efficiency.
A method of file upload, the method comprising:
a first terminal of a login system generates a document uploading page calling certificate according to the address of a document uploading page; the file uploading page is used for uploading a file to the system under the condition that the system is not logged in;
a second terminal which does not log in the system acquires the document uploading page calling voucher;
the second terminal calls an address in the certificate according to the file uploading page and displays the file uploading page;
the second terminal acquires a file uploaded through the displayed file uploading page and uploads the file to the server;
and the server synchronizes the information of the uploaded files to the first terminal for displaying.
In one embodiment, the method further comprises:
a first terminal of a login system sends a key acquisition request to a server;
the server responds to the key acquisition request and sends a temporary key to the first terminal;
the step of generating a document uploading page retrieval certificate by the first terminal of the login system according to the address of the document uploading page comprises the following steps:
the first terminal generates a document uploading page calling certificate according to the temporary secret key and the address of the document uploading page;
the second terminal calls an address in the certificate according to the file uploading page, and displaying the file uploading page comprises the following steps:
and the second terminal verifies the temporary key in the document uploading page retrieval certificate, and displays the document uploading page according to the address in the document uploading page retrieval certificate after the verification is passed.
In one embodiment, the temporary key contains age limit information; the second terminal verifies the temporary key in the document uploading page retrieval certificate, and after the verification is passed, the second terminal retrieves the address in the certificate according to the document uploading page, and the displaying of the document uploading page comprises the following steps:
the second terminal verifies whether the current time limit is exceeded or not according to the time limit information in the temporary secret key;
and if the time limit is not exceeded, the verification is passed, and the second terminal calls the address in the certificate according to the file uploading page and displays the file uploading page.
In one embodiment, the temporary key includes device restriction information; the second terminal verifies the temporary key in the document uploading page retrieval certificate, and after the verification is passed, the second terminal displays the document uploading page according to the address in the document uploading page retrieval certificate, wherein the steps of:
the second terminal verifies whether the current equipment meets the condition limited by the equipment limitation information in the temporary secret key;
and if the file uploading page meets the conditions, the verification is passed, and the second terminal calls the address in the certificate according to the file uploading page and displays the file uploading page.
In one embodiment, the file upload page retrieval credential is a link; the method further comprises the following steps:
the first terminal sends the link to a second terminal which does not log in the system;
the second terminal of the non-login system acquiring the document uploading page retrieval certificate comprises:
and the second terminal which does not log in the system receives the link sent by the first terminal.
In one embodiment, the file upload page retrieval credential is a graphic code; the method further comprises the following steps:
the first terminal displays the graphic code;
the second terminal of the non-login system acquiring the document uploading page retrieval certificate comprises:
and the second terminal which does not log in the system identifies the graphic code displayed by the first terminal to obtain the address in the document uploading page calling certificate.
In one embodiment, the method further comprises:
a first terminal acquires a file uploaded by the first terminal and uploads the file to a server;
and the server synchronizes the information of the file uploaded by the first terminal to the second terminal for displaying.
A file upload system, the system comprising a first terminal that logs into the system, a second terminal that does not log into the system, and a server, wherein:
the first terminal is used for generating a document uploading page calling certificate according to the address of the document uploading page; the file uploading page is used for uploading a file to the system under the condition that the system is not logged in;
the second terminal is used for acquiring the document uploading page calling certificate;
the second terminal is also used for calling an address in the certificate according to the file uploading page and displaying the file uploading page;
the second terminal is also used for acquiring the file uploaded through the displayed file uploading page and uploading the file to the server;
and the server is used for synchronizing the information of the uploaded files to the first terminal for displaying.
In one embodiment, the server comprises a business server;
the first terminal is further configured to send a key acquisition request to the service server;
the service server is used for responding to the key acquisition request and sending a temporary key to the first terminal;
the first terminal is further used for generating a document uploading page retrieval certificate according to the temporary secret key and the address of the document uploading page;
and the second terminal is also used for verifying the temporary key in the document uploading page retrieval certificate, and displaying the document uploading page according to the address in the document uploading page retrieval certificate after the verification is passed.
In one embodiment, the server further comprises a file server;
the second terminal is also used for acquiring the file uploaded through the displayed file uploading page and uploading the file to the file server;
the file server is used for storing the uploaded files and returning information of the files to the second terminal;
the second terminal is further configured to send the information of the file to the service server;
the service server is further configured to synchronize the information of the file to the first terminal for display.
In one embodiment, the first terminal is further configured to acquire a file uploaded through the first terminal and upload the file to the file server;
the file server is further used for storing the file uploaded by the first terminal and returning the information of the file uploaded by the first terminal to the first terminal;
the first terminal is further used for sending the information of the file uploaded by the first terminal to the service server;
the business server is further used for synchronizing the information of the file uploaded by the first terminal to the second terminal for displaying.
A computer device comprising a memory and a processor, wherein the memory stores a computer program, and the computer program, when executed by the processor, causes the processor to execute the steps of the file uploading method according to the embodiments of the present application.
A computer-readable storage medium, having a computer program stored thereon, which, when executed by a processor, causes the processor to perform the steps of the file uploading method according to embodiments of the present application.
According to the file uploading method, the file uploading system, the computer equipment and the storage medium, a first terminal of a login system generates a file uploading page retrieval certificate according to an address of a file uploading page, the file uploading page is a page for uploading files to the system under the condition that the system is not logged in, a second terminal of the system which is not logged in acquires the file uploading page retrieval certificate, the second terminal retrieves the address in the certificate according to the file uploading page and displays the file uploading page, the second terminal acquires the files uploaded through the displayed file uploading page and uploads the files to a server, the server synchronizes information of the uploaded files to the first terminal for display, and therefore a user does not need to transfer the files to be uploaded from the second terminal to the first terminal in a copying or sending mode and then uploads the files, the files can be directly acquired through the second terminal, then the file uploading page is displayed, and the user can directly upload the files through the file pages displayed by the second terminal, and file uploading efficiency is improved.
Drawings
FIG. 1 is a diagram of an application environment of a file upload method in one embodiment;
FIG. 2 is a diagram of an application environment of a file upload method in another embodiment;
FIG. 3 is a flowchart illustrating a file upload method according to an embodiment;
FIG. 4 is an architecture diagram of a file upload system in one embodiment;
FIG. 5 is an architecture diagram of a file upload system in another embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment;
fig. 7 is an internal structural view of a computer device in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in 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.
In one embodiment, the file uploading method provided by the application can be applied to an application environment as shown in fig. 1. The first terminal 102 of the logged-in system, the second terminal 104 of the logged-in system and the server 106 are in communication through a network. The first terminal 102 logging in the system may generate a document uploading page calling credential according to an address of the document uploading page. The second terminal 104 that does not log in the system may obtain the document uploading page retrieval credential, display the document uploading page according to the address in the document uploading page retrieval credential, obtain the document uploaded through the displayed document uploading page and upload the document to the server 106, and the server 106 may synchronize the information of the uploaded document to the first terminal 102 for display.
The first terminal 102 may be, but is not limited to, various personal computers, laptops, smartphones, tablets and portable wearable devices, the second terminal 104 may be, but is not limited to, various personal computers, laptops, smartphones, tablets and portable wearable devices, and the server 106 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In another embodiment, the file uploading method provided by the present application can be applied to an application environment as shown in fig. 2. The first terminal 202 of the logged-in system, the second terminal 204 of the logged-in system, the service server 206 and the file server 208 are in communication via a network. The first terminal 202 logging in the system may send a key obtaining request to the service server 106, the service server 206 may send a temporary key to the first terminal 202, and the first terminal may generate a document uploading page retrieval credential according to the temporary key and an address of the document uploading page. The second terminal 204 which does not log in the system can obtain the document uploading page retrieval certificate, verify the temporary key in the document uploading page retrieval certificate, and display the document uploading page according to the address in the document uploading page retrieval certificate after the verification is passed. The second terminal 204 may acquire a file uploaded through the displayed file upload page and upload the file to the file server 208, the file server 208 may return information of the file to the second terminal 204, the second terminal may send the information of the file to the service server 206, and the service server 206 may synchronize the information of the file to the first terminal 202 for display.
The first terminal 202 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, the second terminal 204 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, the service server 206 may be implemented by an independent server or a server cluster formed by a plurality of servers, and the file server 208 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 3, a file uploading method is provided, which is described by taking the method as an example applied to the first terminal 102, the second terminal 104 and the server 106 in fig. 1, and includes the following steps:
step 302, a first terminal of a login system generates a document uploading page calling certificate according to the address of the document uploading page; the file upload page is a page for uploading a file to a system without logging in the system.
The first terminal is a terminal that has logged in to the system. The document uploading page calling certificate is a certificate used for enabling a second terminal which does not log in the system to call a document uploading page.
In one embodiment, the system may be any system that can upload files. The system can be a system used in daily life or a system used in work, such as: office automation systems or paperless office systems, and the like.
In one embodiment, the address of the file upload page may be a URL (uniform resource locator) address.
In one embodiment, the first terminal may create an address of a file upload page, and then generate a file upload page retrieval credential according to the address of the file upload page.
In one embodiment, when a user logs in a system to upload a file by using a first terminal, if the file in a second terminal which is not logged in the system needs to be uploaded to the system, the user can trigger an opposite-end uploading instruction at the first terminal, the first terminal can respond to the opposite-end uploading instruction to create an address of a file uploading page, and then a file uploading page calling certificate is generated according to the address of the file uploading page. The different-end uploading instruction is used for indicating to generate a document uploading page calling voucher.
In one embodiment, the first terminal may first send an information acquisition request to the server, and the server may send the location identifier to the first terminal in response to the information acquisition request. The first terminal can generate a document uploading page retrieval certificate according to the position identification and the address of the document uploading page. The second terminal can call the position identifier in the certificate according to the file uploading page to determine the position of the uploaded file.
In one embodiment, the document upload page retrieval credentials may be in any one of a link and a graphic code.
In one embodiment, the link may be a URL link.
In one embodiment, the first terminal may first generate a link-type file upload page calling credential, and then convert the link-type file upload page calling credential into a graphic code type to obtain the graphic code-type file upload page calling credential.
In one embodiment, the first terminal may generate a document uploading page calling certificate in a link form according to the location identifier and the address of the document uploading page. In an embodiment, the first terminal may splice the location identifier and an address of the file upload page to obtain a link-type file upload page retrieval credential. The location identifier is an identifier for indicating a location where the file is uploaded.
In one embodiment, the first terminal may generate a document uploading page calling certificate in a link form according to the location identifier, the temporary key and the address of the document uploading page. In an embodiment, the first terminal may splice the location identifier, the temporary key, and the address of the file upload page to obtain a link-type file upload page retrieval credential.
In an embodiment, the first terminal may perform splicing by using the query parameter (a mode of carrying a parameter) of the first terminal.
And step 304, the second terminal which does not log in the system acquires the document uploading page calling certificate.
The second terminal is a terminal that does not log in the system.
In one embodiment, the number of second terminals may be at least one (i.e., one or more).
In one embodiment, the first terminal may send the file upload page call voucher to the second terminal, and the second terminal may receive the file upload page call voucher sent by the first terminal.
In another embodiment, the first terminal may present the document upload page retrieval credential, and the second terminal may identify the document upload page retrieval credential presented by the first terminal.
And step 306, the second terminal calls the address in the certificate according to the file uploading page and displays the file uploading page.
In one embodiment, the file upload page may be in the form of a World Wide Web (www) page. The address may be a web address of a web page.
In an embodiment, the document uploading page retrieval certificate may further include a temporary key, the second terminal may verify the temporary key, and after the verification is passed, the document uploading page is displayed according to an address in the document uploading page retrieval certificate.
In one embodiment, the file upload page displayed by the second terminal may include information of the uploaded file. The uploaded file may be a file already uploaded by the first terminal, or a file already uploaded by a second terminal other than the second terminal.
And 308, the second terminal acquires the file uploaded through the displayed file uploading page and uploads the file to the server.
Specifically, the user may upload the file through a file upload page displayed by the second terminal. The second terminal may upload the file uploaded by the user to the server.
And 310, the server synchronizes the information of the uploaded files to the first terminal for displaying.
In one embodiment, the information of the file may include at least one of a file name, a storage address, a file size, and a file format of the file.
In one embodiment, the server may store the uploaded file, and synchronize information of the file to the first terminal and the second terminal for presentation.
In another embodiment, the second terminal may upload a file uploaded by the user to the file server, the file server may store the uploaded file and return information of the file to the second terminal for display, the second terminal may send the information of the file to the service server, and the service server may synchronize the information of the file to the first terminal for display. If the number of the second terminals is multiple, the service server can synchronize the information of the files to the second terminals except the second terminal which uploads the files for display.
In one embodiment, the first terminal may present the information of the file in a page used for uploading the file in the system, and the second terminal may present the information of the file in a file uploading page.
In one embodiment, the server may synchronize information of the currently uploaded files to the first terminal and the second terminal for presentation in real time. In another embodiment, the server may synchronize information of a currently uploaded file to the first terminal and the second terminal for presentation at preset time intervals.
For example: the user logs in the system to upload files by using a computer (namely, a first terminal), and some files to be uploaded are stored in a mobile phone (namely, a second terminal) of the user, for example, some chat record screenshots are generally stored in the mobile phone.
For another example: in a working scene, files need to be collected from a plurality of workers, the collectors do not need to collect the files from the workers and gather the files and upload the files, but can directly enable the workers to use respective terminals to obtain file uploading page calling certificates, display file uploading pages and upload the files through the file uploading pages of the terminals.
According to the file uploading method, a first terminal of a login system generates a file uploading page retrieval certificate according to an address of a file uploading page, the file uploading page is a page for uploading files to the system under the condition that the system is not logged in, a second terminal of the system is not logged in acquires the file uploading page retrieval certificate, the second terminal displays the file uploading page according to the address in the file uploading page retrieval certificate, the second terminal acquires the files uploaded through the displayed file uploading page and uploads the files to a server, the server synchronizes information of the uploaded files to the first terminal for display, therefore, a user does not need to transfer the files needing to be uploaded to the first terminal from the second terminal in a copying or sending mode and then uploads the files, the files can be directly uploaded through the second terminal to retrieve the file uploading certificate and then display the file uploading page, and the user can directly upload the files through the file uploading page displayed by the second terminal, and the file uploading efficiency is improved. In addition, under the condition that files need to be collected from multiple people, all people can directly obtain file uploading page calling certificates through own terminals (namely second terminals) and then display file uploading pages, so that the files are directly uploaded through the own terminals, the files in all people's terminals do not need to be collected and gathered and then uploaded, multi-terminal synchronous file uploading is achieved, and file uploading efficiency is improved.
In one embodiment, the method further comprises: a first terminal of a login system sends a key acquisition request to a server; the server responds to the key acquisition request and sends a temporary key to the first terminal; the method for generating the document uploading page retrieval certificate by the first terminal of the login system according to the address of the document uploading page comprises the following steps: the first terminal generates a document uploading page calling certificate according to the temporary key and the address of the document uploading page; the second terminal calls addresses in the certificate according to the file uploading page, and the file uploading page is displayed and comprises the following steps: and the second terminal verifies the temporary key in the document uploading page retrieval certificate, and after the verification is passed, the address in the document uploading page retrieval certificate is called according to the document uploading page, and the document uploading page is displayed.
The key obtaining request is a request for obtaining a temporary key. And the temporary key (namely, the bill) is used for verifying the legality of the processing of the second terminal display file uploading page.
In an embodiment, when a user uses a first terminal to log in a system to upload a file, if the file in a second terminal which does not log in the system needs to be uploaded to the system, the user may trigger an alien-end upload instruction at the first terminal, the first terminal may respond to the alien-end upload instruction, create an address of a file upload page, and send a key acquisition request to a server, and the server may respond to the key acquisition request and send a temporary key to the first terminal. The first terminal can generate a document uploading page retrieval certificate according to the temporary key and the address of the document uploading page. The second terminal can upload the temporary key in the page calling certificate by the certificate, and after the verification is passed, the address in the certificate is called according to the file uploading page, and the file uploading page is displayed. And if the verification is not passed, the second terminal does not display the file uploading page.
In one embodiment, the temporary key may include at least one of age restriction information, device restriction information, and the like.
In one embodiment, the first terminal may send an information acquisition request to the server, and the server may send the location identifier and the temporary key to the first terminal in response to the information acquisition request. The first terminal can generate a document uploading page retrieval certificate according to the position identification, the temporary key and the address of the document uploading page. The second terminal can obtain the position identification in the voucher according to the file uploading page, and the position of the uploaded file is determined. The second terminal can verify the temporary key in the document uploading page calling certificate, and after the verification is passed, the address in the document uploading page calling certificate is used, the document uploading page is displayed, and the document is uploaded to the position corresponding to the position identification.
In the above embodiment, the document uploading page retrieval certificate includes the temporary key, and the second terminal displays the document uploading page after the temporary key passes verification, so that the legality of the processing of displaying the document uploading page by the second terminal can be verified, and the document uploading security is improved.
In one embodiment, the temporal key includes age limit information; the second terminal verifies the temporary key in the document uploading page retrieval certificate, after the verification is passed, retrieves the address in the certificate according to the document uploading page, and the displaying of the document uploading page comprises the following steps: the second terminal verifies whether the current time limit is exceeded or not according to the time limit information in the temporary secret key; and if the time limit is not exceeded, the verification is passed, and the second terminal calls the address in the certificate according to the file uploading page and displays the file uploading page.
The aging limitation information is used for limiting the effective aging of the file uploading page.
In one embodiment, the age limit information may be a maximum duration of the limit. Such as: the aging limit information may be within 3 days or within 7 days, or the like.
It can be understood that if the time limit is exceeded, the file uploading page fails, and the second terminal cannot display the file uploading page and upload the file through the file uploading page; and if the time limit is not exceeded, the second terminal can display the file uploading page and upload the file through the file uploading page.
In an embodiment, the second terminal may compare the current creation time of the file upload page with the time limit according to the time limit information in the temporary key, and if the current creation time of the file upload page does not exceed the time limit, the verification is passed, and the second terminal may call an address in the certificate according to the file upload page and display the file upload page.
In one embodiment, if the time limit is exceeded, the verification fails, the second terminal does not display the file upload page, and displays a prompt message that the page has failed.
In the embodiment, the effective timeliness of the file uploading page is limited through the timeliness limiting information in the temporary key, and the file uploading safety is improved.
In one embodiment, the temporary key includes device restriction information; the second terminal verifies the temporary key in the document uploading page retrieval certificate, after the verification is passed, retrieves the address in the certificate according to the document uploading page, and the displaying of the document uploading page comprises the following steps: the second terminal verifies whether the current equipment meets the condition limited by the equipment limitation information in the temporary secret key; and if the condition is met, the verification is passed, and the second terminal calls the address in the certificate according to the file uploading page and displays the file uploading page.
The device limitation information is information for limiting a device for displaying a file uploading page.
In one embodiment, the device limitation information may include at least one of device number limitation information, device identity limitation information, and the like. The device number limitation information is information for limiting the number of devices for displaying the file upload page. The device identity restriction information is information for restricting the identity of the device displaying the file upload page.
In an embodiment, the device limitation information includes device number limitation information, and the second terminal may verify whether the number of devices (including the device of the second terminal) currently presenting the uploaded page of the document meets the number limited by the device number limitation information in the temporary key, and if the number limit is not exceeded, the verification is passed. If the number limit is exceeded, the verification fails. For example: the limitation in the device quantity limitation information is not more than 5 devices at most to call up a file upload page.
In one embodiment, the device restriction information includes device identity restriction information, and the second terminal may verify whether the identity of the second terminal matches the identity allowed by the device identity restriction information in the temporary key, and if yes, the verification is passed. If yes, the verification is failed. For example: and limiting the equipment corresponding to the specified identification not to call the file uploading page.
In the embodiment, the device identity of the page uploaded by the file is limited through the device limitation information in the temporary secret key, so that the file uploading safety is improved, the number of devices for uploading the page uploaded by the file is limited, the system overload is avoided, and the system operation efficiency is improved.
In one embodiment, the file upload page call credential is a link; the method further comprises the following steps: the first terminal sends the link to a second terminal which does not log in the system; the second terminal of the non-login system acquires the document uploading page calling certificate and comprises the following steps: and the second terminal which does not log in the system receives the link sent by the first terminal.
In one embodiment, the link may be a URL (Uniform resource locator) link.
In one embodiment, the first terminal may send the link to the second terminal by way of an instant messaging application or the like.
In one embodiment, the document uploading page calling certificate in the form of a link includes an address of the document uploading page, and the second terminal may extract the address of the document uploading page from the received link.
In one embodiment, the file upload page invocation voucher in the form of a link can contain an address, a position identifier and a temporary key of the file upload page. The second terminal may extract the address, the location identification, and the temporary key of the file upload page from the received link.
In the embodiment, the second terminal can directly open the file uploading page through the link sent by the first terminal, the user can directly upload the file through the file uploading page displayed by the second terminal, the file of the second terminal does not need to be transferred to the first terminal and uploaded, the second terminal does not need to log in the system, and the file uploading efficiency is improved.
In one embodiment, the file upload page-calling voucher is a graphical code; the method further comprises the following steps: the first terminal displays the graphic code; the second terminal of the non-login system acquires the document uploading page calling certificate and comprises the following steps: and the second terminal which does not log in the system identifies the graphic code displayed by the first terminal to obtain the address in the file uploading page calling certificate.
In one embodiment, the graphic code may be any one of a two-dimensional code, a bar code, and the like.
In one embodiment, the first terminal may display a graphic code, and the second terminal may recognize the graphic code displayed by the first terminal through the graphic code recognition control. Such as: the user scans the two-dimensional code displayed by the first terminal by using the mobile phone (namely, the second terminal).
In one embodiment, the document uploading page retrieval certificate includes an address of a document uploading page, and the second terminal can identify the graphic code displayed by the first terminal to obtain the address of the document uploading page.
In one embodiment, the document uploading page calling certificate includes an address, a location identifier and a temporary key of the document uploading page, and the second terminal can identify the graphic code displayed by the first terminal to obtain the address, the location identifier and the temporary key of the document uploading page.
In the embodiment, the second terminal can directly identify the file uploading page in the form of the graphic code displayed by the first terminal to call the certificate, so that the file uploading page is displayed, a user can directly upload the file through the file uploading page displayed by the second terminal, the file at the second terminal does not need to be transferred to the first terminal for uploading, the file at the second terminal does not need to log in the system through the second terminal, and the file uploading efficiency is improved.
In one embodiment, the method further comprises: the method comprises the steps that a first terminal obtains a file uploaded through the first terminal and uploads the file to a server; and the server synchronizes the information of the file uploaded by the first terminal to the second terminal for displaying.
Specifically, the user can also upload files through a first terminal of the login system, the first terminal can upload the files to the server, and the server can synchronize information of the files uploaded by the first terminal to a second terminal for display.
In one embodiment, the first terminal may acquire a file uploaded by the first terminal and upload the file to the file server, the file server may return information of the file uploaded by the first terminal to the first terminal for display, the first terminal may send the information of the file uploaded by the first terminal to the service server, and the service server may synchronize the information of the file uploaded by the first terminal to the second terminal for display.
In the embodiment, the file uploading can be performed by the first terminal of the login system in addition to the second terminal of the non-login system through the file uploading page, so that the file is uploaded synchronously at multiple ends, and the file uploading efficiency is improved.
It should be understood that, although the steps in the flowcharts of the present application are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not limited to being performed in the exact order illustrated and, unless explicitly stated herein, may be performed in other orders. Moreover, at least a part of the steps in each flowchart of the present application may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
In one embodiment, as shown in fig. 4, there is provided a file upload system, including: a first terminal 402 logged into the system, a second terminal 404 not logged into the system, and a server 406, wherein:
the first terminal 402 is configured to generate a document uploading page retrieval credential according to an address of a document uploading page; the file upload page is a page for uploading a file to a system without logging in the system.
And the second terminal 404 is configured to obtain a document uploading page retrieval credential.
The second terminal 404 is further configured to invoke an address in the certificate according to the file upload page, and display the file upload page.
The second terminal 404 is further configured to obtain a file uploaded through the displayed file upload page and upload the file to the server 406.
And the server 406 is configured to synchronize the information of the uploaded file to the first terminal 402 for displaying.
In one embodiment, server 406 includes a traffic server 4062.
The first terminal 402 is further configured to send a key obtaining request to the service server 4062.
The service server 4062 is configured to send the temporary key to the first terminal 402 in response to the key obtaining request.
The first terminal 402 is further configured to generate a document uploading page retrieval credential according to the temporary key and the address of the document uploading page.
The second terminal 404 is further configured to verify the temporary key in the document uploading page retrieval credential, and after the verification is passed, display the document uploading page according to the address in the document uploading page retrieval credential.
In one embodiment, the temporal key includes age limit information. The second terminal 404 is further configured to verify whether the validity limit is currently exceeded according to the validity limit information in the temporary key; if the time limit is not exceeded, the verification is passed, the address in the certificate is called according to the file uploading page, and the file uploading page is displayed.
In one embodiment, the temporary key includes device restriction information. The second terminal 404 is further configured to verify whether the current device meets the condition limited by the device limitation information in the temporary key; and if the condition is met, the verification is passed, and the second terminal calls the address in the certificate according to the file uploading page and displays the file uploading page.
In one embodiment, the file upload paged credential is a link. The first terminal 402 is also arranged to send a link to a second terminal 404 that is not logged on to the system. The second terminal 404 is also configured to receive the link sent by the first terminal 402.
In one embodiment, the file upload paged access credential is a graphical code. The first terminal 402 is also used to present graphic codes. The second terminal 404 is further configured to identify the graphic code displayed by the first terminal 402, and obtain an address in the document uploading page calling voucher.
In one embodiment, as shown in FIG. 5, server 406 also includes file server 4064.
The second terminal 404 is further configured to obtain a file uploaded through the displayed file upload page and upload the file to the file server 4064.
The file server 4064 is configured to store the uploaded file, and return information of the file to the second terminal 404.
The second terminal 404 is further configured to send the information of the file to the service server 4062.
The service server 4062 is further configured to synchronize the information of the file to the first terminal 402 for displaying.
In one embodiment, the first terminal 402 is further configured to obtain the file uploaded by the first terminal 402 and upload the file to the file server 4064.
The file server 4064 is further configured to store the file uploaded by the first terminal 402, and return information of the file uploaded by the first terminal 402 to the first terminal 402.
The first terminal 402 is further configured to send information of the file uploaded by the first terminal 402 to the service server 4062.
The service server 4062 is further configured to synchronize the information of the file uploaded by the first terminal 402 to the second terminal 404 for displaying.
In the file uploading system, a first terminal of a login system generates a file uploading page retrieval certificate according to an address of a file uploading page, the file uploading page is a page for uploading a file to the system under the condition that the system is not logged in, a second terminal of the system is not logged in acquires the file uploading page retrieval certificate, the second terminal displays the file uploading page according to the address in the file uploading page retrieval certificate, the second terminal acquires the file uploaded through the displayed file uploading page and uploads the file to a server, the server synchronizes information of the uploaded file to the first terminal for display, so that a user does not need to transfer the file to be uploaded from the second terminal to the first terminal in a copying or sending mode and then upload the file, the file uploading certificate can be directly acquired through the second terminal and then the file uploading page is displayed, and the user can directly upload the file through the file uploading page displayed by the second terminal, and the file uploading efficiency is improved. In addition, under the condition that files need to be collected from multiple people, all people can directly obtain file uploading page calling certificates through own terminals (namely second terminals) and then display file uploading pages, so that the files are directly uploaded through the own terminals, the files in all people's terminals do not need to be collected and gathered and then uploaded, and the file uploading efficiency is improved.
For specific limitations of the file uploading system, reference may be made to the above limitations of the file uploading method, which are not described herein again. The modules in the file uploading system can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing 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 operating system and the computer program to run on the non-volatile storage medium. The database of the computer device is used for storing data. 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 file upload method.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 7. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing 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 and a computer program. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The communication interface of the computer device is used for communicating with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a file upload method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the configurations shown in fig. 6 and 7 are merely block diagrams of portions of configurations related to aspects of the present application, and do not constitute limitations on the computing devices to which aspects of the present application may be applied, as particular computing devices may include more or less components than shown, or combine certain components, or have a different arrangement of components.
In an embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), for example.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is specific and detailed, but not to be understood as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent application shall be subject to the appended claims.
Claims (13)
1. A file uploading method, the method comprising:
a first terminal of a login system generates a document uploading page calling certificate according to the address of the document uploading page; the file uploading page is used for uploading a file to the system under the condition that the system is not logged in;
a second terminal which does not log in the system acquires the document uploading page calling certificate;
the second terminal calls an address in the certificate according to the file uploading page and displays the file uploading page;
the second terminal acquires a file uploaded through the displayed file uploading page and uploads the file to the server;
and the server synchronizes the information of the uploaded files to the first terminal for display.
2. The method of claim 1, further comprising:
a first terminal of a login system sends a key acquisition request to a server;
the server responds to the key acquisition request and sends a temporary key to the first terminal;
the step of generating a document uploading page retrieval certificate by the first terminal of the login system according to the address of the document uploading page comprises the following steps:
the first terminal generates a document uploading page calling certificate according to the temporary key and the address of the document uploading page;
the second terminal calls an address in the certificate according to the file uploading page, and displaying the file uploading page comprises the following steps:
and the second terminal verifies the temporary key in the document uploading page retrieval certificate, and displays the document uploading page according to the address in the document uploading page retrieval certificate after the verification is passed.
3. The method of claim 2, wherein the temporary key includes age restriction information; the second terminal verifies the temporary key in the document uploading page retrieval certificate, and after the verification is passed, the second terminal displays the document uploading page according to the address in the document uploading page retrieval certificate, wherein the steps of:
the second terminal verifies whether the current time limit is exceeded or not according to the time limit information in the temporary secret key;
and if the time limit is not exceeded, the verification is passed, and the second terminal calls the address in the certificate according to the file uploading page and displays the file uploading page.
4. The method of claim 2, wherein the temporary key includes device restriction information; the second terminal verifies the temporary key in the document uploading page retrieval certificate, and after the verification is passed, the second terminal retrieves the address in the certificate according to the document uploading page, and the displaying of the document uploading page comprises the following steps:
the second terminal verifies whether the current equipment meets the condition limited by the equipment limitation information in the temporary secret key;
and if the condition is met, the verification is passed, and the second terminal calls the address in the certificate according to the file uploading page and displays the file uploading page.
5. The method of claim 1, wherein the file upload paged credential is a link; the method further comprises the following steps:
the first terminal sends the link to a second terminal which does not log in the system;
the second terminal of the non-login system acquiring the document uploading page retrieval certificate comprises:
and the second terminal which does not log in the system receives the link sent by the first terminal.
6. The method of claim 1, wherein the file upload paged access credential is a graphical code; the method further comprises the following steps:
the first terminal displays the graphic code;
the second terminal of the non-login system acquiring the document uploading page retrieval certificate comprises:
and the second terminal which does not log in the system identifies the graphic code displayed by the first terminal to obtain an address in the document uploading page calling certificate.
7. The method of claim 1, further comprising:
a first terminal acquires a file uploaded by the first terminal and uploads the file to a server;
and the server synchronizes the information of the file uploaded by the first terminal to the second terminal for displaying.
8. A file uploading system, comprising a first terminal which logs in a system, a second terminal which does not log in the system, and a server, wherein:
the first terminal is used for generating a document uploading page calling certificate according to the address of the document uploading page; the file uploading page is used for uploading a file to the system under the condition that the system is not logged in;
the second terminal is used for acquiring the document uploading page calling voucher;
the second terminal is also used for calling an address in the certificate according to the file uploading page and displaying the file uploading page;
the second terminal is also used for acquiring the file uploaded through the displayed file uploading page and uploading the file to the server;
and the server is used for synchronizing the information of the uploaded files to the first terminal for displaying.
9. The system of claim 8, wherein the server comprises a business server;
the first terminal is further configured to send a key acquisition request to the service server;
the service server is used for responding to the key acquisition request and sending a temporary key to the first terminal;
the first terminal is further used for generating a document uploading page retrieval certificate according to the temporary secret key and the address of the document uploading page;
and the second terminal is also used for verifying the temporary key in the document uploading page retrieval certificate, and displaying the document uploading page according to the address in the document uploading page retrieval certificate after the verification is passed.
10. The system of claim 9, wherein the server further comprises a file server;
the second terminal is also used for acquiring the file uploaded through the displayed file uploading page and uploading the file to the file server;
the file server is used for storing the uploaded files and returning the information of the files to the second terminal;
the second terminal is further configured to send the information of the file to the service server;
the service server is further configured to synchronize the information of the file to the first terminal for display.
11. The system according to claim 10, wherein the first terminal is further configured to obtain the file uploaded by the first terminal and upload the file to the file server;
the file server is further used for storing the file uploaded by the first terminal and returning the information of the file uploaded by the first terminal to the first terminal;
the first terminal is further used for sending the information of the file uploaded by the first terminal to the service server;
the business server is further used for synchronizing the information of the file uploaded by the first terminal to the second terminal for displaying.
12. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
13. 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 |
---|---|---|---|
CN202210967573.6A CN115361375A (en) | 2022-08-12 | 2022-08-12 | File uploading method and system, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210967573.6A CN115361375A (en) | 2022-08-12 | 2022-08-12 | File uploading method and system, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115361375A true CN115361375A (en) | 2022-11-18 |
Family
ID=84033639
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210967573.6A Pending CN115361375A (en) | 2022-08-12 | 2022-08-12 | File uploading method and system, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115361375A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103078868A (en) * | 2013-01-15 | 2013-05-01 | 广州多益网络科技有限公司 | Application method and system of two-dimension code |
CN104869128A (en) * | 2014-02-20 | 2015-08-26 | 阿里巴巴集团控股有限公司 | Method of uploading form attachment, system of uploading form attachment and web server |
CN108154365A (en) * | 2017-12-19 | 2018-06-12 | 恒宝股份有限公司 | A kind of safety equipment for generating dynamic two-dimension code, method and system |
CN108363809A (en) * | 2018-03-09 | 2018-08-03 | 江苏科建教育软件有限责任公司 | A method of in PC client information input interface upload pictures |
CN108574717A (en) * | 2017-04-10 | 2018-09-25 | 北京金山云网络技术有限公司 | A kind of cross-terminal file uploading method, apparatus and system |
CN110875932A (en) * | 2018-08-29 | 2020-03-10 | 阿里巴巴集团控股有限公司 | File uploading method, device and system |
CN111291287A (en) * | 2020-01-19 | 2020-06-16 | 腾讯科技(深圳)有限公司 | Multimedia file uploading method and device and computer equipment |
CN112804317A (en) * | 2021-01-04 | 2021-05-14 | 北京艺源酷科技有限公司 | Method and device for uploading pictures of mobile terminal |
-
2022
- 2022-08-12 CN CN202210967573.6A patent/CN115361375A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103078868A (en) * | 2013-01-15 | 2013-05-01 | 广州多益网络科技有限公司 | Application method and system of two-dimension code |
CN104869128A (en) * | 2014-02-20 | 2015-08-26 | 阿里巴巴集团控股有限公司 | Method of uploading form attachment, system of uploading form attachment and web server |
CN108574717A (en) * | 2017-04-10 | 2018-09-25 | 北京金山云网络技术有限公司 | A kind of cross-terminal file uploading method, apparatus and system |
CN108154365A (en) * | 2017-12-19 | 2018-06-12 | 恒宝股份有限公司 | A kind of safety equipment for generating dynamic two-dimension code, method and system |
CN108363809A (en) * | 2018-03-09 | 2018-08-03 | 江苏科建教育软件有限责任公司 | A method of in PC client information input interface upload pictures |
CN110875932A (en) * | 2018-08-29 | 2020-03-10 | 阿里巴巴集团控股有限公司 | File uploading method, device and system |
CN111291287A (en) * | 2020-01-19 | 2020-06-16 | 腾讯科技(深圳)有限公司 | Multimedia file uploading method and device and computer equipment |
CN112804317A (en) * | 2021-01-04 | 2021-05-14 | 北京艺源酷科技有限公司 | Method and device for uploading pictures of mobile terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110209652B (en) | Data table migration method, device, computer equipment and storage medium | |
US10063620B2 (en) | Information sharing method and system | |
JP2015528947A (en) | Method and system for secure communication of personal information | |
CN110908778B (en) | Task deployment method, system and storage medium | |
CN108418797B (en) | Webpage access method and device, computer equipment and storage medium | |
CN111970236A (en) | Cross-network data transmission method and device | |
WO2022095518A1 (en) | Automatic interface test method and apparatus, and computer device and storage medium | |
CN111586119B (en) | Integrated cloud storage system and storage method thereof | |
US20200257813A1 (en) | Digital Data Processing System For Efficiently Storing, Moving, And/Or Processing Data Across A Plurality of Computing Clusters | |
CN113064562A (en) | Man-machine interaction printing method and system based on block chain | |
CN113609147B (en) | Data sharing method and device and electronic equipment | |
CN112817816B (en) | Embedded point processing method and device, computer equipment and storage medium | |
CN109040284B (en) | Information display and information push method, device, equipment and storage medium | |
WO2021169469A1 (en) | Voiceprint data processing method and apparatus, computer device, and storage medium | |
CN111400684B (en) | Electronic license information acquisition method, system, device, equipment and storage medium | |
CN114448722B (en) | Cross-browser login method and device, computer equipment and storage medium | |
CN115361375A (en) | File uploading method and system, computer equipment and storage medium | |
CN114143308A (en) | File uploading information processing method and device, computer equipment and storage medium | |
CN108537050B (en) | Service data transfer method and related device | |
CN113873450A (en) | Short message configuration method and device, computer equipment and storage medium | |
CN113064563A (en) | Printing method based on block chain | |
CN111209546A (en) | Online multi-person identity authentication method, system and device and identity authentication equipment | |
CN111835852B (en) | Method for transmitting data between WEB page and FTP server and related equipment thereof | |
CN115604041B (en) | Security agent method, system, apparatus, computer device, and storage medium | |
JP2008211515A (en) | Automatic login system using mobile telephone |
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 |