CN109413138A - File uploading method and device - Google Patents

File uploading method and device Download PDF

Info

Publication number
CN109413138A
CN109413138A CN201811023098.7A CN201811023098A CN109413138A CN 109413138 A CN109413138 A CN 109413138A CN 201811023098 A CN201811023098 A CN 201811023098A CN 109413138 A CN109413138 A CN 109413138A
Authority
CN
China
Prior art keywords
browser
upload
view
target terminal
networking protocol
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.)
Granted
Application number
CN201811023098.7A
Other languages
Chinese (zh)
Other versions
CN109413138B (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.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information 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 Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201811023098.7A priority Critical patent/CN109413138B/en
Publication of CN109413138A publication Critical patent/CN109413138A/en
Application granted granted Critical
Publication of CN109413138B publication Critical patent/CN109413138B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a kind of file uploading method and devices, are applied in view networking.Wherein method includes: that the browser of source terminal obtains upload data, and calls Preset Transfer interface, uploads the upload data to the view networked server based on view networking protocol;The upload data include uploading file;The browser of source terminal monitors the Preset Transfer interface after starting upload, through predeterminable event, obtains the event attribute of the predeterminable event;The browser of source terminal determines the upload progress of the upper transmitting file according to the event attribute;The browser of source terminal shows the upload progress.The embodiment of the present invention can be realized by the browser of source terminal uploads required upper transmitting file in depending on networking, upper transmitting file is uploaded in view networked server, and, to meet the needs of users, user experience can be promoted in upload procedure with real-time display upload progress.

Description

File uploading method and device
Technical field
The present invention relates to view networking technology fields, upload dress more particularly to a kind of file uploading method and a kind of file It sets.
Background technique
With the fast development of the network technology, user passes through network more and more and carries out various communications.For example, differently Same file can be shared according to demand between the user of position by managing.Specifically, some user is if it is desired to make other users total File is enjoyed, then the user can upload to file in corresponding server, and other users can then download this in the server File, to realize the file-sharing between the user of diverse geographic location.
But user can not learn the concrete condition that file uploads in the prior art, if due to network disconnection etc. Cause to upload and interrupt, then user can not also learn the situation, can not learn uploading speed etc., and therefore, the prior art is not able to satisfy The demand of user, user experience are poor.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present invention and overcomes the above problem or at least partly in order to provide one kind A kind of file uploading method and a kind of corresponding file to solve the above problems uploads device.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of file uploading method, the method is applied to view In networking, the view networking includes the terminal of view networked server and the access view networked server, and the terminal is equipped with Browser, which comprises
The browser of source terminal, which obtains, uploads data, and calls Preset Transfer interface, is based on view networking protocol to the view Networked server uploads the upload data;The upload data include uploading file;
The browser of the source terminal supervises the Preset Transfer interface after starting upload, through predeterminable event It listens, obtains the event attribute of the predeterminable event;
The browser of the source terminal determines the upload progress of the upper transmitting file according to the event attribute;
The browser of the source terminal shows the upload progress.
Preferably, the calling Preset Transfer interface, based on view networking protocol to described in view networked server upload Upload data the step of, comprising: the browser of the source terminal be based on view networking protocol, the upload data are encapsulated as include First view networking protocol data packet of first path information;The first path information is used to indicate the first view networking protocol Transmission path of the data packet in view networking;The browser of the source terminal calls Preset Transfer interface, according to the first via Diameter information is sent to the view networked server depending on networking protocol data packet for described first.
Preferably, described to upload the information that data further include the browser of target terminal, the method also includes: the view Networked server is after finishing receiving the upper transmitting file, the information of the browser according to the target terminal, based on view networking The upper transmitting file is sent to the browser of the target terminal by agreement;The browser of the target terminal shows the upload File.
Preferably, the information according to the browser of the target terminal is sent out the upper transmitting file based on view networking protocol The step of sending to the browser of the target terminal, comprising: the view networked server is based on view networking protocol, by the upload Document encapsulation is the second view networking protocol data packet for including the second routing information;Second routing information is used to indicate described Transmission path of the second view networking protocol data packet in view networking;The view networked server is believed according to second path Breath, by the Preset Transfer interface of the browser of the target terminal, is sent to institute depending on networking protocol data packet for described second State the browser of target terminal.
Preferably, described to upload the information that data further include the printer of target terminal, the method also includes: the view Networked server is after finishing receiving the upper transmitting file, the information of the printer according to the target terminal, based on view networking The upper transmitting file is sent to the printer of the target terminal by agreement;The printer of the target terminal prints the upload File.
Preferably, the information according to the printer of the target terminal is sent out the upper transmitting file based on view networking protocol The step of sending to the printer of the target terminal, comprising: the view networked server is based on view networking protocol, by the upload Document encapsulation is the third view networking protocol data packet for including third routing information;The third routing information is used to indicate described Third regards transmission path of the networking protocol data packet in view networking;The view networked server is believed according to the third path Breath, by the default receiving port of the printer of the target terminal, is sent to institute depending on networking protocol data packet for the third State the printer of target terminal.
Preferably, after the browser of the source terminal obtains the step of uploading data, further includes: the source terminal Browser calls default translation interface, and the upper transmitting file is converted to binary format.
On the other hand, the embodiment of the invention also discloses a kind of files to upload device, which is characterized in that described device application In view networking, the view networking includes the terminal of view networked server and the access view networked server, the terminal peace Equipped with browser,
The browser of source terminal includes:
Uploading module uploads data for obtaining, and calls Preset Transfer interface, is joined based on view networking protocol to the view Network server uploads the upload data;The upload data include uploading file;
Module is monitored, for monitoring by predeterminable event the Preset Transfer interface, obtaining after starting upload The event attribute of the predeterminable event;
Determining module, for determining the upload progress of the upper transmitting file according to the event attribute;
Display module, for showing the upload progress.
Preferably, the uploading module includes: the first data packaging unit, for being based on view networking protocol, on described Pass data be encapsulated as include first path information first regard networking protocol data packet;The first path information is used to indicate institute State transmission path of the first view networking protocol data packet in view networking;First data transmission unit, for calling Preset Transfer Interface is sent to the view networked server depending on networking protocol data packet for described first according to the first path information.
Preferably, the upload data further include the information of the browser of target terminal, described to include: depending on networked server First sending module, for after finishing receiving the upper transmitting file, the information of the browser according to the target terminal to be based on The upper transmitting file is sent to the browser of the target terminal depending on networking protocol;The browser of the target terminal, is used for Show the upper transmitting file.
In the embodiment of the present invention, the browser of source terminal, which obtains, uploads data, and calls Preset Transfer interface, based on view connection FidonetFido uploads the upload data to view networked server, and uploading data includes uploading file;The browser of source terminal is being opened Begin after uploading, Preset Transfer interface is monitored by predeterminable event, obtains the event attribute of predeterminable event;Source terminal it is clear Device of looking at determines the upload progress of upper transmitting file according to event attribute;The browser of source terminal shows upload progress.It follows that this Inventive embodiments can be realized by the browser of source terminal uploads required upper transmitting file in depending on networking, will be on upper transmitting file It reaches in view networked server, and, to meet the needs of users, can be mentioned with real-time display upload progress in upload procedure Rise user experience.
Detailed description of the invention
Fig. 1 is a kind of networking schematic diagram of view networking of the invention;
Fig. 2 is a kind of hardware structural diagram of node server of the invention;
Fig. 3 is a kind of hardware structural diagram of access switch of the invention;
Fig. 4 is the hardware structural diagram that a kind of Ethernet association of the invention turns gateway;
Fig. 5 is a kind of step flow chart of file uploading method of the embodiment of the present invention one;
Fig. 6 is a kind of step flow chart of file uploading method of the embodiment of the present invention two;
Fig. 7 is a kind of step flow chart of file uploading method of the embodiment of the present invention three;
Fig. 8 is that a kind of file of the embodiment of the present invention four uploads the structural block diagram of device.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real Applying mode, the present invention is described in further detail.
It is the important milestone of network Development depending on networking, is a real-time network, can be realized HD video real-time Transmission, Push numerous Internet applications to HD video, high definition is face-to-face.
Real-time high-definition video switching technology is used depending on networking, it can be such as high in a network platform by required service Clear video conference, Intellectualized monitoring analysis, emergency command, digital broadcast television, delay TV, the Web-based instruction, shows video monitoring Field live streaming, VOD program request, TV Mail, individual character records (PVR), Intranet (manages) channel by oneself, intelligent video Broadcast Control, information publication All be incorporated into a system platform etc. services such as tens of kinds of videos, voice, picture, text, communication, data, by TV or Computer realizes that high-definition quality video plays.
Embodiment in order to enable those skilled in the art to better understand the present invention is introduced to depending on networking below:
Depending on networking, applied portion of techniques is as described below:
Network technology (Network Technology)
Traditional ethernet (Ethernet) is improved depending on the network technology innovation networked, with potential huge on network Video flow.(Circuit is exchanged different from simple network packet packet switch (Packet Switching) or lattice network Switching), Streaming demand is met using Packet Switching depending on networking technology.Has grouping depending on networking technology Flexible, the simple and low price of exchange, is provided simultaneously with the quality and safety assurance of circuit switching, it is virtually electric to realize the whole network switch type The seamless connection of road and data format.
Switching technology (Switching Technology)
Two advantages of asynchronous and packet switch that Ethernet is used depending on networking eliminate Ethernet under the premise of complete compatible and lack It falls into, has the end-to-end seamless connection of the whole network, direct user terminal, directly carrying IP data packet.User data is in network-wide basis It is not required to any format conversion.It is the more advanced form of Ethernet depending on networking, is a real-time exchange platform, can be realized at present mutually The whole network large-scale high-definition realtime video transmission that networking cannot achieve pushes numerous network video applications to high Qinghua, unitizes.
Server technology (Server Technology)
It is different from traditional server, its Streaming Media depending on the server technology in networking and unified video platform Transmission be built upon it is connection-oriented on the basis of, data-handling capacity is unrelated with flow, communication time, single network layer energy Enough transmitted comprising signaling and data.For voice and video business, handled depending on networking and unified video platform Streaming Media Complexity many simpler than data processing, efficiency substantially increase hundred times or more than traditional server.
Reservoir technology (Storage Technology)
The ultrahigh speed reservoir technology of unified video platform in order to adapt to the media content of vast capacity and super-flow and Using state-of-the-art real time operating system, the programme information in server instruction is mapped to specific hard drive space, media Content is no longer pass through server, and moment is directly delivered to user terminal, and user waits typical time less than 0.2 second.It optimizes Sector distribution greatly reduces the mechanical movement of hard disc magnetic head tracking, and resource consumption only accounts for the 20% of the internet ad eundem IP, but The concurrent flow greater than 3 times of traditional disk array is generated, overall efficiency promotes 10 times or more.
Network security technology (Network Security Technology)
Depending on the structural design networked by servicing independent licence system, equipment and the modes such as user data is completely isolated every time The network security problem that puzzlement internet has thoroughly been eradicated from structure, does not need antivirus applet, firewall generally, has prevented black The attack of visitor and virus, structural carefree secure network is provided for user.
It services innovative technology (Service Innovation Technology)
Business and transmission are fused together by unified video platform, whether single user, private user or a net The sum total of network is all only primary automatic connection.User terminal, set-top box or PC are attached directly to unified video platform, obtain rich The multimedia video service of rich colorful various forms.Unified video platform is traditional to substitute with table schema using " menu type " Complicated applications programming, considerably less code, which can be used, can be realized complicated application, realize the new business innovation of " endless ".
Networking depending on networking is as described below:
It is a kind of central controlled network structure depending on networking, which can be Tree Network, Star network, ring network etc. class Type, but centralized control node is needed to control whole network in network on this basis.
As shown in Figure 1, being divided into access net and Metropolitan Area Network (MAN) two parts depending on networking.
The equipment of access mesh portions can be mainly divided into 3 classes: node server, access switch, terminal (including various machines Top box, encoding board, memory etc.).Node server is connected with access switch, and access switch can be with multiple terminal phases Even, and it can connect Ethernet.
Wherein, node server is the node that centralized control functions are played in access net, can control access switch and terminal. Node server can directly be connected with access switch, can also directly be connected with terminal.
Similar, the equipment of metropolitan area mesh portions can also be divided into 3 classes: metropolitan area server, node switch, node serve Device.Metropolitan area server is connected with node switch, and node switch can be connected with multiple node servers.
Wherein, node server is the node server for accessing mesh portions, i.e. node server had both belonged to access wet end Point, and belong to metropolitan area mesh portions.
Metropolitan area server is the node that centralized control functions are played in Metropolitan Area Network (MAN), can control node switch and node serve Device.Metropolitan area server can be directly connected to node switch, can also be directly connected to node server.
It can be seen that be entirely a kind of central controlled network structure of layering depending on networking network, and node server and metropolitan area The network controlled under server can be the various structures such as tree-shaped, star-like, cyclic annular.
Visually claim, access mesh portions can form unified video platform (part in virtual coil), and multiple unified videos are flat Platform can form view networking;Each unified video platform can be interconnected by metropolitan area and wide area depending on networking.
Classify depending on networked devices
1.1 embodiment of the present invention can be mainly divided into 3 classes: server depending on the equipment in networking, interchanger (including ether Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).Depending on networking can be divided on the whole Metropolitan Area Network (MAN) (or National net, World Wide Web etc.) and access net.
1.2 equipment for wherein accessing mesh portions can be mainly divided into 3 classes: node server, access switch (including ether Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).
The specific hardware structure of each access network equipment are as follows:
Node server:
As shown in Fig. 2, mainly including Network Interface Module 201, switching engine module 202, CPU module 203, disk array Module 204;
Wherein, Network Interface Module 201, the Bao Jun that CPU module 203, disk array module 204 are come in enter switching engine Module 202;Switching engine module 202 look into the operation of address table 205 to the packet come in, to obtain the navigation information of packet; And the packet is stored according to the navigation information of packet the queue of corresponding pack buffer 206;If the queue of pack buffer 206 is close It is full, then it abandons;All pack buffer queues of 202 poll of switching engine mould, are forwarded: 1) port if meeting the following conditions It is less than to send caching;2) the queue package counting facility is greater than zero.Disk array module 204 mainly realizes the control to hard disk, including The operation such as initialization, read-write to hard disk;CPU module 203 is mainly responsible between access switch, terminal (not shown) Protocol processes, to address table 205 (including descending protocol packet address table, uplink protocol package address table, data packet addressed table) Configuration, and, the configuration to disk array module 204.
Access switch:
As shown in figure 3, mainly including Network Interface Module (downstream network interface module 301, uplink network interface module 302), switching engine module 303 and CPU module 304;
Wherein, the packet (upstream data) that downstream network interface module 301 is come in enters packet detection module 305;Packet detection mould Whether mesh way address (DA), source address (SA), type of data packet and the packet length of the detection packet of block 305 meet the requirements, if met, It then distributes corresponding flow identifier (stream-id), and enters switching engine module 303, otherwise abandon;Uplink network interface mould The packet (downlink data) that block 302 is come in enters switching engine module 303;The data packet that CPU module 204 is come in enters switching engine Module 303;Switching engine module 303 look into the operation of address table 306 to the packet come in, to obtain the navigation information of packet; If the packet into switching engine module 303 is that downstream network interface is gone toward uplink network interface, in conjunction with flow identifier (stream-id) packet is stored in the queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full, It abandons;If the packet into switching engine module 303 is not that downstream network interface is gone toward uplink network interface, according to packet Navigation information is stored in the data packet queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full, Then abandon.
All pack buffer queues of 303 poll of switching engine module, are divided to two kinds of situations in embodiments of the present invention:
If the queue is that downstream network interface is gone toward uplink network interface, meets the following conditions and be forwarded: 1) It is less than that the port sends caching;2) the queue package counting facility is greater than zero;3) token that rate control module generates is obtained;
If the queue is not that downstream network interface is gone toward uplink network interface, meets the following conditions and is forwarded: 1) it is less than to send caching for the port;2) the queue package counting facility is greater than zero.
Rate control module 208 is configured by CPU module 204, to all downlink networks in programmable interval Interface generates token toward the pack buffer queue that uplink network interface is gone, to control the code rate of forwarded upstream.
CPU module 304 is mainly responsible for the protocol processes between node server, the configuration to address table 306, and, Configuration to rate control module 308.
Ethernet association turns gateway:
As shown in figure 4, mainly including Network Interface Module (downstream network interface module 401, uplink network interface module 402), switching engine module 403, CPU module 404, packet detection module 405, rate control module 408, address table 406, Bao Huan Storage 407 and MAC adding module 409, MAC removing module 410.
Wherein, the data packet that downstream network interface module 401 is come in enters packet detection module 405;Packet detection module 405 is examined Ethernet mac DA, ethernet mac SA, Ethernet length or frame type, the view networking destination address of measured data packet DA, whether meet the requirements depending on networking source address SA, depending on networking data Packet type and packet length, corresponding stream is distributed if meeting Identifier (stream-id);Then, MAC DA, MAC SA, length or frame type are subtracted by MAC removing module 410 (2byte), and enter corresponding receive and cache, otherwise abandon;
Downstream network interface module 401 detects the transmission caching of the port, if there is Bao Ze is according to the view of packet networking purpose Address D A knows the ethernet mac DA of corresponding terminal, adds the ethernet mac DA of terminal, Ethernet assists the MAC for turning gateway SA, Ethernet length or frame type, and send.
The function that Ethernet association turns other modules in gateway is similar with access switch.
Terminal:
It mainly include Network Interface Module, Service Processing Module and CPU module;For example, set-top box mainly connects including network Mouth mold block, video/audio encoding and decoding engine modules, CPU module;Encoding board mainly includes Network Interface Module, video encoding engine Module, CPU module;Memory mainly includes Network Interface Module, CPU module and disk array module.
The equipment of 1.3 metropolitan area mesh portions can be mainly divided into 2 classes: node server, node switch, metropolitan area server. Wherein, node switch mainly includes Network Interface Module, switching engine module and CPU module;Metropolitan area server mainly includes Network Interface Module, switching engine module and CPU module are constituted.
2, networking data package definition is regarded
2.1 access network data package definitions
Access net data packet mainly include following sections: destination address (DA), source address (SA), reserve bytes, payload(PDU)、CRC。
As shown in the table, the data packet for accessing net mainly includes following sections:
DA SA Reserved Payload CRC
Wherein:
Destination address (DA) is made of 8 bytes (byte), and first character section indicates type (such as the various associations of data packet Discuss packet, multicast packet, unicast packet etc.), be up to 256 kinds of possibility, the second byte to the 6th byte is metropolitan area net address, Seven, the 8th bytes are access net address;
Source address (SA) is also to be made of 8 bytes (byte), is defined identical as destination address (DA);
Reserve bytes are made of 2 bytes;
The part payload has different length according to the type of different data packets, is if it is various protocol packages 64 bytes are 32+1024=1056 bytes if it is single group unicast packets words, are not restricted to above 2 kinds certainly;
CRC is made of 4 bytes, and calculation method follows the Ethernet CRC algorithm of standard.
2.2 Metropolitan Area Network (MAN) packet definitions
The topology of Metropolitan Area Network (MAN) is pattern, may there is 2 kinds, connection even of more than two kinds, i.e. node switching between two equipment It can all can exceed that 2 kinds between machine and node server, node switch and node switch, node switch and node server Connection.But the metropolitan area net address of metropolitan area network equipment is uniquely, to close to accurately describe the connection between metropolitan area network equipment System, introduces parameter in embodiments of the present invention: label, uniquely to describe a metropolitan area network equipment.
(Multi-Protocol Label Switch, multiprotocol label are handed over by the definition of label and MPLS in this specification Change) label definition it is similar, it is assumed that between equipment A and equipment B there are two connection, then data packet from equipment A to equipment B just There are 2 labels, data packet also there are 2 labels from equipment B to equipment A.Label is divided into label, outgoing label, it is assumed that data packet enters The label (entering label) of equipment A is 0x0000, and the label (outgoing label) when this data packet leaves equipment A may reform into 0x0001.The networking process of Metropolitan Area Network (MAN) is to enter network process under centralized control, also means that address distribution, the label of Metropolitan Area Network (MAN) Distribution be all to be dominated by metropolitan area server, node switch, node server be all passively execute, this point with The label distribution of MPLS is different, and the distribution of the label of MPLS is the result that interchanger, server are negotiated mutually.
As shown in the table, the data packet of Metropolitan Area Network (MAN) mainly includes following sections:
DA SA Reserved Label Payload CRC
That is destination address (DA), source address (SA), reserve bytes (Reserved), label, payload (PDU), CRC.Its In, the format of label, which can refer to, such as gives a definition: label is 32bit, wherein high 16bit retains, only with low 16bit, its position Set is between the reserve bytes and payload of data packet.
Based on the above-mentioned characteristic of view networking, the file for proposing the embodiment of the present invention uploads scheme, it then follows regards the association of networking View, can be with real-time display upload progress in upload procedure.
Embodiment one
The file uploading method of the embodiment of the present invention can be applied in view networking.Depending on may include view networking clothes in networking Business device and the terminal (namely at this depending on the terminal registered on networked server) depending on networked server is accessed, a view networking takes Business device can access multiple terminals, be equipped with browser in terminal.Wherein, regarding networked server can be used for be linked into the view The terminal service of networked server, such as the forwarding of data, the forwarding of signaling, the storage of data, etc..Browser can be used for root Data, or the data needed for obtaining in view networked server, etc. are uploaded to view networked server according to the demand of user.This hair In bright embodiment, terminal can for various meeting set-top boxes, videophone set-top box, operation pilot teaching set-top box, Streaming Media gateway, Gateway, media synthesizer, PC (Personal Computer, personal computer) mobile phone, tablet computer, wearable device are stored, Etc..
Referring to Fig. 5, a kind of step flow chart of file uploading method of the embodiment of the present invention one is shown.
The file uploading method of the embodiment of the present invention may comprise steps of:
Step 501, the browser of source terminal, which obtains, uploads data, and calls Preset Transfer interface, based on view networking protocol The upload data are uploaded to the view networked server.
In the embodiment of the present invention, source terminal is the terminal of the upper transmitting file needed for uploading to view networked server.Source terminal The available upload data of browser, and upload the upload data to depending on networked server.In the embodiment of the present invention, Yong Huke Mainly upper transmitting file to be uploaded in view networked server.Therefore uploading data mainly may include upper transmitting file, upload text Part may include picture, various documents (text, table etc.), etc..Certainly, uploading data can also include other data, such as Relevant information, relevant information of source terminal of the browser of source terminal etc..
In a kind of specific implementation, user interface can be shown in a browser, and user can hold in the interface Row corresponding operation obtains upload data to trigger browser.For example, can show file selection function in the interface of browser Module, file upload function module etc..User can click file selection function module, to select the upload for needing to upload text Part, and click file upload function module.Browser can learn that user wants to select after detecting the aforesaid operations of user The upper transmitting file selected uploads in view networked server, therefore browser obtains the upper transmitting file of user's selection, by upload text Part, which is added to, to be uploaded in data.
In the embodiment of the present invention, the coffret communicated with depending on networked server can be preset on a web browser, it is clear Looking at device can be by the Preset Transfer interface, based on being communicated depending on networking protocol with depending on networked server.In a kind of specific reality In existing mode, Preset Transfer interface can be XML Http Request (expansible hypertext transfer request, the expansible mark of XML Remember language, Http hypertext transfer protocol, Request request) interface.XML Http Request object can be to service In the case that device submits full page, local updating webpage is realized.After page whole loaded, client passes through the object To server request data, after received server-side data and processing, to client feedback data.XML Http Request couple As the complete access to Http agreement can be provided, the energy including making POST and HEAD request and common GET request Power.XML Http Request can either synchronously or asynchronously return to the response of server, and can be with text or a DOM document Form returned content.In the embodiment of the present invention, XML Http Request interface can also provide the access to view networking protocol, Therefore browser can be set by call XML Http Request interface, based on view networking protocol and view networked server into Row communication.
After the browser of source terminal obtains upload data, Preset Transfer interface can be called, is based on view networking protocol to view Networked server uploads the upload data.
In a preferred embodiment, source terminal browser call Preset Transfer interface, based on view networking protocol to Described the step of uploading the upload data depending on networked server may include: that the browser of source terminal is based on view networking protocol, By it is described upload data be encapsulated as include first path information first regard networking protocol data packet;The browser of source terminal calls Preset Transfer interface is sent to the view networking clothes depending on networking protocol data packet for described first according to the first path information Business device.
Wherein, first path information is used to indicate transmission path of the first view networking protocol data packet in view networking.Source It is arranged on the browser of terminal and (is specifically as follows XML Http with depending on the above-mentioned Preset Transfer interface that networked server is communicated Request interface), depending on the first communication port communicated with the browser of source terminal can be set on networked server.Cause This, first path information may include the information of Preset Transfer interface on the browser of above-mentioned source terminal, on view networked server The information of first communication port, first transmission direction etc., the first transmission direction are to be connect by Preset Transfer on the browser of source terminal First communication port on mouth to view networked server, wherein the information of Preset Transfer interface may include the name of Preset Transfer interface Claim, identify etc., the information of the first communication port may include the title of communication port, mark, address etc..
In a preferred embodiment, the conversion formatted to upper transmitting file can also be preset on a web browser Interface, browser can preset translation interface by this and format to upper transmitting file.It can be incited somebody to action in the embodiment of the present invention Upper transmitting file uploads again after being converted into binary format.Therefore, after the browser of source terminal obtains and uploads data, source terminal Browser call default translation interface, upper transmitting file is converted into binary format.
In a kind of specific implementation, default translation interface can be Form Data interface.Pass through Form Data couple The key/value pair requested is sent with XML Http Request interface as one group can be assembled.It can be with more flexible convenient transmission Form data, because can be used independently of list.If the type of coding of list is set as multipart/form- Data, then the data format that the data format transmitted by Form Data and list are transmitted by submit () method is identical, Namely binary file.This coding mode of multipart/form-data can handle list in a manner of binary stream Data, this coding mode also can be encapsulated into the file content that file domain is specified in required parameter.Therefore, Form Data couple File as upper transmitting file can be converted to binary format.
The benefit for carrying out file upload using binary file is as follows: 1, binary file, which compares, saves space, stores number When word, especially full mold number, binary system more saves space.2, it is all unformatted with binary system that the data of calculating are participated in memory It stores, therefore, using binary storage to file with regard to faster.3, for some more accurate data, two are used System stores the loss that not will cause significance bit.
Step 502, the browser of source terminal carries out the Preset Transfer interface by predeterminable event after starting upload It monitors, obtains the event attribute of the predeterminable event.
In the embodiment of the present invention, the event for monitoring file upload progress can be preset, the browser of source terminal is being opened Begin after uploading, the predeterminable event can be triggered, the Preset Transfer interface on above-mentioned browser is supervised by the predeterminable event It listens, to obtain the Preset Transfer interface to the upload situation for uploading data, the thing of the predeterminable event can be obtained after monitoring in real time Part attribute.
In a preferred embodiment, predeterminable event can be onprogress event, pass through onprogress event XML Http Request interface is monitored, by the event attribute for monitoring available onprogress event.
Step 503, the browser of source terminal determines the upload progress of the upper transmitting file according to the event attribute.
The event attribute that the browser of source terminal monitors Preset Transfer interface according to predeterminable event, can be true Surely the upload progress of upper transmitting file.
In the concrete realization, the event attribute of predeterminable event may include the total size of upper transmitting file and currently upload Size.Therefore, the quotient obtained by calculating the size currently uploaded divided by the total size of upper transmitting file, it can uploaded The upload progress of file, namely the quotient's (uploading percentage) being calculated is the upload progress for going up transmitting file.
For example, the event attribute that the time monitors Preset Transfer interface can for onprogress event To include max and value, wherein in max expression transmitting file total size, value indicates the size currently uploaded, then The value of value/max is upload progress.
Step 504, the browser of source terminal shows the upload progress.
The browser of source terminal can show upload progress after determining upload progress in interface.For example, can be with The form Dynamically Announce of progress bar, can also be with the digital form Dynamically Announce, etc. of progress percentage.
In the concrete realization, the browser of source terminal can carry out parsing rendering to upload progress, make its visual presentation In a browser.
In parsing render process, browser can parse following three contents:
(1) HTML, parsing html file can generate a dom tree.
(2) CSS, parsing CSS can generate CSS rule tree.
(3) Javascript script, parsing Javascript script are mainly grasped by DOM API and CSSOM API Make dom tree and CSS rule tree.
Specifically, meeting is " from upper when browser obtains html file (namely an above-mentioned server directory tree) Under " load, and parsing rendering is carried out during loading.
1. HTML can be parsed into a dom tree by browser, the building process of dom tree is an extreme saturation process.
2. CSS is parsed into CSS rule tree.
3. constructing Render Tree (render tree) according to dom tree and CSSOM.
4. there is Render Tree, browser can know that the CSS definition for having which node, each node in webpage And their subordinate relation.Operation is referred to as Layout in next step, as the term suggests it is exactly to calculate each node in screen Position.
5. it is again in next step exactly to draw, i.e. traversal Render Tree, and each node is drawn using UI back end layers.
Depending on networked server after finishing receiving the first view networking protocol data packet, namely after finishing receiving transmitting file, Parsed to first depending on networking protocol data packet, obtain including upper transmitting file, this can be saved depending on networked server Upper transmitting file.Other subsequent terminals can obtain transmitting file on this from depending on networked server, the operation such as be checked, printed, To realize that upper transmitting file is shared in depending on networking.
The embodiment of the present invention can be realized by the browser of source terminal uploads required upper transmitting file in depending on networking, will Upper transmitting file is uploaded in view networked server, and can be with real-time display upload progress, to meet use in upload procedure The demand at family promotes user experience.
Embodiment two
Referring to Fig. 6, a kind of step flow chart of file uploading method of the embodiment of the present invention two is shown.
The file uploading method of the embodiment of the present invention may comprise steps of:
Step 601, the browser of source terminal, which obtains, uploads data, and calls Preset Transfer interface, based on view networking protocol The upload data are uploaded to the view networked server.
In the embodiment of the present invention, source terminal is the terminal of the upper transmitting file needed for uploading to view networked server, and target is whole End regards the terminal for the upper transmitting file that networked server is sent to receive.The available upload data of the browser of source terminal, and to The upload data are uploaded depending on networked server.In the embodiment of the present invention, the clear of other multiple terminals can be bound on source terminal Look at device, user can mainly upload to upper transmitting file in view networked server, and specified view networked server is by upper transmitting file It is sent in the browser of target terminal.Therefore the browser that data mainly may include upper transmitting file and target terminal is uploaded Information.
In a kind of specific implementation, user interface can be shown in a browser, and user can hold in the interface Row corresponding operation obtains upload data to trigger browser.For example, can show file selection function in the interface of browser Module, browser selection function module, file upload function module etc..User can click file selection function module, so as to Selection needs the upper transmitting file that uploads, and clicks browser selection function module, so as to the browser of selection target terminal, and point Hit file upload function module.Browser can learn that user wants the upper of selection after detecting the aforesaid operations of user Transmitting file uploads in view networked server, and specifies and send the clear of target terminal for transmitting file on this depending on networked server Look at device, therefore browser obtains the information of the upper transmitting file of user's selection and the browser of target terminal, by transmitting file on this and The information of the browser of target terminal, which is added to, to be uploaded in data.
The browser of source terminal is obtained after uploading data, call Preset Transfer interface, is based on view networking protocol to view Networked server uploads the detailed process of the upload data, referring to the related description of step 501 in above-described embodiment one, originally Inventive embodiments are no longer discussed in detail herein.
Step 602, the browser of source terminal carries out the Preset Transfer interface by predeterminable event after starting upload It monitors, obtains the event attribute of the predeterminable event.
Step 603, the browser of source terminal determines the upload progress of the upper transmitting file according to the event attribute.
Step 604, the browser of source terminal shows the upload progress.
For step 602~step 604 specific descriptions, referring to step 502~step 504 phase in above-described embodiment one It speaks on somebody's behalf bright, the embodiment of the present invention is no longer discussed in detail herein.
Step 605, the browser depending on networked server after finishing receiving the upper transmitting file, according to the target terminal Information, based on the browser that the upper transmitting file is sent to the target terminal depending on networking protocol.
Depending on networked server after finishing receiving the first view networking protocol data packet, namely after finishing receiving transmitting file, Parsed to first depending on networking protocol data packet, obtain including upper transmitting file and target terminal browser letter Breath.It can be according to the information of the browser of target terminal, based on being sent to upper transmitting file depending on networking protocol depending on networked server The browser of target terminal.
In a preferred embodiment, the information of the browser of target terminal may include on the browser of target terminal The information etc. of Preset Transfer interface.Information depending on networked server according to the browser of the target terminal, based on view networking association The step of upper transmitting file is sent to the browser of the target terminal by view may include: that view networked server is based on view connection The upload Document encapsulation is the second view networking protocol data packet for including the second routing information by fidonetFido;Depending on the Internet services Device is joined second view by the Preset Transfer interface of the browser of the target terminal according to second routing information FidonetFido data packet is sent to the browser of the target terminal.
Wherein, the second routing information is used to indicate transmission road of the second view networking protocol data packet in view networking Diameter.Setting (is specifically as follows with depending on the above-mentioned Preset Transfer interface that networked server is communicated on the browser of target terminal XML Http Request interface), depending on communicated with the browser of target terminal second can be set on networked server Communication port.Therefore, the second routing information may include the information of Preset Transfer interface on the browser of above-mentioned target terminal, view The information of second communication port, second transmission direction etc. on networked server, the second transmission direction are by view networked server Preset Transfer interface in second communication port to the browser of target terminal, wherein the information of Preset Transfer interface may include pre- If the title of coffret, mark etc., the information of the second communication port may include the title of communication port, mark, address etc..
Step 606, the browser of target terminal shows the upper transmitting file.
After the browser of target terminal receives the second view networking protocol data packet, to the second view networking protocol data packet Parsed, obtain including upper transmitting file.The browser of target terminal can show transmitting file on this, so that user looks into It sees, download.
The detailed process of transmitting file is shown for the browser of target terminal, referring to step 504 in above-described embodiment one The related description of display process, the embodiment of the present invention are no longer discussed in detail herein.
In the embodiment of the present invention, user can specify view networked server will be on this in the upper transmitting file needed for uploading Transmitting file is sent to the browser of target terminal, so that the user of target terminal be facilitated to check, download to transmitting file on this Deng operation, further satisfaction user demand.
Embodiment three
Referring to Fig. 7, a kind of step flow chart of file uploading method of the embodiment of the present invention three is shown.
The file uploading method of the embodiment of the present invention may comprise steps of:
Step 701, the browser of source terminal, which obtains, uploads data, and calls Preset Transfer interface, based on view networking protocol The upload data are uploaded to the view networked server.
In the embodiment of the present invention, source terminal is the terminal of the upper transmitting file needed for uploading to view networked server, and target is whole End regards the terminal for the upper transmitting file that networked server is sent to receive.The available upload data of the browser of source terminal, and to The upload data are uploaded depending on networked server.In the embodiment of the present invention, beating for other multiple terminals can be bound on source terminal Print machine (these printers in networked server also in now depending on being registered), upper transmitting file mainly can be uploaded to view by user In networked server, and specifies and send upper transmitting file in the printer of target terminal depending on networked server.Therefore number is uploaded According to the information for the printer that mainly may include upper transmitting file and target terminal.
In a kind of specific implementation, user interface can be shown in a browser, and user can hold in the interface Row corresponding operation obtains upload data to trigger browser.For example, can show file selection function in the interface of browser Module, printer selection function module, file upload function module etc..User can click file selection function module, so as to Selection needs the upper transmitting file that uploads, and clicks printer selection function module, so as to the printer of selection target terminal, and point Hit file upload function module.Browser can learn that user wants the upper of selection after detecting the aforesaid operations of user Transmitting file uploads in view networked server, and specifies and send beating for target terminal for transmitting file on this depending on networked server Print machine, therefore browser obtains the information of the upper transmitting file of user's selection and the printer of target terminal, by transmitting file on this and The information of the printer of target terminal, which is added to, to be uploaded in data.
The browser of source terminal is obtained after uploading data, call Preset Transfer interface, is based on view networking protocol to view Networked server uploads the detailed process of the upload data, referring to the related description of step 501 in above-described embodiment one, originally Inventive embodiments are no longer discussed in detail herein.
Step 702, the browser of source terminal carries out the Preset Transfer interface by predeterminable event after starting upload It monitors, obtains the event attribute of the predeterminable event.
Step 703, the browser of source terminal determines the upload progress of the upper transmitting file according to the event attribute.
Step 704, the browser of source terminal shows the upload progress.
For step 702~step 704 specific descriptions, referring to step 502~step 504 phase in above-described embodiment one It speaks on somebody's behalf bright, the embodiment of the present invention is no longer discussed in detail herein.
Step 705, the printer depending on networked server after finishing receiving the upper transmitting file, according to the target terminal Information, based on the printer that the upper transmitting file is sent to the target terminal depending on networking protocol.
Depending on networked server after finishing receiving the first view networking protocol data packet, namely after finishing receiving transmitting file, Parsed to first depending on networking protocol data packet, obtain including upper transmitting file and target terminal printer letter Breath.It can be according to the information of the printer of target terminal, based on being sent to upper transmitting file depending on networking protocol depending on networked server The printer of target terminal.
In a preferred embodiment, the information of the printer of target terminal may include on the printer of target terminal The information etc. of default receiving port.Information depending on networked server according to the printer of the target terminal, based on view networking association The step of upper transmitting file is sent to the printer of the target terminal by view may include: that view networked server is based on view connection The upload Document encapsulation is the third view networking protocol data packet for including third routing information by fidonetFido;Depending on the Internet services The third is regarded and is joined by the default receiving port of the printer of the target terminal according to the third routing information by device FidonetFido data packet is sent to the printer of the target terminal.
Wherein, third routing information is used to indicate transmission road of the third view networking protocol data packet in view networking Diameter.The above-mentioned default receiving port communicated with depending on networked server is set on the printer of target terminal, depending on the Internet services The third communication port communicated with the printer of target terminal can be set on device.Therefore, third routing information can wrap Include on the printer of above-mentioned target terminal preset receiving port information, view networked server on third communication port information, Third transmission direction etc., third transmission direction are by third communication port to the printer of target terminal on view networked server Default receiving port, wherein the information of default receiving port may include title, the mark etc. of default receiving port, the third communication The information of port may include title, mark, address of communication port etc..
Step 706, the printer of target terminal prints the upper transmitting file.
After target terminal receives the second view networking protocol data packet, this second is solved depending on networking protocol data packet Analysis, obtain including upper transmitting file.The printer of target terminal can print transmitting file on this.
In the embodiment of the present invention, user can specify view networked server will be on this in the upper transmitting file needed for uploading Transmitting file is sent to the printer of target terminal, so that the printer of target terminal is facilitated to print transmitting file on this, it is further full Sufficient user demand.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented Necessary to example.
Example IV
Referring to Fig. 8, a kind of file for showing the embodiment of the present invention four uploads the structural block diagram of device.The device can answer For regarding in networking, the view networking includes the terminal of view networked server and the access view networked server, the terminal Browser is installed.
It may include following modules that the file of the embodiment of the present invention, which uploads device:
The browser of source terminal includes:
Uploading module 801 uploads data for obtaining, and calls Preset Transfer interface, based on view networking protocol to described The upload data are uploaded depending on networked server;The upload data include uploading file;
Module 802 is monitored, for being monitored by predeterminable event the Preset Transfer interface after starting upload, Obtain the event attribute of the predeterminable event;
Determining module 803, for determining the upload progress of the upper transmitting file according to the event attribute;
Display module 804, for showing the upload progress.
In a preferred embodiment, the uploading module includes: the first data packaging unit, for based on view networking Agreement, by it is described upload data be encapsulated as include first path information first regard networking protocol data packet;The first path Information is used to indicate transmission path of the first view networking protocol data packet in view networking;First data transmission unit is used In calling Preset Transfer interface, the view is sent to depending on networking protocol data packet by described first according to the first path information Networked server.
In a preferred embodiment, described to upload the information that data further include the browser of target terminal, the view Networked server includes: the first sending module, for after finishing receiving the upper transmitting file, according to the clear of the target terminal The information of device is look at, based on the browser that the upper transmitting file is sent to the target terminal depending on networking protocol;The target is whole The browser at end, for showing the upper transmitting file.
In a preferred embodiment, first sending module includes: the second data packaging unit, for based on view The upload Document encapsulation is the second view networking protocol data packet for including the second routing information by networking protocol;Described second Routing information is used to indicate transmission path of the second view networking protocol data packet in view networking;Second data send single Member is used for according to second routing information, by the Preset Transfer interface of the browser of the target terminal, by described second The browser of the target terminal is sent to depending on networking protocol data packet.
In a preferred embodiment, described to upload the information that data further include the printer of target terminal, the view Networked server includes: the second sending module, for after finishing receiving the upper transmitting file, according to beating for the target terminal The information of print machine, based on the printer that the upper transmitting file is sent to the target terminal depending on networking protocol;The target is whole The printer at end, for printing the upper transmitting file.
In a preferred embodiment, second sending module includes: third data packaging unit, for based on view The upload Document encapsulation is the third view networking protocol data packet for including third routing information by networking protocol;The third Routing information is used to indicate transmission path of the third view networking protocol data packet in view networking;Third data send single Member is used for according to the third routing information, by the default receiving port of the printer of the target terminal, by the third The printer of the target terminal is sent to depending on networking protocol data packet.
In a preferred embodiment, the browser of the source terminal further include: conversion module, for calling default turn The upper transmitting file is converted to binary format by alias.
The embodiment of the present invention can be realized by the browser of source terminal uploads required upper transmitting file in depending on networking, will Upper transmitting file is uploaded in view networked server, and can be with real-time display upload progress, to meet use in upload procedure The demand at family promotes user experience.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Device is uploaded to a kind of file uploading method provided by the present invention and a kind of file above, has carried out detailed Jie It continues, used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only It is to be used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, according to this hair Bright thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not manage Solution is limitation of the present invention.

