CN102307219B - File access system, file uploading method and file downloading method - Google Patents

File access system, file uploading method and file downloading method Download PDF

Info

Publication number
CN102307219B
CN102307219B CN201110066007.XA CN201110066007A CN102307219B CN 102307219 B CN102307219 B CN 102307219B CN 201110066007 A CN201110066007 A CN 201110066007A CN 102307219 B CN102307219 B CN 102307219B
Authority
CN
China
Prior art keywords
file
web server
uploaded
server
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110066007.XA
Other languages
Chinese (zh)
Other versions
CN102307219A (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.)
Beijing Si Tech Information Technology Co Ltd
Original Assignee
Beijing Si Tech 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 Beijing Si Tech Information Technology Co Ltd filed Critical Beijing Si Tech Information Technology Co Ltd
Priority to CN201110066007.XA priority Critical patent/CN102307219B/en
Publication of CN102307219A publication Critical patent/CN102307219A/en
Application granted granted Critical
Publication of CN102307219B publication Critical patent/CN102307219B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a file access system, which comprises at least one client, at least one WEB server, a file library server and a relation database, wherein the WEB server communicates with the client, the relation database and the file library server respectively; the client sends a file to be uploaded to the file library server through the WEB server for storage and receives a file downloaded by the WEB server from the file library server; and the WEB server also controls to generate a stored file name of the file to be uploaded and sends the generated stored file name and a real file name of the file to be uploaded to the relation database for storage. Furthermore, the invention also provides a file uploading method and a file downloading method which are implemented by using the file access system. By the technical scheme, the file can be uploaded and downloaded conveniently and the same files are not required to be stored repeatedly, so that storage resource waste caused by repeated storage can be avoided and a requirement on the storage capacity of the server is reduced.

Description

