CN112532730B - Picture uploading system and method - Google Patents

Picture uploading system and method Download PDF

Info

Publication number
CN112532730B
CN112532730B CN202011382224.5A CN202011382224A CN112532730B CN 112532730 B CN112532730 B CN 112532730B CN 202011382224 A CN202011382224 A CN 202011382224A CN 112532730 B CN112532730 B CN 112532730B
Authority
CN
China
Prior art keywords
picture
uploading
uploaded
target link
external client
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
Application number
CN202011382224.5A
Other languages
Chinese (zh)
Other versions
CN112532730A (en
Inventor
张钦
张宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Hongmei Intelligent Technology Co Ltd
Original Assignee
Sichuan Hongmei Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Hongmei Intelligent Technology Co Ltd filed Critical Sichuan Hongmei Intelligent Technology Co Ltd
Priority to CN202011382224.5A priority Critical patent/CN112532730B/en
Publication of CN112532730A publication Critical patent/CN112532730A/en
Application granted granted Critical
Publication of CN112532730B publication Critical patent/CN112532730B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Abstract

The invention provides a picture uploading system and a method, wherein the system comprises: the system component building module is used for installing a Tomcat container on the server and deploying the picture uploading system in the Tomcat container to generate a target link address, wherein the Tomcat container provides a system operating environment for the picture uploading system; the system address loading module is used for loading a target link address by using an iframe tag aiming at the uploading position of a picture to be uploaded in the hypertext markup language html code so as to enter a webpage corresponding to the target link address to upload the picture to be uploaded; the picture parameter processing module is used for sending at least one picture parameter of the picture to be uploaded to an external client side, so that the external client side can obtain the at least one picture parameter of the picture to be uploaded through a preset callback function of the picture to be uploaded. According to the scheme, multiple pictures can be uploaded simultaneously.

Description

Picture uploading system and method
Technical Field
The invention relates to the technical field of information engineering, in particular to a picture uploading system and a picture uploading method.
Background
With the development of the Web technology and the Internet, more and more websites support users to upload pictures to share their lives or upload custom head portrait pictures. When a browser is used to upload pictures, an input tag in a Web page is typically hijacked dynamically by analyzing the opened Web page, so that a picture selected in the browser is uploaded to the Web page through an Application Programming Interface (API), thereby implementing uploading of the picture.
Chinese patent application No. 201410229038.6 discloses a method, a system and a browser for uploading pictures: when an instruction of uploading pictures in an opened WEB page is received, starting a picture selection process of a browser through a file uploading notification interface preset in a browser program; after the picture selection is finished, acquiring corresponding picture data; and transmitting the picture data into the WEB page.
As can be seen from the above description, the prior art only protects the selection of pictures and the WEB page uploading technology, and cannot realize the simultaneous uploading of multiple pictures.
Disclosure of Invention
The embodiment of the invention provides a picture uploading system and method, which can realize the simultaneous uploading of multiple pictures.
In a first aspect, an embodiment of the present invention provides an image uploading system, including:
the system component building module is used for installing a Tomcat container on a server and deploying the picture uploading system in the Tomcat container to generate a target link address, wherein the Tomcat container provides a system running environment for the picture uploading system;
the system address loading module is used for loading the target link address by utilizing an iframe tag aiming at the uploading position of the picture to be uploaded in the hypertext markup language html code so as to enter a webpage corresponding to the target link address to upload the picture to be uploaded;
the picture parameter processing module is used for sending at least one picture parameter of the picture to be uploaded to an external client side, so that the external client side can obtain the at least one picture parameter of the picture to be uploaded through a preset callback function of the picture to be uploaded.
Preferably, the first and second electrodes are formed of a metal,
further comprising: the picture processing module is to be uploaded to the picture processing module,
and the to-be-uploaded picture processing module is used for adding the picture operation of the external client into the thread pool of the picture uploading system after entering the webpage corresponding to the target link address, and returning the picture uploading progress to the external client, so that the external client can obtain the uploading progress of the to-be-uploaded picture.
Preferably, the first and second electrodes are formed of a metal,
the system component building module is further used for configuring prompt information of uploading quantity limitation, picture uploading mode, size limitation of a single picture, whether multi-picture uploading is supported and uploading failure in the picture uploading system.
Preferably, the first and second electrodes are formed of a metal,
the picture uploading mode comprises the following steps: concurrent upload and serial upload.
Preferably, the first and second electrodes are formed of a metal,
the at least one picture parameter comprises: the picture file name, the picture uploading time, the uploading result, the picture storage address, the picture size and the picture format.
In a second aspect, an embodiment of the present invention provides a picture uploading method, including:
utilizing a system component building module, and installing a Tomcat container on a server;
deploying the picture uploading system in the Tomcat container by using the system component building module to generate a target link address, wherein the Tomcat container provides a system operating environment for the picture uploading system;
loading the target link address by using an iframe label aiming at the uploading position of the picture to be uploaded in the hypertext markup language html code by using a system address loading module so as to enter a webpage corresponding to the target link address to upload the picture to be uploaded;
and sending at least one picture parameter of the picture to be uploaded to an external client by using a picture parameter processing module, so that the external client can acquire the at least one picture parameter of the picture to be uploaded through a preset callback function of the picture to be uploaded.
Preferably, the first and second electrodes are formed of a metal,
after the loading the target link address by using the iframe tag so as to enter the webpage corresponding to the target link address to upload the picture to be uploaded, before the sending at least one picture parameter of the picture to be uploaded to an external client by using the picture parameter processing module, the method further includes:
adding the picture operation of the external client into a thread pool of the picture uploading system after entering the webpage corresponding to the target link address by using a picture processing module to be uploaded;
and returning the picture uploading progress to the external client by using the picture processing module to be uploaded so that the external client can acquire the uploading progress of the picture to be uploaded.
Preferably, the first and second electrodes are formed of a metal,
after the using the system component building module and deploying the picture uploading system in the Tomcat container, before the using a system address loading module and aiming at the uploading position of the picture to be uploaded in the html code, and using an iframe tag to load the target link address, the method further includes:
and configuring the uploading quantity limit, the picture uploading mode, the size limit of a single picture, whether multi-picture uploading is supported and prompt information of uploading failure in the picture uploading system by using the system component building module.
Preferably, the first and second electrodes are formed of a metal,
the picture uploading mode comprises the following steps: concurrent upload and serial upload.
Preferably, the first and second electrodes are formed of a metal,
the at least one picture parameter comprises: the picture file name, the picture uploading time, the uploading result, the picture storage address, the picture size and the picture format.
The embodiment of the invention provides a picture uploading system and a picture uploading method, a user sometimes needs to upload multiple pictures simultaneously in the picture uploading process, and the prior art cannot realize the simultaneous uploading of the multiple pictures, so that a target link address can be set at a server end in order to meet the requirement of the user and realize the simultaneous uploading of the multiple pictures, so that an external client can load the target link address at a position where the picture is required to be uploaded in an html code, and can jump to a picture uploading system to upload the pictures. Based on this, firstly, component construction needs to be performed on the picture uploading system, a Tomcat container can be deployed on the server by using a system component construction module, and the picture uploading system is deployed in the Tomcat container, and the Tomcat container can provide a system operating environment for the picture uploading system. Then, the external client side can load a target link address by using an iframe tag in the hypertext markup language html code aiming at the uploading position of the picture to be uploaded, enters a webpage corresponding to the target link address to upload the picture to be uploaded, and simultaneously can set a callback function for uploading the picture at the position in the html code where the picture is required to be uploaded so as to obtain at least one picture parameter of the picture to be uploaded. By the mode, the simultaneous uploading of multiple pictures can be realized when the user uploads the pictures.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic diagram of a picture uploading system according to an embodiment of the present invention;
fig. 2 is a schematic diagram of another picture uploading system provided in an embodiment of the present invention;
fig. 3 is a flowchart of a picture uploading method according to an embodiment of the present invention;
fig. 4 is a flowchart of another method for uploading a picture according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a picture uploading system, including:
the system component building module 101 is configured to install a Tomcat container on a server, and deploy a picture uploading system in the Tomcat container to generate a target link address, where the Tomcat container provides a system operating environment for the picture uploading system;
the system address loading module 102 is configured to load a target link address by using an iframe tag for an uploading position of a picture to be uploaded in a hypertext markup language html code, so that the picture to be uploaded can be uploaded by entering a webpage corresponding to the target link address;
the picture parameter processing module 103 is configured to send at least one picture parameter of a picture to be uploaded to an external client, so that the external client can obtain the at least one picture parameter of the picture to be uploaded through a preset callback function of the picture to be uploaded.
In the embodiment of the invention, a user sometimes needs to upload multiple pictures simultaneously in the process of uploading the pictures, but the prior art cannot realize simultaneous uploading of multiple pictures, so that in order to meet the requirements of the user and realize simultaneous uploading of multiple pictures, a target link address can be set at a server side, so that an external client side loads the target link address at a position where the picture uploading needs to be carried out in an html code, and the user can jump to a picture uploading system to upload the pictures. Based on this, firstly, component construction needs to be performed on the picture uploading system, a Tomcat container can be deployed on the server by using a system component construction module, and the picture uploading system is deployed in the Tomcat container, and the Tomcat container can provide a system operating environment for the picture uploading system. Then, the external client side can load a target link address by using an iframe tag in the hypertext markup language html code aiming at the uploading position of the picture to be uploaded, enters a webpage corresponding to the target link address to upload the picture to be uploaded, and simultaneously can set a callback function for uploading the picture at the position in the html code where the picture is required to be uploaded so as to obtain at least one picture parameter of the picture to be uploaded. By the mode, the simultaneous uploading of multiple pictures can be realized when the user uploads the pictures.
Based on the picture uploading system shown in fig. 1, as shown in fig. 2, in an embodiment of the present invention, the system further includes: the picture processing module 104 is to be uploaded,
and the to-be-uploaded picture processing module 104 is configured to add a picture operation of an external client to a thread pool of the picture uploading system after entering a webpage corresponding to the target link address, and return a picture uploading progress to the external client, so that the external client can obtain the uploading progress of the to-be-uploaded picture.
In the embodiment of the present invention, the picture uploading component provided in html5 is an input, however, although a single input can provide picture uploading, there is a disadvantage that the uploading progress cannot be displayed. Therefore, in order to display the picture uploading progress to the user, the picture operation of the external client can be added into the thread pool of the picture uploading system in the picture uploading system, and the picture uploading progress is returned to the external client, so that the external client, namely the user, can obtain the uploading progress of the picture to be uploaded.
In an embodiment of the present invention, the system component building module 101 is further configured to configure, in the picture uploading system, prompt information about the limitation of the number of the pictures to be uploaded, a picture uploading mode, the limitation of the size of a single picture, whether the multiple picture uploading is supported, and an uploading failure.
In the embodiment of the invention, in the process of constructing the picture uploading system by using the system component constructing module, some configurations can be performed in advance, such as: basic configuration is carried out on the basic picture setting conditions such as the uploading quantity limit of the pictures to be uploaded, the picture uploading mode, the size limit of a single picture, whether multi-picture uploading is supported and prompt information of uploading failure, so that uploading of subsequent pictures is facilitated, and meanwhile, manual configuration is supported in the configuration process.
In an embodiment of the present invention, the picture uploading method includes: concurrent upload and serial upload.
In the embodiment of the present invention, in the process of building the picture uploading system, the picture uploading mode may also be configured, for example, the configurable picture uploading mode includes: the method comprises the steps of concurrent uploading and serial uploading, wherein the concurrent uploading allows a plurality of pictures to start uploading at the same time, the plurality of pictures are simultaneously written into a storage medium, the serial uploading refers to the uploading of the pictures sequentially according to a sequence, and after the uploading of one picture is finished, the uploading of the next picture is started, and the presentation form is that the pictures are sequentially written into the storage medium.
In an embodiment of the present invention, the at least one picture parameter includes: the picture file name, the picture uploading time, the uploading result, the picture storage address, the picture size and the picture format.
In the embodiment of the present invention, the picture uploading system further provides a callback function after the picture is uploaded, which is used to obtain parameters after the picture is uploaded, including but not limited to at least one picture parameter of a picture file name, a picture uploading time, an uploading result, a picture storage address, a picture size, a picture format, and the like.
In an embodiment of the invention, by carrying out multi-process cooperative processing on the server side, synchronous uploading of a plurality of pictures can be simultaneously selected, the uploading progress of each picture can be checked in real time, multi-thread concurrent operation of the server is greatly utilized, user operation and waiting time are reduced, and the overall efficiency is improved. The invention has the advantages that the multi-picture uploading system with the componentization characteristic is characterized in that a plurality of places can be synchronously used without development only by constructing the system at the server end once, the componentization characteristic is that the configuration information can be directly finished at the server end without repeated configuration, the research and development efficiency is greatly improved, the integration complexity is simplified, and the cross-domain is realized: cross-browser and cross-system access.
As shown in fig. 3, an embodiment of the present invention provides a picture uploading method, including:
step 301: utilizing a system component building module, and installing a Tomcat container on a server;
step 302: deploying a picture uploading system in a Tomcat container by using a system component building module to generate a target link address, wherein the Tomcat container provides a system operating environment for the picture uploading system;
step 303: loading a target link address by using an iframe label aiming at an uploading position of a picture to be uploaded in a hypertext markup language html code by using a system address loading module so as to enter a webpage corresponding to the target link address to upload the picture to be uploaded;
step 304: and sending at least one picture parameter of the picture to be uploaded to an external client by using the picture parameter processing module, so that the external client can acquire the at least one picture parameter of the picture to be uploaded through a preset callback function of the picture to be uploaded.
In the embodiment of the invention, a user sometimes needs to upload multiple pictures simultaneously in the process of uploading the pictures, but the prior art cannot realize simultaneous uploading of multiple pictures, so that in order to meet the requirements of the user and realize simultaneous uploading of multiple pictures, a target link address can be set at a server side, so that an external client side loads the target link address at a position where the picture uploading needs to be carried out in an html code, and the user can jump to a picture uploading system to upload the pictures. Based on this, firstly, component construction needs to be performed on the picture uploading system, a Tomcat container can be deployed on the server by using a system component construction module, and the picture uploading system is deployed in the Tomcat container, and the Tomcat container can provide a system operating environment for the picture uploading system. Then, the external client side can load a target link address by using an iframe tag in the hypertext markup language html code aiming at the uploading position of the picture to be uploaded, enters a webpage corresponding to the target link address to upload the picture to be uploaded, and simultaneously can set a callback function for uploading the picture at the position in the html code where the picture is required to be uploaded so as to obtain at least one picture parameter of the picture to be uploaded. By the mode, the simultaneous uploading of multiple pictures can be realized when the user uploads the pictures.
In order to enable a user to obtain a picture uploading progress, in an embodiment of the present invention, after loading a target link address by using an iframe tag in step 303 to enable the user to enter a webpage corresponding to the target link address to upload a picture to be uploaded, and before sending at least one picture parameter of the picture to be uploaded to an external client by using a picture parameter processing module in step 304, the method further includes:
adding the picture operation of an external client into a thread pool of a picture uploading system after entering a webpage corresponding to a target link address by using a picture processing module to be uploaded;
and returning the picture uploading progress to the external client by using the picture processing module to be uploaded so that the external client can acquire the uploading progress of the picture to be uploaded.
In the embodiment of the present invention, the picture uploading component provided in html5 is an input, however, although a single input can provide picture uploading, there is a disadvantage that the uploading progress cannot be displayed. Therefore, in order to display the picture uploading progress to the user, the picture operation of the external client can be added into the thread pool of the picture uploading system in the picture uploading system, and the picture uploading progress is returned to the external client, so that the external client, namely the user, can obtain the uploading progress of the picture to be uploaded.
In order to configure the picture uploading system, in an embodiment of the present invention, after deploying the picture uploading system in the Tomcat container by using the system component building module in step 302, in step 303, before loading the target link address by using the iframe tag for the uploading position of the picture to be uploaded in the html code by using the system address loading module, the method further includes:
and configuring the uploading quantity limit of the pictures to be uploaded, the picture uploading mode, the size limit of a single picture, whether multi-picture uploading is supported and prompt information of uploading failure in the picture uploading system by using a system component building module.
In the embodiment of the present invention, in the process of building the picture uploading system, the picture uploading mode may also be configured, for example, the configurable picture uploading mode includes: the method comprises the steps of concurrent uploading and serial uploading, wherein the concurrent uploading allows a plurality of pictures to start uploading at the same time, the plurality of pictures are simultaneously written into a storage medium, the serial uploading refers to the uploading of the pictures sequentially according to a sequence, and after the uploading of one picture is finished, the uploading of the next picture is started, and the presentation form is that the pictures are sequentially written into the storage medium.
In order to configure the picture uploading method, in an embodiment of the present invention, the picture uploading method in the above embodiment includes: concurrent upload and serial upload.
In the embodiment of the present invention, in the process of building the picture uploading system, the picture uploading mode may also be configured, for example, the configurable picture uploading mode includes: the method comprises the steps of concurrent uploading and serial uploading, wherein the concurrent uploading allows a plurality of pictures to start uploading at the same time, the plurality of pictures are simultaneously written into a storage medium, the serial uploading refers to the uploading of the pictures sequentially according to a sequence, and after the uploading of one picture is finished, the uploading of the next picture is started, and the presentation form is that the pictures are sequentially written into the storage medium.
In order to configure the picture parameters, in an embodiment of the present invention, at least one picture parameter in the above embodiments includes: the picture file name, the picture uploading time, the uploading result, the picture storage address, the picture size and the picture format.
In the embodiment of the present invention, the picture uploading system further provides a callback function after the picture is uploaded, which is used to obtain parameters after the picture is uploaded, including but not limited to at least one picture parameter of a picture file name, a picture uploading time, an uploading result, a picture storage address, a picture size, a picture format, and the like.
As shown in fig. 4, in order to more clearly illustrate the technical solution and the advantages of the present invention, the following detailed description of the image uploading method provided in the embodiment of the present invention may specifically include the following steps:
step 401: utilizing a system component building module, and installing a Tomcat container on a server;
step 402: deploying a picture uploading system in a Tomcat container by using a system component building module to generate a target link address, wherein the Tomcat container provides a system operating environment for the picture uploading system;
step 403: utilize the system component to set up the module, dispose the number of uploading restriction, picture uploading mode, the restriction of single picture size of waiting to upload the picture in the picture uploading system, whether support many pictures to upload and upload failed prompt message, wherein, the picture uploading mode includes: concurrent upload and serial upload.
Specifically, the picture uploading system only needs to be built once, the target link address of the system can be directly loaded in any medium needing to use the function, the modular function is achieved, the picture uploading system can be called among a plurality of systems, the systems cannot be affected and disturbed mutually, the picture uploading system has the advantages of being built at one place, used at multiple places, high in reusability, strong in portability, capable of avoiding multiple systems and capable of being built and developed repeatedly across systems.
Step 404: a system address loading module is utilized, a target link address is loaded by utilizing an iframe label aiming at an uploading position of a picture to be uploaded in a hypertext markup language html code, and the picture to be uploaded can be uploaded by entering a webpage corresponding to the target link address;
specifically, the IFrame label of the browser is introduced for loading, so that the system limitation is broken, and the method has the characteristic of flexible docking.
Step 405: adding the picture operation of an external client into a thread pool of a picture uploading system after entering a webpage corresponding to a target link address by using a picture processing module to be uploaded;
step 406: and returning the picture uploading progress to the external client by using the picture processing module to be uploaded so that the external client can acquire the uploading progress of the picture to be uploaded.
Step 407: the method comprises the steps of sending at least one picture parameter of a picture to be uploaded to an external client by using a picture parameter processing module so that the external client can acquire the at least one picture parameter of the picture to be uploaded through a preset callback function of the picture to be uploaded, wherein the at least one picture parameter comprises the following steps: the picture file name, the picture uploading time, the uploading result, the picture storage address, the picture size and the picture format.
It is to be understood that the illustrated structure of the embodiment of the present invention does not form a specific limitation on the picture uploading system. In other embodiments of the invention, the picture upload system may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The information interaction, execution process and other contents between the units in the device are based on the same concept as the system embodiment of the present invention, and specific contents can be referred to the description in the system embodiment of the present invention, and are not described herein again.
The embodiment of the present invention further provides a picture uploading system, including: at least one memory and at least one processor;
at least one memory for storing a machine readable program;
at least one processor, configured to invoke a machine readable program to execute the picture uploading method in any embodiment of the present invention.
An embodiment of the present invention further provides a computer-readable medium, where computer instructions are stored on the computer-readable medium, and when the computer instructions are executed by a processor, the processor is caused to execute the picture uploading system in any embodiment of the present invention.
Specifically, a system or an apparatus equipped with a storage medium on which software program codes that realize the functions of any of the above-described embodiments are stored may be provided, and a computer (or a CPU or MPU) of the system or the apparatus is caused to read out and execute the program codes stored in the storage medium.
In this case, the program code itself read from the storage medium can realize the functions of any of the above-described embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
Examples of the storage medium for supplying the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (e.g., CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW), a magnetic tape, a nonvolatile memory card, and a ROM. Alternatively, the program code may be downloaded from a server computer via a communications network.
Further, it should be clear that the functions of any one of the above-described embodiments may be implemented not only by executing the program code read out by the computer, but also by causing an operating system or the like operating on the computer to perform a part or all of the actual operations based on instructions of the program code.
Further, it is to be understood that the program code read out from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion unit connected to the computer, and then causes a CPU or the like mounted on the expansion board or the expansion unit to perform part or all of the actual operations based on instructions of the program code, thereby realizing the functions of any of the above-described embodiments.
The embodiments of the invention have at least the following beneficial effects:
1. in the embodiment of the invention, a user sometimes needs to upload multiple pictures simultaneously in the process of uploading the pictures, but the prior art cannot realize simultaneous uploading of multiple pictures, so that in order to meet the requirements of the user and realize simultaneous uploading of multiple pictures, a target link address can be set at a server side, so that an external client side loads the target link address at a position where the picture uploading needs to be carried out in an html code, and the user can jump to a picture uploading system to upload the pictures. Based on this, firstly, component construction needs to be performed on the picture uploading system, a Tomcat container can be deployed on the server by using a system component construction module, and the picture uploading system is deployed in the Tomcat container, and the Tomcat container can provide a system operating environment for the picture uploading system. Then, an external client can load a target link address by using an iframe label aiming at an uploading position of a picture to be uploaded in a hypertext markup language html code, enter a webpage corresponding to the target link address to upload the picture to be uploaded, and set a callback function of picture uploading at a position needing picture uploading in the html code to obtain at least one picture parameter of the picture to be uploaded. By the mode, multiple pictures can be uploaded simultaneously when the user uploads the pictures;
2. in an embodiment of the present invention, the picture uploading component provided in html5 is an input, however, although a single input can provide picture uploading, there is a disadvantage that the uploading progress cannot be displayed. Therefore, in order to display the picture uploading progress to the user, the picture operation of the external client can be added into the thread pool of the picture uploading system in the picture uploading system, and the picture uploading progress is returned to the external client, so that the external client, namely the user, can obtain the uploading progress of the picture to be uploaded;
3. in an embodiment of the present invention, during the process of building the picture uploading system, the picture uploading mode may also be configured, for example, the configurable picture uploading mode includes: the method comprises the steps of concurrent uploading and serial uploading, wherein the concurrent uploading allows a plurality of pictures to start uploading at the same time, the plurality of pictures are simultaneously written into a storage medium, the serial uploading refers to the uploading of the pictures in sequence, and after the uploading of one picture is finished, the uploading of the next picture is started, and the pictures are sequentially written into the storage medium in an expression form;
4. in an embodiment of the present invention, during the process of building the picture uploading system, the picture uploading mode may also be configured, for example, the configurable picture uploading mode includes: the method comprises the steps of concurrent uploading and serial uploading, wherein the concurrent uploading allows a plurality of pictures to start uploading at the same time, the plurality of pictures are written into a storage medium at the same time, the serial uploading refers to the uploading of the pictures in sequence, and after the uploading of one picture is finished, the uploading of the next picture is started, and the pictures are written into the storage medium in sequence;
5. in an embodiment of the present invention, the picture uploading system further provides a callback function after the picture is uploaded, which is used to obtain parameters after the picture is uploaded, including but not limited to at least one picture parameter of a picture file name, a picture uploading time, an uploading result, a picture storage address, a picture size, a picture format, and the like.
It should be noted that not all steps and modules in the above flows and system structure diagrams are necessary, and some steps or modules may be omitted according to actual needs. The execution order of the steps is not fixed and can be adjusted as required. The system structure described in the above embodiments may be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by a plurality of physical entities, or some components in a plurality of independent devices may be implemented together.
In the above embodiments, the hardware unit may be implemented mechanically or electrically. For example, a hardware element may comprise permanently dedicated circuitry or logic (such as a dedicated processor, FPGA or ASIC) to perform the corresponding operations. The hardware elements may also comprise programmable logic or circuitry, such as a general purpose processor or other programmable processor, that may be temporarily configured by software to perform the corresponding operations. The specific implementation (mechanical, or dedicated permanent, or temporarily set) may be determined based on cost and time considerations.
While the invention has been particularly shown and described with reference to the preferred embodiments and drawings, it is not intended to be limited to the specific embodiments disclosed, and it will be understood by those skilled in the art that various other combinations of code approval means and various embodiments described above may be made, and such other embodiments are within the scope of the present invention.

Claims (9)

1. Picture upload system, its characterized in that includes:
the system component building module is used for installing a Tomcat container on a server and deploying the picture uploading system in the Tomcat container to generate a target link address, wherein the Tomcat container provides a system running environment for the picture uploading system;
the system address loading module is used for loading the target link address by using an iframe tag aiming at the uploading position of the picture to be uploaded in the hypertext markup language html code so as to enter a webpage corresponding to the target link address to upload the picture to be uploaded;
the picture parameter processing module is used for sending at least one picture parameter of the picture to be uploaded to an external client side, so that the external client side can obtain the at least one picture parameter of the picture to be uploaded through a preset callback function of the picture to be uploaded;
and the to-be-uploaded picture processing module is used for adding the picture operation of the external client into the thread pool of the picture uploading system after entering the webpage corresponding to the target link address, and returning a picture uploading progress to the external client, so that the external client can acquire the uploading progress of the to-be-uploaded picture.
2. The system of claim 1,
the system component building module is further used for configuring the uploading quantity limit of the pictures to be uploaded, the picture uploading mode, the size limit of a single picture, whether multi-picture uploading is supported and prompt information of uploading failure in the picture uploading system.
3. The system of claim 2,
the picture uploading mode comprises the following steps: concurrent upload and serial upload.
4. The system according to any one of claims 1 to 3,
the at least one picture parameter comprises: the picture file name, the picture uploading time, the uploading result, the picture storage address, the picture size and the picture format.
5. The picture uploading method is characterized by comprising the following steps:
utilizing a system component building module, and installing a Tomcat container on a server;
deploying the picture uploading system in the Tomcat container by using the system component building module to generate a target link address, wherein the Tomcat container provides a system operating environment for the picture uploading system;
loading the target link address by using an iframe label aiming at the uploading position of the picture to be uploaded in the hypertext markup language html code by using a system address loading module so as to enter a webpage corresponding to the target link address to upload the picture to be uploaded;
and sending at least one picture parameter of the picture to be uploaded to an external client by using a picture parameter processing module, so that the external client can acquire the at least one picture parameter of the picture to be uploaded through a preset callback function of the picture to be uploaded.
6. The method of claim 5,
after the target link address is loaded by using the iframe tag so as to enter the webpage corresponding to the target link address to upload the picture to be uploaded, before the picture parameter processing module sends at least one picture parameter of the picture to be uploaded to an external client, the method further includes:
adding the picture operation of the external client into a thread pool of the picture uploading system after entering the webpage corresponding to the target link address by using a picture processing module to be uploaded;
and returning the picture uploading progress to the external client by using the picture processing module to be uploaded so that the external client can acquire the uploading progress of the picture to be uploaded.
7. The method of claim 5,
after the using the system component building module and deploying the picture uploading system in the Tomcat container, before the using a system address loading module and aiming at the uploading position of the picture to be uploaded in the html code, and using an iframe tag to load the target link address, the method further includes:
and configuring the uploading quantity limit, the picture uploading mode, the size limit of a single picture, whether multi-picture uploading is supported and prompt information of uploading failure in the picture uploading system by using the system component building module.
8. The method of claim 7,
the picture uploading mode comprises the following steps: concurrent upload and serial upload.
9. The method according to any one of claims 5 to 8,
the at least one picture parameter comprises: the picture file name, the picture uploading time, the uploading result, the picture storage address, the picture size and the picture format.
CN202011382224.5A 2020-12-01 2020-12-01 Picture uploading system and method Active CN112532730B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011382224.5A CN112532730B (en) 2020-12-01 2020-12-01 Picture uploading system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011382224.5A CN112532730B (en) 2020-12-01 2020-12-01 Picture uploading system and method

Publications (2)

Publication Number Publication Date
CN112532730A CN112532730A (en) 2021-03-19
CN112532730B true CN112532730B (en) 2022-09-20

Family

ID=74995677

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011382224.5A Active CN112532730B (en) 2020-12-01 2020-12-01 Picture uploading system and method

Country Status (1)

Country Link
CN (1) CN112532730B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7346649B1 (en) * 2000-05-31 2008-03-18 Wong Alexander Y Method and apparatus for network content distribution using a personal server approach
KR20140091121A (en) * 2013-01-07 2014-07-21 주식회사 이니컴퍼니 System and method for sharing picture image and video contents
CN103944937A (en) * 2013-01-21 2014-07-23 百度在线网络技术(北京)有限公司 Webpage-based file uploading method and device
CN104978207A (en) * 2014-04-11 2015-10-14 博雅网络游戏开发(深圳)有限公司 Method for uploading file, browser and system
CN105302802A (en) * 2014-05-27 2016-02-03 腾讯科技(深圳)有限公司 Picture uploading method and system and browser
WO2016065372A1 (en) * 2014-10-25 2016-04-28 Yieldmo Inc. Interactive inline frame and webpage
CN106027608A (en) * 2016-05-05 2016-10-12 武汉斗鱼网络科技有限公司 Image uploading method, client and server
CN106936904A (en) * 2017-03-07 2017-07-07 济南浪潮高新科技投资发展有限公司 A kind of picture upload method and device
CN107231415A (en) * 2017-05-25 2017-10-03 腾讯科技(深圳)有限公司 The network storage method and device of picture
CN110765084A (en) * 2019-11-06 2020-02-07 杭州求是优脉科技有限公司 Picture uploading method and system, electronic equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3136656B1 (en) * 2014-05-23 2020-07-15 Huawei Technologies Co., Ltd. Information sharing method and device
CN104462491A (en) * 2014-12-22 2015-03-25 上海斐讯数据通信技术有限公司 Image uploading method and system and corresponding server

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7346649B1 (en) * 2000-05-31 2008-03-18 Wong Alexander Y Method and apparatus for network content distribution using a personal server approach
KR20140091121A (en) * 2013-01-07 2014-07-21 주식회사 이니컴퍼니 System and method for sharing picture image and video contents
CN103944937A (en) * 2013-01-21 2014-07-23 百度在线网络技术(北京)有限公司 Webpage-based file uploading method and device
CN104978207A (en) * 2014-04-11 2015-10-14 博雅网络游戏开发(深圳)有限公司 Method for uploading file, browser and system
CN105302802A (en) * 2014-05-27 2016-02-03 腾讯科技(深圳)有限公司 Picture uploading method and system and browser
WO2016065372A1 (en) * 2014-10-25 2016-04-28 Yieldmo Inc. Interactive inline frame and webpage
CN106027608A (en) * 2016-05-05 2016-10-12 武汉斗鱼网络科技有限公司 Image uploading method, client and server
CN106936904A (en) * 2017-03-07 2017-07-07 济南浪潮高新科技投资发展有限公司 A kind of picture upload method and device
CN107231415A (en) * 2017-05-25 2017-10-03 腾讯科技(深圳)有限公司 The network storage method and device of picture
CN110765084A (en) * 2019-11-06 2020-02-07 杭州求是优脉科技有限公司 Picture uploading method and system, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
用iframe构造的基于浏览器的在线网页编辑器;高珂等;《山东煤炭科技》;20070615(第03期);全文 *

Also Published As

Publication number Publication date
CN112532730A (en) 2021-03-19

Similar Documents

Publication Publication Date Title
CN108924626B (en) Picture generation method, device, equipment and storage medium
US9798555B2 (en) Application implementation method and apparatus
US11797283B2 (en) Application program development and deployment method and apparatus, and computer-readable medium
US10282185B2 (en) Method and apparatus for firmware virtualization
CN103914450A (en) Method and device for presenting web graphics in mobile terminal platform
US10303463B2 (en) Terminal management framework and terminal management method
CN108062336B (en) Media information processing method and device
CN110673923A (en) XWIKI system configuration method, system and computer equipment
CN110515514B (en) Data processing method, device and storage medium
CN111782192A (en) Method for developing mobile office system in mixed mode
CN115514667A (en) Access service processing method, system, device, electronic equipment and storage medium
CN112532730B (en) Picture uploading system and method
CN112286525A (en) Skeleton screen generation method, device and equipment
JP4696744B2 (en) Program test apparatus, method, and program
CN115794095B (en) JavaScript-based illusion engine UI development method and system
KR101482152B1 (en) Web application executable device and method with page association function
CN111913776B (en) Content display method, device and equipment
CN111338624A (en) Data processing method and related equipment
Nyrhinen et al. Lively mashups for mobile devices
CN116450074B (en) Image display method and device
CN114330382A (en) Application program internationalization processing method and device, computing device and storage medium
CN112231006B (en) Starting method and device of computer equipment and computer equipment
CN113126961B (en) Pipeline processing method, device and storage medium
CN113590541A (en) Display method of local file in electronic book client, client and storage medium
CN113986387A (en) Project configuration information loading method and device, electronic equipment and storage medium

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