CN102932463A - Method and system for uploading data - Google Patents
Method and system for uploading data Download PDFInfo
- Publication number
- CN102932463A CN102932463A CN2012104413038A CN201210441303A CN102932463A CN 102932463 A CN102932463 A CN 102932463A CN 2012104413038 A CN2012104413038 A CN 2012104413038A CN 201210441303 A CN201210441303 A CN 201210441303A CN 102932463 A CN102932463 A CN 102932463A
- Authority
- CN
- China
- Prior art keywords
- file
- server
- information
- metadata information
- applet program
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a method for uploading data. The data comprise folders, and folders contain files. The method comprises the steps of S1: uploading directory structure information of folders, metadata information of files and files to a server through an Applet program; and S2: creating target folders by the server according to the structure information, and saving files in corresponding target folders according to the metadata information. By the aid of the method and a system for uploading the data, folders can be uploaded to the server through a client side.
Description
Technical field
The present invention relates to network field basically, more specifically, relates to a kind of data uploading method and system.
Background technology
In the application software based on the B/S framework, exist a large amount of File Upload demands.Current most B/S software can only support the user manually to select the file that need to upload, and in actual use, the user may exist a large amount of files, and these files often in the local operation system form with multistage file exist, provide based on B/S the file upload function, will for the user bring convenient greatly.
The technology of usefulness mainly is by the exploitation browser control part at present, realizes the file upload function.The browser control part Technology Need is for browser dissimilar, different editions, developing corresponding control realizes from the function of local operation system file reading directory information, by control the associative directory fileinfo is delivered to service end, is carried out again the recovery of bibliographic structure by service end.
File based on browser control part is uploaded, and the problem that mainly faces is browser compatibility and exploitation transplantability problem.Because control is developed for particular browser, thus can not between different browsers, use, like this so that the compatibility of system is had a greatly reduced quality the browser that the user can only be confined to fix.Secondly, different controls have the API of special correspondence, need the developer to develop accordingly for different controls, and the exploitation transplantability is relatively poor, is unfavorable for promoting the use of.
Summary of the invention
In order to overcome defects, the present invention proposes a kind of data uploading method and system, solved the technical problem how upload file is pressed from both sides.
According to an aspect of the present invention, a kind of data uploading method is provided, described data comprise file, include file in the described file, wherein, described method comprises: step S1: by the Applet program with the metadata information of the bibliographic structure information of described file, described file and described File Upload to server; And step S2: described server is set up destination folder according to described structural information, and according to described metadata information described file is stored in the corresponding destination folder.
Preferably, described method also comprises: step S01: the user is by the webpage of uploading of browser logon server; Step S02: described browser is downloaded the Applet program from the described webpage of uploading automatically; And step S03: described user wants the data uploaded by described Applet procedure Selection.
Preferably, described step S1 comprises: step S11: call this locality of the Java by described Applet program, reads metadata information and the described file of the bibliographic structure information of described file, described file; Step S12: described bibliographic structure information and described metadata information are sent to server by described Applet program; And step S13: described file is sent to described server by described Applet program.
Preferably, described step S1 also comprises: described file is cut into a plurality of file fragments, described step S13 comprises: by described Applet program described a plurality of file fragments are passed through Http agreement concurrent transmission to server, and wherein, described step S2 also comprises: described server is combined as described file with described a plurality of file fragments.
Preferably, described file being cut into a plurality of file fragments comprises: be cut into a plurality of file fragments according to the described file of the large young pathbreaker of the predefined file fragment of user
Preferably, described step S1 comprises: by the Applet program metadata information and the described file of the bibliographic structure information of described file, described file is sent to Web server by the Http agreement.
Preferably, described step S1 comprises: by the Applet program metadata information and the described file of the bibliographic structure information of described file, described file is sent to the Ftp server by the Ftp agreement.
Preferably, described file comprises sub-folder.
Preferably, described metadata information comprises: file name, document location, file size and file modification date.
According to a further aspect in the invention, a kind of data upload system is provided, described data comprise file, include file in the described file, wherein, described system comprises: user side is used for by the Applet program the metadata information of the bibliographic structure information of described file, described file and described File Upload to server; And described server, be used for setting up destination folder according to described structural information, and according to described metadata information described file be stored in the corresponding destination folder.
By disclosed data uploading method of the present invention and system, can be by user end to server upload file folder.
Description of drawings
Accompanying drawing is used to provide a further understanding of the present invention, and consists of the part of specification, is used for together with embodiments of the present invention explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the flow chart according to an embodiment of data uploading method of the present invention;
Fig. 2 is the flow chart according to a preferred embodiment of data uploading method of the present invention;
Fig. 3 is the schematic diagram according to an embodiment of data upload of the present invention system;
Fig. 4 is the schematic diagram according to the example of data uploading method of the present invention and system.
Embodiment
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein only is used for description and interpretation the present invention, is not intended to limit the present invention.
Fig. 1 is the flow chart according to an embodiment of data uploading method of the present invention.In Fig. 1:
Step S100: by the Applet program with the metadata information of the bibliographic structure information of file, file and File Upload to server.Wherein, this step S1 comprises: by the Applet program bibliographic structure information of file, metadata information and the file of file are sent to Web server by the Http agreement, perhaps by the Applet program bibliographic structure information of file, metadata information and the file of file are sent to the Ftp server by the Ftp agreement.Wherein, this document folder can comprise sub-folder.Metadata information includes but not limited to file name, document location, file size and file modification date.
Step S102: server is set up destination folder according to structural information in its storage system, and according to metadata information file is stored in the corresponding destination folder.
By the described data uploading method of the present embodiment, in file can being uploaded onto the server, enriched upload function.
Fig. 2 is the flow chart according to a preferred embodiment of data uploading method of the present invention.In Fig. 2:
Step S200: the user is by the webpage of uploading of browser logon server.
Step S202: browser is downloaded the Applet program from uploading webpage automatically.
Step S204: the user wants the data uploaded by the Applet procedure Selection.
Step S206: the bibliographic structure information of reading folder, metadata information and the file of file are called in this locality of the Java by the Applet program.
Step S208: bibliographic structure information and metadata information are sent to server by the Applet program.
Step S210: file is sent to server by the Applet program.
Step S212: server is set up destination folder according to structural information in its storage system, and according to metadata information file is stored in the corresponding destination folder.
By the described data uploading method of the present embodiment, in file can being uploaded onto the server, enriched upload function.
In a preferred embodiment, in this step S200, file can also be cut into a plurality of file fragments, wherein, concrete file fragment size can be preseted by the user.In step S210, by the Applet program a plurality of file fragments are passed through Http agreement concurrent transmission to server.After uploading onto the server, in step 212, server can be combined as file with a plurality of file fragments.
By above preferred embodiment, can be better that volume in the file is larger File Upload is to server.
Fig. 3 is the schematic diagram according to an embodiment of data upload of the present invention system.In Fig. 3, comprising:
By the described data uploading method of the present embodiment, in file can being uploaded onto the server, enriched upload function.
Fig. 4 is the schematic diagram according to the example of data uploading method of the present invention and system.Wherein:
1) system configuration
System is divided into Web service end and browser end two parts, and the Web service end provides the browser end applet download of program, receives the request of browser end, and sets up corresponding bibliographic structure and preserve file in service end; The embedded applet program of the browser end page allows the user selection file, and folder content structure and file content are passed to service end.
2) system flow
The overall flow that file is uploaded is as follows:
A) user is by the corresponding File Upload webpage of browser login Web server;
B) webpage browsed of user browser is downloaded the applet program automatically from Web server;
C) window that provides by the Applet program of user is selected the file that need to upload from this locality;
D) the Applet program is called by this locality of java, the structural information of reading folder and all sub-folders thereof, simultaneously the file associated metadata information such as file name in the reading folder;
E) the Applet program sends to Web server or ftp server with the whole bibliographic structure of file, sends agreement and corresponds to http, ftp;
F) move finger daemon on the Web server, monitor the request of browser end, after the bibliographic structure information of receiving the view side, Web server will recover the bibliographic structure information that browser end sends at server;
G) the Applet program is again according to file name, and file reading content from the local operation system is uploaded to Web server with file with http or ftp agreement; When wherein http uploads, will be big or small according to the burst that the user sets, File cutting is become several file sheets, and then carry out concurrent transmission;
H) after Web server is received the file content of browser end transmission, will a plurality of file sheets be made up according to the catalogue at its file name, corresponding place, and then preserve complete file content to server.
Realized file upload function based on the B/S structure of browser by this example, allowed the user to select local folders by browser, file integral body has been uploaded, recovered corresponding bibliographic structure and corresponding file is preserved in service end; File Upload is supported http and two kinds of agreements of ftp, and the user can select Web server or ftp server as target storage server.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. a data uploading method is characterized in that, described data comprise file, includes file in the described file, and wherein, described method comprises:
Step S1: by the Applet program with the metadata information of the bibliographic structure information of described file, described file and described File Upload to server; And
Step S2: described server is set up destination folder according to described structural information, and according to described metadata information described file is stored in the corresponding destination folder.
2. data uploading method according to claim 1 is characterized in that, described method also comprises:
Step S01: the user is by the webpage of uploading of browser logon server;
Step S02: described browser is downloaded the Applet program from the described webpage of uploading automatically; And
Step S03: described user wants the data uploaded by described Applet procedure Selection.
3. data uploading method according to claim 1 is characterized in that, described step S1 comprises:
Step S11: call this locality of the Java by described Applet program, reads metadata information and the described file of the bibliographic structure information of described file, described file;
Step S12: described bibliographic structure information and described metadata information are sent to server by described Applet program; And
Step S13: described file is sent to described server by described Applet program.
4. data uploading method according to claim 2 is characterized in that, described step S1 also comprises: described file is cut into a plurality of file fragments,
Described step S13 comprises: by described Applet program described a plurality of file fragments are passed through Http agreement concurrent transmission to server,
And wherein, described step S2 also comprises: described server is combined as described file with described a plurality of file fragments.
5. data uploading method according to claim 4 is characterized in that, described file is cut into a plurality of file fragments comprises: be cut into a plurality of file fragments according to the described file of the large young pathbreaker of the predefined file fragment of user.
6. data uploading method according to claim 1, it is characterized in that, described step S1 comprises: by the Applet program metadata information and the described file of the bibliographic structure information of described file, described file is sent to Web server by the Http agreement.
7. data uploading method according to claim 1, it is characterized in that, described step S1 comprises: by the Applet program metadata information and the described file of the bibliographic structure information of described file, described file is sent to the Ftp server by the Ftp agreement.
8. data uploading method according to claim 1 is characterized in that, described file comprises sub-folder.
9. data uploading method according to claim 1 is characterized in that, described metadata information comprises: file name, document location, file size and file modification date.
10. a data upload system is characterized in that, described data comprise file, includes file in the described file, and wherein, described system comprises:
User side is used for by the Applet program the metadata information of the bibliographic structure information of described file, described file and described File Upload to server; And
Described server is used for setting up destination folder according to described structural information, and according to described metadata information described file is stored in the corresponding destination folder.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012104413038A CN102932463A (en) | 2012-11-07 | 2012-11-07 | Method and system for uploading data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012104413038A CN102932463A (en) | 2012-11-07 | 2012-11-07 | Method and system for uploading data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102932463A true CN102932463A (en) | 2013-02-13 |
Family
ID=47647159
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012104413038A Pending CN102932463A (en) | 2012-11-07 | 2012-11-07 | Method and system for uploading data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102932463A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103475735A (en) * | 2013-09-25 | 2013-12-25 | 长沙裕邦软件开发有限公司 | Method and system capable of converting local folders to network folders |
CN103532958A (en) * | 2013-10-21 | 2014-01-22 | 济南政和科技有限公司 | Method for encrypting website resources |
CN104111879A (en) * | 2014-07-03 | 2014-10-22 | 北京思特奇信息技术股份有限公司 | Automatic program file online method and system |
CN105069009A (en) * | 2015-07-06 | 2015-11-18 | 无锡天脉聚源传媒科技有限公司 | Folder uploading/downloading method and device |
CN106878428A (en) * | 2017-02-23 | 2017-06-20 | 郑州云海信息技术有限公司 | Method and device that a kind of file is uploaded |
CN107807948A (en) * | 2017-09-06 | 2018-03-16 | 安徽本末数据科技有限公司 | File Generator Based on Web Page WEB Mode |
CN108563728A (en) * | 2018-04-04 | 2018-09-21 | 沈阳东软医疗系统有限公司 | A kind of method and apparatus that medical image file is uploaded by browser |
CN109246221A (en) * | 2018-09-21 | 2019-01-18 | 上海勋立信息科技有限公司 | A kind of data sectional high-speed uploading method, client and the server of multifile |
CN110401723A (en) * | 2019-08-16 | 2019-11-01 | 北京浪潮数据技术有限公司 | Method, system, equipment and the storage medium of OVA file upload services device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101968738A (en) * | 2010-09-21 | 2011-02-09 | 南京易学教育软件有限公司 | Web-based homework accessories correcting method |
CN102307219A (en) * | 2011-03-18 | 2012-01-04 | 北京神州数码思特奇信息技术股份有限公司 | File access system, file uploading method and file downloading method |
CN102497395A (en) * | 2011-11-30 | 2012-06-13 | 北京京航计算通讯研究所 | Breakpoint unloading application control method |
-
2012
- 2012-11-07 CN CN2012104413038A patent/CN102932463A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101968738A (en) * | 2010-09-21 | 2011-02-09 | 南京易学教育软件有限公司 | Web-based homework accessories correcting method |
CN102307219A (en) * | 2011-03-18 | 2012-01-04 | 北京神州数码思特奇信息技术股份有限公司 | File access system, file uploading method and file downloading method |
CN102497395A (en) * | 2011-11-30 | 2012-06-13 | 北京京航计算通讯研究所 | Breakpoint unloading application control method |
Non-Patent Citations (2)
Title |
---|
廖福保等: "基于Java技术的多文件上传和存储的研究及实现", 《计算机工程与设计》 * |
石宁琛等: "网页应用中的大文件上传软件开发研究", 《企业科技与发展》 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103475735A (en) * | 2013-09-25 | 2013-12-25 | 长沙裕邦软件开发有限公司 | Method and system capable of converting local folders to network folders |
CN103532958A (en) * | 2013-10-21 | 2014-01-22 | 济南政和科技有限公司 | Method for encrypting website resources |
CN104111879A (en) * | 2014-07-03 | 2014-10-22 | 北京思特奇信息技术股份有限公司 | Automatic program file online method and system |
CN104111879B (en) * | 2014-07-03 | 2018-04-03 | 北京思特奇信息技术股份有限公司 | A kind of program file automatic wire charging method and system |
CN105069009A (en) * | 2015-07-06 | 2015-11-18 | 无锡天脉聚源传媒科技有限公司 | Folder uploading/downloading method and device |
CN106878428A (en) * | 2017-02-23 | 2017-06-20 | 郑州云海信息技术有限公司 | Method and device that a kind of file is uploaded |
CN107807948A (en) * | 2017-09-06 | 2018-03-16 | 安徽本末数据科技有限公司 | File Generator Based on Web Page WEB Mode |
CN108563728A (en) * | 2018-04-04 | 2018-09-21 | 沈阳东软医疗系统有限公司 | A kind of method and apparatus that medical image file is uploaded by browser |
CN108563728B (en) * | 2018-04-04 | 2021-01-19 | 东软医疗系统股份有限公司 | Method and device for uploading medical image file through browser |
CN109246221A (en) * | 2018-09-21 | 2019-01-18 | 上海勋立信息科技有限公司 | A kind of data sectional high-speed uploading method, client and the server of multifile |
CN110401723A (en) * | 2019-08-16 | 2019-11-01 | 北京浪潮数据技术有限公司 | Method, system, equipment and the storage medium of OVA file upload services device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102932463A (en) | Method and system for uploading data | |
EP3149899B1 (en) | Message attachment management | |
EP2806357A1 (en) | Method and communication device for updating a web application | |
US20140101310A1 (en) | Seamless access, editing, and creation of files in a web interface or mobile interface to a collaborative cloud platform | |
CN102594867A (en) | On-demand or incremental remote data copy | |
CN105227610A (en) | File uploading and storing method and device | |
WO2013185554A1 (en) | Method, device and computer storage media for offline web page browsing | |
JP2015062108A (en) | Information processing system, information processing apparatus, terminal devices, information processing method, and program | |
CN104376122A (en) | Method for browser client to obtain static file and server | |
CN105447061A (en) | Method and system for automatically renaming file after downloading | |
CN104361007B (en) | The processing method of browser and its collection | |
EP2615563A1 (en) | Device for synchronously sharing files and method for synchronously sharing files | |
CN105227514A (en) | Based on document transmission processing method and the browser of browser | |
CN104111940A (en) | Mobile terminal and file storage method implemented by same | |
US20170235456A1 (en) | Automatic page-editing method, non-transitory computer-readable recording medium, and automatic page-editing apparatus | |
CN103188327A (en) | Method and system of file transfer | |
US9881101B2 (en) | Dynamic file retrieving for web page loading | |
CN101207627A (en) | Client end and method for filtering download task list | |
JP2004287928A (en) | Contents management program | |
CN107908634B (en) | Cache control method of browser and mobile terminal | |
JP4253315B2 (en) | Knowledge information collecting system and knowledge information collecting method | |
US20190179800A1 (en) | Information processing system, control method therefor, and storage medium | |
JP2006301788A (en) | Portable terminal, and method and program for controlling the same | |
US9230038B2 (en) | Content fetching and caching on a mobile device | |
JP4502015B2 (en) | Information processing apparatus and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20130213 |