A kind of file access system and file uploading method and document down loading method
Technical field
The present invention relates to the communications field, particularly relate to the system and method for a kind of files passe and file download.
Background technology
At present, upload and download function in order to what realize file, each mutual of General Requirements all completes on same main frame, and namely the upload and download of file is all carry out on same Web server.Along with the utilization of the fourth layer technology, in order to realize based on the files passe under the fourth layer technology and download, then all to preserve identical file in every platform WEB server, this is because it may not be same that operator carries out mutual Web server at every turn, if want to ensure that operator at every turn can successful download file, then need in every platform WEB server, all to preserve same file when upload file, so just cause annex repeated storage, the defects such as waste memory space.
Servlet is a kind of java application of server end, has the characteristic independent of platform and agreement, can generate dynamic Web page.It takes on client asks (Web browser or other HTTP CLIENT PROGRAM) and server to respond the intermediate layer of (database on http server or application program).Servlet is the java application of the server end being positioned at Web server internal, different from the java application of start up with command-line options from traditional, Servlet is loaded by Web server, and this Web server must comprise the Java Virtual Machine supporting Servlet.
Action is the bridge that user asks between service logic, and each Action serves as a service agent of client.
FTP is File Transfer Protocol(file transfer protocol (FTP)) English abbreviation, and Chinese is referred to as " literary composition pass agreement ".The transmitted in both directions of the control documents on Internet.Meanwhile, it is also an application program (Application).User can be connected the PC of oneself by it with the server of all operation File Transfer Protocol all over the world, a large amount of program on access services device and information.The Main Function of FTP, which allow user connect a remote computer (these computers running ftp server program) exactly watch remote computer and have file, then file is copied local computer from remote computer, or the file of local computer is delivered to remote computer.
Response object is used for the result sending output from server to user.
List, the effect in webpage can't neglect, the function of primary responsibility data acquisition.
Summary of the invention
The object of the present invention is to provide a kind of file access system and the method that realize files passe and file download.
As a first aspect of the present invention, a kind of file access system is provided, comprise at least one client, at least one WEB server, library server, a relational database, described WEB server respectively with described client, described relational database, described library server communication;
File to be uploaded to be sent in described library server by described WEB server and to preserve by described client, and receives the file that described WEB server downloads in described library server;
Described WEB server also controls the storage file name generating described file to be uploaded, and the authentic document name of described storage file name and described file to be uploaded is sent in described relational database and preserves.
Further, described file access system also comprises a fourth layer equipment, and described the fourth layer equipment communicates with described WEB server with described client respectively,
Described the fourth layer equipment receives upload file request or the download file request of described client, described upload file request or download file request is sent to any one at least one WEB server described.
As a second aspect of the present invention, provide a kind of file uploading method,
The first step, client extracts the essential information of file to be uploaded, generates form list;
Second step, described form list and described file to be uploaded are sent on the control servlet of WEB server by described client;
3rd step, described control servlet reads described essential information, and is saved in the temporary folder of described WEB server by described file to be uploaded;
4th step, described WEB server controls the storage file name generating described file to be uploaded;
5th step, the library server communication of described control servlet and described WEB server outside, is sent to described file to be uploaded in described library server and preserves;
6th step, the storage file name of described file to be uploaded, authentic document name are sent in the relational database of described WEB server outside and preserve by described WEB server;
7th step, described control servlet deletes the file to be uploaded preserved in described temporary folder.
Further, described essential information comprises the authentic document name of described file to be uploaded and/or file type and/or file extension and/or file size.
Further, the storage file name of described file to be uploaded is by the IP address of WEB server with consist of 36 random numbers that linear congruential random number algorithm generates.
Further, in described 5th step, described control servlet to set up with described library server according to following steps and communicates,
Steps A 1, described control servlet sets up with the Action in described WEB server and communicates;
Steps A 2, described Action sets up with described library server and communicates;
Steps A 3, file to be uploaded is sent to described library server via described Action by described control servlet.
As a third aspect of the present invention, provide a kind of document down loading method,
Step one, client sends file download request to WEB server;
Step 2, described WEB server, according to described file download request, searches file to be downloaded in the relational database of described WEB server outside;
Step 3, described WEB server, according to lookup result, generates at least one file chaining and is sent to described client;
Step 4, described client, according to user's request, selects file to be downloaded at least one file chaining described, and asks the control servlet in described WEB server to download this file;
Step 5, the library server communication of described control servlet and described WEB server outside, searches described file to be downloaded in described library server, and is saved in described WEB server by described file to be downloaded;
Step 6, described file to be downloaded is sent to described client by described control servlet.
Further, in described step 5, described control servlet to set up with described library server according to following steps and communicates,
Step B1, described control servlet sets up with the Action in described WEB server and communicates;
Step B2, described Action set up with described library server and communicate;
Step B3, the file to be downloaded found is sent to described control servlet via described Action by described library server.
The invention has the beneficial effects as follows: technical solution of the present invention just can realize uploading and downloading of file easily, and does not need the file that repeated storage is identical, avoid the storage resources waste caused thus, reduce the requirement to server stores ability.
Accompanying drawing explanation
Fig. 1 is the System's composition schematic diagram of the first implementation of file access system of the present invention;
Fig. 2 is the System's composition schematic diagram of the second implementation of file access system of the present invention;
Fig. 3 is the schematic flow sheet of file uploading method of the present invention;
Fig. 4 is the schematic flow sheet of document down loading method of the present invention.
Embodiment
Be described principle of the present invention and feature below in conjunction with accompanying drawing, example, only for explaining the present invention, is not intended to limit scope of the present invention.
As a first aspect of the present invention, a kind of file access system is provided, as shown in Figure 1, this system comprises at least one client 100, at least one WEB server 200, library server 300, relational database 400, and WEB server 200 communicates with client 100, relational database 400, library server 300 respectively.Wherein, file to be uploaded (namely preparing the file being uploaded to library server 300) is sent in library server 300 and preserves by WEB server 200 by client 100, and receives the file that WEB server 200 downloads in library server 300.WEB server 200 also controls the storage file name generating file to be uploaded, and storage file name is sent to together with the authentic document name of file to be uploaded preservation in relational database 400, namely preserve storage file name and the authentic document name of upload file in relational database 400.Utilize file access system of the present invention just can realize uploading and downloading of file easily.And file access system of the present invention does not need the file that repeated storage is identical in every platform WEB server 200, avoiding problems the storage resources waste caused thus, reduce the requirement to server stores ability.
As shown in Figure 2, file access system also comprises a fourth layer equipment 500, and the fourth layer equipment 500 communicates with WEB server 200 with client 100 respectively.The fourth layer equipment 500 receives upload file request or the download file request of client 100, and upload file request or download file request are sent to any one at least one WEB server 200.
In file access system shown in Fig. 1, if operator asks to set up with WEB server 200 to communicate by client 100, then operator need record the IP address of all WEB server 200.Operator inputs the IP address of some WEB server by client 100, makes to set up between client 100 with this WEB server to communicate, thus by this WEB server to library server 300 upload file or download file.And in the file access system shown in Fig. 2, operator only need record the IP address of the fourth layer equipment 500, the use of handled easily person.Operator inputs the IP address of the fourth layer equipment 500 by client 100, make to set up between client 100 with the fourth layer equipment 500 to communicate, communicated by random the setting up with any one in multiple WEB server 200 of the fourth layer equipment 500, thus realize by WEB server to library server 300 upload file or download file.
As a second aspect of the present invention, provide a kind of file uploading method, as shown in Figure 3, realize files passe according to following steps.
The first step, client 100 extracts the essential information of file to be uploaded, generates form list.Namely operator logs in the WEB webpage that client 100 provides, and the essential information of file to be uploaded (the authentic document name of such as file to be uploaded and/or file type and/or file extension and/or file size) is generated form list.
Second step, form list and file to be uploaded are sent on the control servlet of WEB server 200 by client 100.Operator directly inputs the IP address of some WEB server, and form list is sent to this WEB server together with file to be uploaded.Or operator inputs the IP address of the fourth layer equipment 500, select a WEB server by the fourth layer equipment 500, set up with client 100 and communicate, the form list that reception client 100 is sent and file to be uploaded.
3rd step, control servlet reads essential information, and is saved to by file to be uploaded in the temporary folder of WEB server 200.After WEB server 200 receives the information of client 100 transmission, in form list, extract the essential information of file on the one hand, for generating the storage file name of this file; File to be uploaded is saved in temporary folder, for ready to library server 300 upload file on the other hand.
4th step, WEB server 200 controls the storage file name generating file to be uploaded.This storage file name forms by the IP address of WEB server with by 36 random numbers that linear congruential random number algorithm generates.
5th step, control servlet communicates with the library server 300 of WEB server 200 outside, is sent to by file to be uploaded in library server 300 and preserves.Concrete steps are as follows: first, and control servlet sets up with the Action in WEB server 200 and communicates; Secondly, Action to be set up with library server 300 by File Transfer Protocol and communicates; Finally, file to be uploaded is sent to library server 300 via Action by FTP by control servlet.
6th step, the storage file name of file to be uploaded, authentic document name are sent in the relational database 400 of WEB server 200 outside and preserve by WEB server 200.
7th step, control servlet deletes the file to be uploaded preserved in temporary folder.So far the uploading operation of a file is completed.
As a third aspect of the present invention, provide a kind of document down loading method, as shown in Figure 4, realize file download according to following steps.
Step one, client 100 sends file download request to WEB server 200.Similarly, client 100 also to be set up with WEB server 200 by two kinds of implementations and is communicated: an IP address being operator and inputting some WEB server 200, thus client 100 is set up with this WEB server 200 and communicated; Another is the IP address that operator inputs the fourth layer equipment 500, and client 100 is set up with some WEB server 200 by the fourth layer equipment 500 and communicated.Wherein, file download request can comprise the essential information (as information such as file name, file type, keywords) of request signal and file to be downloaded.
Step 2, WEB server 200, according to file download request, searches file to be downloaded in the relational database 400 of WEB server 200 outside.Namely WEB server 200 is set up with relational database 400 and is communicated, and Correlation coefficient is according to searching the file matched with the essential information of file to be downloaded in storehouse 400.
Step 3, WEB server 200, according to lookup result, generates at least one file chaining and is sent to client 100.If WEB server 200 Correlation coefficient does not find associated documents information according in storehouse 400, then there is not the file meeting operator's needs in supporting paper storehouse server 300, then WEB server 200 returns Query Result to client 100, terminates this file download.If WEB server 200 Correlation coefficient is according to finding at least one fileinfo meeting operator's demand in storehouse 400, then the exclusive link for the storing path spanned file of these files is sent to client 100, selects for operator.
Step 4, client 100, according to user's request, selects file to be downloaded at least one file chaining, and asks the control servlet in WEB server 200 to download this file.What namely operator selected to conform to most with its demand in multiple link links, and operator clicks this link, then client 100 generates to WEB server 200 request that is downloaded this file.
Step 5, control servlet communicates with the library server 300 of WEB server 200 outside, in library server 300, search file to be downloaded, and is saved to by file to be downloaded in the internal memory of WEB server 200.Concrete steps are as follows: first, and control servlet sets up with the Action in WEB server 200 and communicates; Secondly, Action to be set up with library server 300 by File Transfer Protocol and communicates; Finally, library server 300 searches file to be downloaded, and control servlet receives the file to be downloaded that library server 300 sends via Action.
Step 6, file to be downloaded is sent to client 100 by response by control servlet.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. a file access system, it is characterized in that, comprise at least one client, at least one WEB server, library server, a relational database, described WEB server respectively with described client, described relational database, described library server communication;
File to be uploaded to be sent in described library server by described WEB server and to preserve by described client, and receives the file that described WEB server downloads in described library server;
Described WEB server also controls the storage file name generating described file to be uploaded, extract the essential information of file, for generating the storage file name of this file, and the authentic document name of described storage file name and described file to be uploaded is sent in described relational database preserves.
2., according to file access system according to claim 1, it is characterized in that,
Described file access system also comprises a fourth layer equipment, and described the fourth layer equipment communicates with described WEB server with described client respectively,
Described the fourth layer equipment receives upload file request or the download file request of described client, described upload file request or download file request is sent to any one at least one WEB server described.
3. a file uploading method, is characterized in that,
The first step, client extracts the essential information of file to be uploaded, generates form list;
Second step, described form list and described file to be uploaded are sent on the control servlet of WEB server by described client;
3rd step, described control servlet reads described essential information, and is saved in the temporary folder of described WEB server by described file to be uploaded;
4th step, described WEB server controls the storage file name generating described file to be uploaded, extracts the essential information of file, for generating the storage file name of this file;
5th step, the library server communication of described control servlet and described WEB server outside, is sent to described file to be uploaded in described library server and preserves;
6th step, the storage file name of described file to be uploaded, authentic document name are sent in the relational database of described WEB server outside and preserve by described WEB server;
7th step, described control servlet deletes the file to be uploaded preserved in described temporary folder.
4., according to file uploading method according to claim 3, it is characterized in that,
Described essential information comprises the authentic document name of described file to be uploaded and/or file type and/or file extension and/or file size.
5., according to file uploading method according to claim 3, it is characterized in that,
The storage file name of described file to be uploaded is by the IP address of WEB server and consist of 36 random numbers that linear congruential random number algorithm generates.
6., according to file uploading method according to claim 3, it is characterized in that,
In described 5th step, described control servlet to set up with described library server according to following steps and communicates,
Steps A 1, described control servlet sets up with the Action in described WEB server and communicates;
Steps A 2, described Action sets up with described library server and communicates;
Steps A 3, file to be uploaded is sent to described library server via described Action by described control servlet.
7. a document down loading method, is characterized in that,
Step one, client sends file download request to WEB server;
Step 2, described WEB server is according to described file download request, and in the relational database of described WEB server outside, search file to be downloaded, file download request can comprise the essential information of request signal and file to be downloaded;
Step 3, described WEB server, according to lookup result, generates at least one file chaining and is sent to described client;
Step 4, described client, according to user's request, selects file to be downloaded at least one file chaining described, and asks the control servlet in described WEB server to download this file;
Step 5, the library server communication of described control servlet and described WEB server outside, searches described file to be downloaded in described library server, and is saved in described WEB server by described file to be downloaded;
Step 6, described file to be downloaded is sent to described client by described control servlet.
8., according to document down loading method according to claim 7, it is characterized in that,
In described step 5, described control servlet to set up with described library server according to following steps and communicates,
Step B1, described control servlet sets up with the Action in described WEB server and communicates;
Step B2, described Action set up with described library server and communicate;
Step B3, the file to be downloaded found is sent to described control servlet via described Action by described library server.
CN201110066007.XA 2011-03-18 2011-03-18 File access system, file uploading method and file downloading method Active CN102307219B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110066007.XA CN102307219B (en) 2011-03-18 2011-03-18 File access system, file uploading method and file downloading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110066007.XA CN102307219B (en) 2011-03-18 2011-03-18 File access system, file uploading method and file downloading method

