CN102523244A - Uploading method and system for page documents - Google Patents

Uploading method and system for page documents Download PDF

Info

Publication number
CN102523244A
CN102523244A CN2011103721253A CN201110372125A CN102523244A CN 102523244 A CN102523244 A CN 102523244A CN 2011103721253 A CN2011103721253 A CN 2011103721253A CN 201110372125 A CN201110372125 A CN 201110372125A CN 102523244 A CN102523244 A CN 102523244A
Authority
CN
China
Prior art keywords
upload
uploading
server
web
silverlight
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
Application number
CN2011103721253A
Other languages
Chinese (zh)
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.)
ZTE ICT Technologies Co Ltd
Original Assignee
ZTE ICT Technologies 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 ZTE ICT Technologies Co Ltd filed Critical ZTE ICT Technologies Co Ltd
Priority to CN2011103721253A priority Critical patent/CN102523244A/en
Publication of CN102523244A publication Critical patent/CN102523244A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to an uploading system for page documents, which comprises a web browser, a web server and an uploading server, wherein the web browser is used for displaying uploaded web pages, and utilizing a SilverLight upload control to realize communication with the uploading server so as to upload the documents; the web server is used for responding to an http (Hyper Text Transport Protocol) request of the web browser and outputting web content to the web browser; and the uploading server is used for providing Socket service, responding to a SilverLight upload control socket request, and storing document content and progress information of document transmission. The invention also provides an uploading method for the page documents. Through the uploading method and the uploading system for the page documents provided by the invention, the uploading server can be used for storing document uploading process information in real time while uploading document data, so that a breakpoint transmission function is finally realized; and only special servers are interacted in an uploading process, so that the performances of the Web server is not influenced.

Description