Claims (10)

1. a kind of file uploading method, which is characterized in that the method is applied in view networking, and the view networking includes view networking The terminal of server and the access view networked server, the terminal are equipped with browser, which comprises
The browser of source terminal, which obtains, uploads data, and calls Preset Transfer interface, is networked based on view networking protocol to the view Server uploads the upload data;The upload data include uploading file;
The browser of the source terminal monitors the Preset Transfer interface after starting upload, through predeterminable event, obtains To the event attribute of the predeterminable event;
The browser of the source terminal determines the upload progress of the upper transmitting file according to the event attribute;
The browser of the source terminal shows the upload progress.
2. the method according to claim 1, wherein the calling Preset Transfer interface, is based on view networking protocol The step of uploading the upload data to the view networked server, comprising:
The browser of the source terminal is based on view networking protocol, and the upload data are encapsulated as including the of first path information One view networking protocol data packet;The first path information is used to indicate the first view networking protocol data packet in view networking Transmission path;
The browser of the source terminal calls Preset Transfer interface, assists the first view networking according to the first path information View data packet is sent to the view networked server.
3. the method according to claim 1, wherein described upload the browser that data further include target terminal Information, the method also includes:
It is described depending on networked server after finishing receiving the upper transmitting file, the information of the browser according to the target terminal, Based on the browser that the upper transmitting file is sent to the target terminal depending on networking protocol;
The browser of the target terminal shows the upper transmitting file.
4. according to the method described in claim 3, it is characterized in that, the information of the browser according to the target terminal, is based on The step of upper transmitting file is sent to the browser of the target terminal depending on networking protocol, comprising:
The view networked server is based on view networking protocol, is include the second routing information second by the upload Document encapsulation Depending on networking protocol data packet;Second routing information is used to indicate the second view networking protocol data packet in view networking Transmission path;
The view networked server is connect according to second routing information by the Preset Transfer of the browser of the target terminal Mouthful, described second is sent to depending on networking protocol data packet the browser of the target terminal.
5. the method according to claim 1, wherein described upload the printer that data further include target terminal Information, the method also includes:
It is described depending on networked server after finishing receiving the upper transmitting file, the information of the printer according to the target terminal, Based on the printer that the upper transmitting file is sent to the target terminal depending on networking protocol;
The printer of the target terminal prints the upper transmitting file.
6. according to the method described in claim 5, it is characterized in that, the information of the printer according to the target terminal, is based on The step of upper transmitting file is sent to the printer of the target terminal depending on networking protocol, comprising:
The view networked server is based on view networking protocol, is the third for including third routing information by the upload Document encapsulation Depending on networking protocol data packet;The third routing information is used to indicate the third view networking protocol data packet in view networking Transmission path;
The view networked server passes through the default receiving end of the printer of the target terminal according to the third routing information Mouthful, the third is sent to the printer of the target terminal depending on networking protocol data packet.
7. the method according to claim 1, wherein the step of the browser acquisition upload data in the source terminal After rapid, further includes:
The browser of the source terminal calls default translation interface, and the upper transmitting file is converted to binary format.
8. a kind of file uploads device, which is characterized in that described device is applied in view networking, and the view networking includes view networking The terminal of server and the access view networked server, the terminal are equipped with browser,
The browser of source terminal includes:
Uploading module uploads data for obtaining, and calls Preset Transfer interface, is networked and is taken to the view based on view networking protocol Business device uploads the upload data;The upload data include uploading file;
Module is monitored, for being monitored by predeterminable event the Preset Transfer interface after starting upload, is obtained described The event attribute of predeterminable event;
Determining module, for determining the upload progress of the upper transmitting file according to the event attribute;
Display module, for showing the upload progress.
9. device according to claim 8, which is characterized in that the uploading module includes:
First data packaging unit, for based on view networking protocol, the upload data being encapsulated as including first path information First view networking protocol data packet;The first path information is used to indicate the first view networking protocol data packet and joins in view Transmission path in net;
First data transmission unit joins first view according to the first path information for calling Preset Transfer interface FidonetFido data packet is sent to the view networked server.
10. device according to claim 8, which is characterized in that described to upload the browser that data further include target terminal Information,
Described depending on networked server includes: the first sending module, for after finishing receiving the upper transmitting file, according to the mesh The information for marking the browser of terminal, based on the browser that the upper transmitting file is sent to the target terminal depending on networking protocol;
The browser of the target terminal, for showing the upper transmitting file.
CN201811023098.7A 2018-09-03 2018-09-03 File uploading method and device Active CN109413138B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811023098.7A CN109413138B (en) 2018-09-03 2018-09-03 File uploading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811023098.7A CN109413138B (en) 2018-09-03 2018-09-03 File uploading method and device