Publications (2)

Publication Number Publication Date
CN102307219A CN102307219A (en) 2012-01-04
CN102307219B true CN102307219B (en) 2015-04-08

Family

ID=45381023

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110066007.XA Active CN102307219B (en) 2011-03-18 2011-03-18 File access system, file uploading method and file downloading method

Country Status (1)

Country Link
CN (1) CN102307219B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103475564B (en) * 2012-06-06 2018-11-23 腾讯科技(深圳)有限公司 Network attachment transmission method and its system
CN102932463A (en) * 2012-11-07 2013-02-13 曙光信息产业股份有限公司 Method and system for uploading data
CN104219261A (en) * 2013-05-30 2014-12-17 鸿富锦精密工业(深圳)有限公司 File download method and system
CN105991671A (en) * 2015-01-28 2016-10-05 中兴通讯股份有限公司 Method of storing files and server
CN105069009A (en) * 2015-07-06 2015-11-18 无锡天脉聚源传媒科技有限公司 Folder uploading/downloading method and device
CN105162893A (en) * 2015-10-16 2015-12-16 珠海格力电器股份有限公司 Video file uploading method, uploading system, access method, and access system
CN105763604B (en) * 2016-02-04 2019-03-19 四川长虹电器股份有限公司 Lightweight distributed file system and the method for restoring downloading file original name
CN106230919B (en) * 2016-07-26 2020-03-17 广州酷狗计算机科技有限公司 File uploading method and device
CN107566515A (en) * 2017-09-22 2018-01-09 郑州云海信息技术有限公司 A kind of document down loading method and relevant apparatus
CN108769127A (en) * 2018-05-02 2018-11-06 张东军 A kind of big file uploading and download process method
CN109753813A (en) * 2019-01-28 2019-05-14 恒峰信息技术有限公司 A kind of secure file processing method
CN110191182B (en) * 2019-05-30 2023-04-21 深圳前海微众银行股份有限公司 Distributed file batch processing method, device, equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6782418B1 (en) * 2000-01-24 2004-08-24 General Electric Company Method and apparatus for secure data file uploading
CN101141627A (en) * 2007-10-23 2008-03-12 深圳市迅雷网络技术有限公司 Storage system and method of stream media file
CN101141717A (en) * 2006-09-06 2008-03-12 深圳市朗科科技有限公司 File download method between multiple handhold equipments based on wireless communication
CN201422118Y (en) * 2009-04-01 2010-03-10 升东网络科技发展(上海)有限公司 Multimedia transmission system in instant messaging
CN101794314A (en) * 2010-03-12 2010-08-04 同济大学 Allopatry collaborative design informatization platform based on Web

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010140163A (en) * 2008-12-10 2010-06-24 Hitachi Software Eng Co Ltd Dictionary file registration/distribution system with network sharing type authority
CN101699816A (en) * 2009-11-17 2010-04-28 上海华平信息技术股份有限公司 System and method for document distribution based on internet

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6782418B1 (en) * 2000-01-24 2004-08-24 General Electric Company Method and apparatus for secure data file uploading
CN101141717A (en) * 2006-09-06 2008-03-12 深圳市朗科科技有限公司 File download method between multiple handhold equipments based on wireless communication
CN101141627A (en) * 2007-10-23 2008-03-12 深圳市迅雷网络技术有限公司 Storage system and method of stream media file
CN201422118Y (en) * 2009-04-01 2010-03-10 升东网络科技发展(上海)有限公司 Multimedia transmission system in instant messaging
CN101794314A (en) * 2010-03-12 2010-08-04 同济大学 Allopatry collaborative design informatization platform based on Web