A kind of method for uploading of web page files and system thereof
Technical field
The present invention relates to a kind of computer realm, particularly relate to method and system thereof that a kind of web page files is uploaded onto the server.
Background technology
At present, through the webpage upload file, the mode that generally adopts is to submit to http to ask backstage web server, and there is following shortcoming in this scheme:
1) because lack breakpoint transmission mechanism, when file was bigger, uplink time was long, in case network interrupts upload file again;
2) the upload file time is longer usually, causes the web server to want to keep being connected with client terminal web page for a long time like this, has so just taken the linking number of web server, influences the performance of web server.
So; Need provide a kind of new web page files to upload technology; Solving to upload in the prior art does not support breakpoint transmission function and upload file to consume the shortcoming of Web server performance; Make when upload file runs into network and interrupts uploading once more, can continue to upload, do not influence the Web server performance simultaneously from progress last time.
Summary of the invention
The object of the present invention is to provide a kind of method for uploading and system thereof of SilverLight web page files; Can solve to upload in the prior art does not support breakpoint transmission function and upload file to consume the shortcoming of Web server performance; Make when upload file runs into network and interrupts uploading once more; Can continue to upload from progress last time, not influence the Web server performance simultaneously.
For solving above technical problem, the present invention provides a kind of uploading system of SilverLight web page files, comprising: web browser, and the web server, upload server,
Said web browser is used for showing and uploads webpage, and utilizes the SilverLight uploading control to realize and upload server communication upload file;
Said web server is used to respond the http request of web browser, to web browser output web page contents;
Said upload server is used to provide Socket service, and the file content that transmits from uploading control and the progress msg of file transfer are preserved in response SilverLight uploading control socket request.
Further, said SilverLight uploading control specifically is used for: extract and select local file, draw document and describe, and send the document description to upload server; And, obtain transmission progress last time from upload server, obtain a certain size file content from assigned address and upload to upload server.
Further, said upload server specifically is used for: describe to retrieve the progress of uploading and return according to document and give the SilverLight uploading control; And, preserve to receive file content that the SilverLight uploading control uploads and upload progress.
Further, said upload server is described as the keyword preservation with summary or inquires about and upload progress msg.
For solving above technical problem, the present invention also provides a kind of method for uploading of SilverLight web page files, comprising:
Step 1, web browser request Web server obtain and upload webpage;
Step 2, web server response request are uploaded html page to returning;
Step 3, SilverLight uploading control extract the local file of selecting and calculate the document description, document are described sending upload server to;
Step 4, upload server are described to retrieve the progress of uploading and return with document and are given uploading control;
After step 5, SilverLight uploading control obtain transmission progress last time, obtain a certain size file content from assigned address and upload to upload server;
Step 6, upload server are preserved and are received file content and upload progress;
The transmission course of repeating step 4 to step 6 is all transmitted completion up to file.
Further, said upload server is described as the keyword preservation with summary or inquires about and upload progress msg.
Compared with prior art; The method for uploading of a kind of SilverLight web page files provided by the invention and system thereof; To the existing shortcoming that exists through http request upload file method, mutual with socket and special upload server through in webpage, embedding the SilverLight plug-in unit; The real time record transmission progress is supported breakpoint transmission when uploading, and improves uploading operation efficient; Transmission course adopts socket to be connected to special-purpose upload server, and upload procedure can not influence the web server performance.So, when upload server is uploaded at file data, can preserve file in real time and upload progress msg, finally realize the breakpoint transmission function; Upload procedure has only private server mutual, does not influence the Web server performance.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes a part of the present invention, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, does not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the structure chart of the uploading system of a kind of SilverLight web page files provided by the invention;
Fig. 2 is the flow chart of the method for uploading of a kind of SilverLight web page files provided by the invention.
Embodiment
In order to make technical problem to be solved by this invention, technical scheme and beneficial effect clearer, clear,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The present invention provides a kind of and through the technology of SilverLight webpage upload file to server the SilverLight uploading control is embedded in the webpage, and through Socket and server communication, upload file is to server.SilverLight is the browser-cross released of Microsoft, the webpage connector formula technology of striding customer platform, abundant local file operating function can be provided, the Socket communication function.Socket is also referred to as " socket " usually, and application program can perhaps be replied network requests to the network request of sending through " socket ".
As shown in Figure 1, the present invention provides a kind of uploading system of SilverLight web page files, comprising: web browser 10, and web server 20, upload server 30,
This web browser 10 is used for showing and uploads webpage that upload webpage and comprise the Html page 12 and SilverLight uploading control 14, SilverLight uploading control 14 can be realized and upload server 30 communication upload files.
This web server 20 is used for being responsible for the http request of response web browser 10, to web browser 10 output web page contents.
This upload server 30 is used to provide Socket service, and response SilverLight uploading control socket request is responsible for preserving the file content that transmits from uploading control, is responsible for preserving the progress msg of file transfer simultaneously.
The present invention provides a kind of method for uploading of SilverLight web page files, comprising:
Step 1, web browser 10 request Web servers 20 obtain and upload webpage, use SilverLight uploading control 14 to select local file to carry out upload operation.
Step 2, web server response request are uploaded html page to returning.
Step 3, SilverLight uploading control 14 extract the local file of selecting and calculate the document description, document are described sending upload server 30 to.
Step 4, upload server 30 usefulness documents are described to retrieve the progress of uploading and return and are given uploading control 14.
After step 5, SilverLight uploading control 14 obtain transmission progress last time, obtain a certain size file content from assigned address and upload to upload server 30.
Step 6, upload server 30 are preserved and are received file content and upload progress.
The transmission course of repeating step 4 to step 6 is all transmitted completion up to file.
The method for uploading of detailed SilverLight web page files be described below (as shown in Figure 2):
The first step, user upload the page link address through the web browser input, and to the Web server initiation request, the web server response request is uploaded html page to returning.
Second step, the user selects this machine file through the SilverLight uploading control in uploading html page, carries out upload operation.
The 3rd step, this machine of SilverLight uploading control sampling extraction file content, the spanned file summary is described, and will make a summary to describe and use the Socket connection to send to upload server.
The 4th step, upload server receive with summary and describe, and are described as keyword query with summary and upload progress msg, connect the passback progress msg through socket simultaneously and give uploading control.
The progress msg of the 5th step, the passback of uploading control reception server according to progress msg, is located file pointer the transfer files position of initial appointment.
The 6th the step, judge whether document location arrives end of file, uploaded completion if show file, jumped to for the tenth step; Otherwise, jumped to for the 7th step.
The 7th step, uploading control read the file content transfer of data of fixed size from the file current location, and upload server.
The 8th step, upload server receive the file content data that uploading control is uploaded, and are saved in the server corresponding file.
The 9th step, server are described as keyword with document, preserve the progress msg that this is uploaded; Returned for the 6th step.
Socket connects between the tenth step, disconnection server and the SilverLight uploading control, finishes this file upload request.
The method for uploading of a kind of SilverLight web page files provided by the invention and system thereof; To the existing shortcoming that exists through http request upload file method, mutual with socket and special upload server through in webpage, embedding the SilverLight plug-in unit; The real time record transmission progress is supported breakpoint transmission when uploading, and improves uploading operation efficient; Transmission course adopts socket to be connected to special-purpose upload server, and upload procedure can not influence the web server performance.So, when upload server is uploaded at file data, can preserve file in real time and upload progress msg, finally realize the breakpoint transmission function; Upload procedure has only private server mutual, does not influence the Web server performance.
Above-mentioned explanation illustrates and has described a preferred embodiment of the present invention; But as previously mentioned; Be to be understood that the present invention is not limited to the form that this paper discloses, should do not regard eliminating as, and can be used for various other combinations, modification and environment other embodiment; And can in invention contemplated scope described herein, change through the technology or the knowledge of above-mentioned instruction or association area.And change that those skilled in the art carried out and variation do not break away from the spirit and scope of the present invention, then all should be in the protection range of accompanying claims of the present invention.