Publications (2)

Publication Number Publication Date
CN109413138A true CN109413138A (en) 2019-03-01
CN109413138B CN109413138B (en) 2022-03-25

Family

ID=65464492

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811023098.7A Active CN109413138B (en) 2018-09-03 2018-09-03 File uploading method and device

Country Status (1)

Country Link
CN (1) CN109413138B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110187846A (en) * 2019-04-17 2019-08-30 视联动力信息技术股份有限公司 Print system, method and apparatus
CN111159291A (en) * 2019-12-19 2020-05-15 视联动力信息技术股份有限公司 Progress bar display method and device, terminal equipment and storage medium
CN112491938A (en) * 2019-09-11 2021-03-12 深圳艾派网络科技股份有限公司 JavaFX-custom-based object storage uploading and downloading method
CN112685367A (en) * 2020-12-30 2021-04-20 上海掌门科技有限公司 File sharing progress indication method, electronic device and computer readable storage medium
CN114079819A (en) * 2020-08-21 2022-02-22 海信视像科技股份有限公司 Content display method and display equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662484A (en) * 2008-08-28 2010-03-03 中国科学院声学研究所 Method for uploading file of RFC1867 specification based HTTP protocol
US20110016169A1 (en) * 2009-07-20 2011-01-20 Matthew Cahill Rendering a web page using content communicated to a browser application from a process running on a client
WO2011011130A1 (en) * 2009-07-20 2011-01-27 Facebook, Inc. Monitoring a background process in a web browser and providing status of same
CN103188283A (en) * 2011-12-27 2013-07-03 腾讯科技(深圳)有限公司 Method, server and system for file uploading and downloading
CN105656980A (en) * 2014-12-08 2016-06-08 深圳云之家网络有限公司 File processing method, device and system
CN106254505A (en) * 2016-08-25 2016-12-21 厦门雅迅网络股份有限公司 A kind of system and method monitoring ftp server end files passe progress

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662484A (en) * 2008-08-28 2010-03-03 中国科学院声学研究所 Method for uploading file of RFC1867 specification based HTTP protocol
US20110016169A1 (en) * 2009-07-20 2011-01-20 Matthew Cahill Rendering a web page using content communicated to a browser application from a process running on a client
WO2011011130A1 (en) * 2009-07-20 2011-01-27 Facebook, Inc. Monitoring a background process in a web browser and providing status of same
CN103188283A (en) * 2011-12-27 2013-07-03 腾讯科技(深圳)有限公司 Method, server and system for file uploading and downloading
CN105656980A (en) * 2014-12-08 2016-06-08 深圳云之家网络有限公司 File processing method, device and system
CN106254505A (en) * 2016-08-25 2016-12-21 厦门雅迅网络股份有限公司 A kind of system and method monitoring ftp server end files passe progress

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110187846A (en) * 2019-04-17 2019-08-30 视联动力信息技术股份有限公司 Print system, method and apparatus
CN112491938A (en) * 2019-09-11 2021-03-12 深圳艾派网络科技股份有限公司 JavaFX-custom-based object storage uploading and downloading method
CN112491938B (en) * 2019-09-11 2023-04-07 深圳艾派网络科技股份有限公司 JavaFX-custom-based object storage uploading and downloading method
CN111159291A (en) * 2019-12-19 2020-05-15 视联动力信息技术股份有限公司 Progress bar display method and device, terminal equipment and storage medium
CN114079819A (en) * 2020-08-21 2022-02-22 海信视像科技股份有限公司 Content display method and display equipment
CN112685367A (en) * 2020-12-30 2021-04-20 上海掌门科技有限公司 File sharing progress indication method, electronic device and computer readable storage medium