Also Published As

Publication number Publication date
CN102307219A (en) 2012-01-04

Similar Documents

Publication Publication Date Title
CN102307219B (en) File access system, file uploading method and file downloading method
CN103812882A (en) Method and system for transferring files
CN102355426B (en) Method for transmitting off-line file and system
CN101763357B (en) A kind of method and system for browser to load internet resources
CN104063460B (en) A kind of method and apparatus loading webpage in a browser
CN106933871B (en) Short link processing method and device and short link server
CN102420843B (en) A kind of compression and decompression method, Apparatus and system based on cloud compression link
US8131753B2 (en) Apparatus and method for accessing and indexing dynamic web pages
CN103246678B (en) A kind of web page content preview method and apparatus
CN103428243A (en) Implementation method, device and system for static storage of dynamic webpage
CN104468817A (en) Method and device for achieving resource download through CDN, server and client side
CN102393857A (en) Method and system for local call based on web page
CN102663062A (en) Method and device for processing invalid links in search result
CN102394880B (en) Method and device for processing jump response in content delivery network
CN101799821B (en) Method and system for realizing webpage application by widget
US9407716B1 (en) Identifying content files in a cache using a response-based cache index
CN102045403A (en) Method, device and system for processing data of distributed network
CN104541262A (en) System and method for transparent in-network adaptation of rich internet applications
CN104765592A (en) Plugin management method and device facing web page acquisition task
CN105897888A (en) Client connection method and system
CN106357539A (en) Data acquisition method and equipment
CN103237089A (en) Method and device for repairing domain name system (DNS) polling mode-based webpages and server
CN104618388A (en) Quick registration and login method and corresponding reset server and information server
CN107391182A (en) Generation method, device, server and storage medium of theme installation package
CN1960371B (en) Method and system for accessing file of Web application 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
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 100085 Haidian District, Zhongguancun, South Street, No. 6,, building information, floor, No. 16

Applicant after: SI-TECH Information Technology Ltd.

Address before: 100085, Beijing, Haidian District on the nine Street 9 digital science and Technology Plaza, two floor

Applicant before: Beijing Digital China SI-TECH Information Technology Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: BEIJING DIGITAL CHINA SI-TECH INFORMATION TECHNOLOGY LTD. TO: BEIJING SI-TECH INFORMATION TECHNOLOGY LTD.

C14 Grant of patent or utility model
GR01 Patent grant