Claims (6)

1. the uploading system of a web page files is characterized in that, comprising: web browser, and the web server, upload server,
Said web browser is used for showing and uploads webpage, and utilizes the SilverLight uploading control to realize and upload server communication upload file;
Said web server is used to respond the http request of web browser, to web browser output web page contents;
Said upload server is used to provide Socket service, and the file content that transmits from uploading control and the progress msg of file transfer are preserved in response SilverLight uploading control socket request.
2. the system of claim 1 is characterized in that, said SilverLight uploading control specifically is used for: extract and select local file, draw document and describe, and send the document description to upload server; And, obtain transmission progress last time from upload server, obtain a certain size file content from assigned address and upload to upload server.
3. the system of claim 1 is characterized in that, said upload server specifically is used for: describe to retrieve the progress of uploading and return according to document and give the SilverLight uploading control; And, preserve to receive file content that the SilverLight uploading control uploads and upload progress.
4. like claim 1,2 or 3 described systems, it is characterized in that said upload server is described as keyword with summary and preserves or inquire about and upload progress msg.
5. the method for uploading of a web page files is characterized in that, comprising:
Step 1, web browser request Web server obtain and upload webpage;
Step 2, web server response request are uploaded html page to returning;
Step 3, SilverLight uploading control extract the local file of selecting and calculate the document description, document are described sending upload server to;
Step 4, upload server are described to retrieve the progress of uploading and return with document and are given uploading control;
After step 5, SilverLight uploading control obtain transmission progress last time, obtain a certain size file content from assigned address and upload to upload server;
Step 6, upload server are preserved and are received file content and upload progress;
The transmission course of repeating step 4 to step 6 is all transmitted completion up to file.
6. method as claimed in claim 5 is characterized in that, said upload server is described as keyword with summary and preserves or inquire about and upload progress msg.
CN2011103721253A 2011-11-18 2011-11-18 Uploading method and system for page documents Pending CN102523244A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103721253A CN102523244A (en) 2011-11-18 2011-11-18 Uploading method and system for page documents

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103721253A CN102523244A (en) 2011-11-18 2011-11-18 Uploading method and system for page documents

Publications (1)

Publication Number Publication Date
CN102523244A true CN102523244A (en) 2012-06-27

Family

ID=46294034

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103721253A Pending CN102523244A (en) 2011-11-18 2011-11-18 Uploading method and system for page documents

Country Status (1)