Also Published As

Publication number Publication date
CN109413138B (en) 2022-03-25

Similar Documents

Publication Publication Date Title
CN108234816B (en) The method and device of resource information real-time synchronization is monitored between a kind of monitoring device
CN108965912B (en) A kind of method, client and the server of video data processing
CN109413138A (en) File uploading method and device
CN109525460A (en) A kind of method and apparatus of view networking number resource monitoring
CN109618119A (en) Method and device for business processing
CN109286826A (en) Information display method and device
CN108810581A (en) A kind of update method and device of menu
CN109145249A (en) Data rendering method and device
CN108989837A (en) A kind of method and apparatus of picture interception
CN110381119A (en) A kind of acquisition methods of log information, system and device and storage medium
CN110022295A (en) A kind of method and view networked system of data transmission
CN109218093A (en) A kind of method and system obtaining alarm
CN110191315A (en) A kind of monitoring inspection method and device based on view networking
CN109766753A (en) A kind of finger print information acquisition methods and device
CN108307212A (en) A kind of file order method and device
CN109617830A (en) A kind of method and apparatus regarding real time demonstration business in networking
CN108073665B (en) A kind of switching method and apparatus of view the networking page and html page
CN109284265A (en) A kind of date storage method and system
CN110460644A (en) A kind of data processing method and streaming media server
CN110113558A (en) Data processing method, device, system and computer readable storage medium
CN109698818A (en) A kind of acquisition online user and the method and apparatus across streaming media communication
CN109462573A (en) A kind of method for operating traffic thereof and device based on time shaft
CN108881791B (en) A kind of conference control method and Conference control device based on view networking
CN110430168A (en) A kind of method and apparatus of data compression
CN109257629A (en) A kind of data transmission system

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