Country Link
CN (1) CN102523244A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104253816A (en) * 2014-09-25 2014-12-31 武汉传神信息技术有限公司 HTTP (hyper text transport protocol)-based large file page breakpoint resuming method
CN104267953A (en) * 2014-09-27 2015-01-07 昆明钢铁集团有限责任公司 Control and method for importing Word test questions based on browser
CN104902581A (en) * 2014-03-07 2015-09-09 联想(北京)有限公司 Wireless connection control method and device and terminal equipment
CN105224571A (en) * 2014-06-30 2016-01-06 北京金山安全软件有限公司 Terminal uploaded data processing method and device and data uploading processing method and device
CN105306568A (en) * 2015-10-23 2016-02-03 无锡天脉聚源传媒科技有限公司 Method and device for resuming task based on browser
CN111355793A (en) * 2020-02-26 2020-06-30 山东爱城市网信息技术有限公司 Large file uploading method based on HTML5 and Python

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1729466A (en) * 2002-12-23 2006-02-01 英特尔公司 System and method for browsing on behalf of others
CN101127879A (en) * 2007-10-10 2008-02-20 张福泉 Stream media VoD system for intelligent access data
CN101174954A (en) * 2006-10-31 2008-05-07 上海高勤通信科技有限公司 Document breaking point uploading method based on internet hypertext transfer protocol

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1729466A (en) * 2002-12-23 2006-02-01 英特尔公司 System and method for browsing on behalf of others
CN101174954A (en) * 2006-10-31 2008-05-07 上海高勤通信科技有限公司 Document breaking point uploading method based on internet hypertext transfer protocol
CN101127879A (en) * 2007-10-10 2008-02-20 张福泉 Stream media VoD system for intelligent access data

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104902581A (en) * 2014-03-07 2015-09-09 联想(北京)有限公司 Wireless connection control method and device and terminal equipment
CN104902581B (en) * 2014-03-07 2019-06-25 联想(北京)有限公司 Wireless connection control method, apparatus and terminal device
CN105224571A (en) * 2014-06-30 2016-01-06 北京金山安全软件有限公司 Terminal uploaded data processing method and device and data uploading processing method and device
CN104253816A (en) * 2014-09-25 2014-12-31 武汉传神信息技术有限公司 HTTP (hyper text transport protocol)-based large file page breakpoint resuming method
CN104267953A (en) * 2014-09-27 2015-01-07 昆明钢铁集团有限责任公司 Control and method for importing Word test questions based on browser
CN105306568A (en) * 2015-10-23 2016-02-03 无锡天脉聚源传媒科技有限公司 Method and device for resuming task based on browser
CN111355793A (en) * 2020-02-26 2020-06-30 山东爱城市网信息技术有限公司 Large file uploading method based on HTML5 and Python

Similar Documents

Publication Publication Date Title
KR101362384B1 (en) The method and system for browsing things of internet of things on ip using web platform
CN102523244A (en) Uploading method and system for page documents
US20150189036A1 (en) Offline caching method and apparatus
CN102272747A (en) Method and apparatus for managing state information of remote user interface
CN101662464A (en) System for realizing HTTP request service and method thereof
CN102307219B (en) File access system, file uploading method and file downloading method
EP2264608A1 (en) Proxy server, and method and program for controlling the same
CN103067423B (en) The method of browser kernel adaptation and browser
CN102546794A (en) Method for directly communicating browser client with back-end server as well as gateway and communication system
CN102184231A (en) Method and device for acquiring page resources
CN101778168A (en) Method and system for optimization display of wed pages on browser of mobile terminal
CN103457960A (en) Method and system for loading file in webpage game
CN102655481A (en) Webpape-based instant messaging chat content looking-up method and system
CN105227447A (en) The online answering method of problem feedback information and server
CN103475682A (en) File transfer method and file transfer equipment
CN102761456A (en) Method, device and system for acquiring performance parameters of browser of mobile terminal
CN104468852A (en) Method, device and system for client to select IP link address
JP2008097201A (en) Browser data sharing system, server, method, and program
CN102394880A (en) Method and device for processing jump response in content delivery network
CN106549989A (en) A kind of data transmission method and its system, user terminal, application server
CN101771928A (en) Method and system and proxy server for Webpage transmitting
CN105100230A (en) File transmission method and device
KR20130065777A (en) Apparatus and method for sharing web contents using inspector script
CN104283920A (en) Use method, server, terminal and system for Webapp router
CN102594886A (en) Method and device for direct communication between browsers, and communication system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120627