CN110247951A - A kind of file transfer control method, device, equipment and storage medium - Google Patents
A kind of file transfer control method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN110247951A CN110247951A CN201910381352.9A CN201910381352A CN110247951A CN 110247951 A CN110247951 A CN 110247951A CN 201910381352 A CN201910381352 A CN 201910381352A CN 110247951 A CN110247951 A CN 110247951A
- Authority
- CN
- China
- Prior art keywords
- file
- intranet
- server
- user
- external network
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/146—Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the present application discloses a kind of file transfer control method, this method comprises: receiving file transmission request, carries user identifier and request type mark in this document transmission request;In the case where request type is identified as File download type, if it is Intranet user that user identifier, which characterizes user, it enables Intranet and scene is locally-downloaded, required file is downloaded from intranet server, if user identifier characterizes user's non-Intranet user, the preferential outer net that enables downloads scene, file needed for downloading from external network server;In the case where request type is identified as file and uploads type, if user identifier characterization user is Intranet user, start Intranet and locally uploads scene, file is uploaded to intranet server and is synchronized to external network server, if it is not Intranet user that user identifier, which characterizes user, the preferential outer net that enables uploads scene, and file is uploaded to external network server and is synchronized to intranet server, solve the problems, such as ingress bandwidth with the increase of user's amount of access linear increase.
Description
Technical field
This application involves field of computer technology more particularly to a kind of file transfer control method, device, equipment and storages
Medium.
Background technique
Since China is vast in territory, Network infrastructure construction situation is unbalanced, speed is accessed between heterogeneous networks service provider
The objective status such as undesirable is spent, for the file storage system of traditional concentration of enterprises formula deployment, can usually encounter different geographical
User, uploading speed of download has greatest differences, often downloads very slow.Or even some users are unable to complete successfully the upload of file
Downloading.
On the other hand, for the file storage system of centralized deployment, the upload and downloading of external network user require to occupy
Enterprise portal bandwidth causes demand of the enterprise to ingress bandwidth, with the linear growth of the business scale of construction of enterprise.Enterprise portal band
Wide dilatation speed is slow, at high cost, and causing it to become restricts the bottleneck factor of business event expansion.
Summary of the invention
The embodiment of the present application provides a kind of file transfer control method, device, equipment and storage medium, can meet
Under the premise of inside and outside network users upload and downloading demand, ingress bandwidth is saved to the maximum extent.
In view of this, the application first aspect provides a kind of file transfer control method, comprising:
File transmission request is received, carries user identifier and request type mark in the file transmission request;
In the case where the request type is identified as File download type, when the user identifier, characterization user is Intranet
When user, enables Intranet and scene is locally-downloaded, file needed for being downloaded from intranet server;When the user identifier characterizes user
When not being Intranet user, the preferential outer net that enables downloads scene, file needed for downloading from external network server;
In the case where the request type is identified as file and uploads type, when the user identifier, characterization user is Intranet
When user, enables Intranet and locally upload scene, file is uploaded to intranet server and is synchronized to external network server;When the use
For family mark characterization user when not being Intranet user, the preferential outer net that enables uploads scene, and file is uploaded to external network server and same
It walks to intranet server.
The application second aspect provides a kind of file transmission control unit, comprising:
Receiving unit carries user identifier and request in the file transmission request for receiving file transmission request
Type identification;
First download unit, in the case where the request type is identified as File download type, as the user
When mark characterization user is Intranet user, enables Intranet and scene is locally-downloaded, file needed for being downloaded from intranet server;
Second download unit, in the case where the request type is identified as File download type, as the user
When mark characterization user is not Intranet user, the preferential outer net that enables downloads scene, file needed for downloading from external network server;
First uploading unit, for the request type be identified as file upload type in the case where, as the user
When mark characterization user is Intranet user, enables Intranet and locally upload scene, file is uploaded to intranet server and is synchronized to
External network server;
Second uploading unit, for the request type be identified as file upload type in the case where, as the user
When mark characterization user is not Intranet user, the preferential outer net that enables uploads scene, and file is uploaded to external network server and synchronization
To intranet server.
The application third aspect provides a kind of document transmission system, comprising:
Terminal device, intranet server and external network server;
The terminal device executes file transfer control method described in above-mentioned first aspect by running computer program;
The intranet server is uploaded for synchronous storage user by the terminal device with the external network server
File, and file download service can be provided for user.
The application fourth aspect provides a kind of document transmission device, and the equipment includes processor and memory:
Said program code is transferred to the processor for storing program code by the memory;
The file that the processor is used to be executed according to the instruction in said program code as described in above-mentioned first aspect passes
The step of transmission control method.
The 5th aspect of the application provides a kind of computer readable storage medium, and the computer readable storage medium is for depositing
Program code is stored up, said program code is for executing file transfer control method described in above-mentioned first aspect.
The 6th aspect of the application provides a kind of computer program product including instruction, when run on a computer,
So that the computer executes file transfer control method described in above-mentioned first aspect.
As can be seen from the above technical solutions, the embodiment of the present application has the advantage that
The embodiment of the present application provides a kind of file transfer control method, and this method is for external network user and Intranet user point
Corresponding file upload and download service are not provided, it is primary to guarantee that All Files only pass through in ingress bandwidth, to the maximum extent
Save ingress bandwidth.Specifically, first receiving file transmission request during transmitting file, being taken in this document transmission request
It is identified with user identifier and request type;In the case where request type is identified as File download type, if user identifier table
Requisition family is Intranet user, then enables Intranet and scene is locally-downloaded, and required file is downloaded from intranet server, if user identifier table
When requisition family is not Intranet user, the preferential outer net that enables downloads scene, and required file is downloaded from external network server;In request class
In the case that type is identified as file upload type, if user identifier characterization user is Intranet user, the locally upload of starting Intranet
File is uploaded to intranet server and is synchronized to external network server by scene, if user identifier characterization user is not Intranet user,
The preferential outer net that enables uploads scene, and file is uploaded to external network server and is synchronized to intranet server.In this way, under external network user
It no longer needs correspondingly also no longer to need to occupy its ingress bandwidth, efficiently solve by intranet server when file needed for carrying
Ingress bandwidth has saved ingress bandwidth with the increase of user's amount of access and the problem of linear increase to the maximum extent.
Detailed description of the invention
Fig. 1 is the application scenarios schematic diagram of file transfer control method provided by the embodiments of the present application;
Fig. 2 is a kind of flow diagram of file transfer control method provided by the embodiments of the present application;
Fig. 3 is a kind of flow diagram of document down loading method provided by the embodiments of the present application;
Fig. 4 is a kind of flow diagram of file uploading method provided by the embodiments of the present application;
Fig. 5 is the flow diagram that a kind of outer net provided by the embodiments of the present application uploads scene;
Fig. 6 is the interaction signaling diagram that a kind of outer net provided by the embodiments of the present application uploads scene;
Fig. 7 is the flow diagram that a kind of outer net provided by the embodiments of the present application downloads scene;
Fig. 8 is the interaction signaling diagram that a kind of outer net provided by the embodiments of the present application downloads scene;
Fig. 9 is the flow diagram that a kind of Intranet provided by the embodiments of the present application locally uploads scene;
Figure 10 is the interaction signaling diagram that a kind of Intranet provided by the embodiments of the present application locally uploads scene;
Figure 11 is the flow diagram that scene is locally-downloaded in a kind of Intranet provided by the embodiments of the present application;
Figure 12 is the interaction signaling diagram that scene is locally-downloaded in a kind of Intranet provided by the embodiments of the present application;
Figure 13 is a kind of structural schematic diagram of file transmission control unit provided by the embodiments of the present application;
Figure 14 is a kind of structural schematic diagram of server provided by the embodiments of the present application;
Figure 15 is a kind of structural schematic diagram of terminal device provided by the embodiments of the present application.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only this
Apply for a part of the embodiment, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art exist
Every other embodiment obtained under the premise of creative work is not made, shall fall in the protection scope of this application.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawing
The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage
The data that solution uses in this way are interchangeable under appropriate circumstances, so as to embodiments herein described herein can in addition to
Here the sequence other than those of diagram or description is implemented.In addition, term " includes " and " having " and their any deformation,
Be intended to cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, product or setting
It is standby those of to be not necessarily limited to be clearly listed step or unit, but may include be not clearly listed or for these mistakes
The intrinsic other step or units of journey, method, product or equipment.
In the prior art, either external network user or Intranet user are required to the file memory bank by centralized deployment
System, realizes the upload and downloading of file;However, require to occupy Enterprise portal bandwidth when external network user uploads and downloads file,
Enterprise portal bandwidth so is limited to by the not breaking property growth with increasing for portfolio for the demand of Enterprise portal bandwidth
The factors such as dilatation speed is slow, dilatation is at high cost, growing number of portfolio will lead to business event expansion and fall into bottleneck.
In view of the above-mentioned problems of the prior art, the embodiment of the present application provides a kind of file transfer control method, it should
File transfer control method is directed to external network user and Intranet user, each provides corresponding file upload and download service, that is,
When external network user uploads or downloads file, preferential enabling outer net uploads scene or outer net downloads scene, and passes field on the net outside
The file synchronization for uploading external network user in scape enables Intranet when Intranet user uploads or downloads file to intranet server
Scene is locally-downloaded in local upload scene or Intranet, and the file synchronization for uploading Intranet user in scene is locally uploaded in Intranet
To external network server.In this way, All Files only can just occupy ingress bandwidth when uploading, external network user will not when downloading file
It is needed again through intranet server, correspondingly also will no longer occupy its ingress bandwidth, and save ingress bandwidth to the maximum extent, solved
The demand determined for ingress bandwidth also will be helpful to enterprise with being increasing for portfolio and the problem of linear increase
Extend its business.
It should be understood that file transfer control method provided by the embodiments of the present application can be applied to can be realized file upload and
The equipment of downloading service, such as terminal device, server.Wherein, terminal device is specifically as follows computer, personal digital assistant
(Personal Digital Assitant, PDA), smart phone, tablet computer etc.;Server is specifically as follows application service
Device, or Web server, in practical application deployment, which can be separate server, or cluster clothes
Business device.
Technical solution provided by the embodiments of the present application in order to facilitate understanding first combines Fig. 1 to propose the embodiment of the present application below
The application scenarios of the file transfer control method of confession are introduced.
Referring to Fig. 1, Fig. 1 is the application scenarios schematic diagram of file transfer control method provided by the embodiments of the present application.Such as Fig. 1
It is shown, it include: the application scenarios 110 towards external network user and the application scenarios towards Intranet user 120 in the application scenarios;Its
In, it include: that (i.e. Fig. 1 is towards in the application scenarios of external network user for terminal device 111 in the application scenarios 110 towards external network user
Computer), terminal device 112 (i.e. Fig. 1 is towards the smart phone in the application scenarios of external network user) and external network server
113, herein, external network server 113 is embodied in cloud storage service device;Include: in application scenarios 120 towards Intranet user
Terminal device 121 (i.e. Fig. 1 is towards the computer in the application scenarios of Intranet user), (i.e. Fig. 1 is towards Intranet for terminal device 122
Smart phone in the application scenarios of user) and intranet server 123, intranet server 123 is embodied in Intranet herein
Disk array;Above-mentioned external network server 113 and intranet server 123 can be uploaded by the synchronous storage terminal device of synchronization mechanism
File.
In practical applications, terminal device 111, terminal device 112, terminal device 121 and terminal device 122 can be held
Capable file transfer control method provided by the embodiments of the present application realizes the upload and downloading of file in such a way that use is corresponding.When
When terminal device 111 and terminal device 112 receive the file transmission request of Client-initiated File download type, terminal device
111 and terminal device 112 can preferentially enable outer net downloading scene, download required file from external network server 113;When terminal is set
When receiving the file transmission request of Client-initiated file upload type for 111 and terminal device 112,111 He of terminal device
Terminal device 112 can preferentially enable outer net and upload scene, file is uploaded to external network server 113, and this document is synchronous
To intranet server 123;When terminal device 121 and terminal device 122 receive the file of Client-initiated File download type
When transmission request, terminal device 121 and terminal device 122 can enable Intranet downloading scene, download institute from intranet server 123
Need file;When terminal device 121 and terminal device 122 receive the file transmission request that Client-initiated file uploads type
When, terminal device 121 and terminal device 122 can enable Intranet and upload scene, file is uploaded to intranet server 123, and
This document is synchronized to external network server 113.
It should be noted that under normal conditions, user can be initiated by browser on terminal device or application program
It, will be automatically according to this document after file transmission request, browser or application program receive user's initiation file transmission request
User identifier and request type mark in transmission request, determine the scene enabled for the transmission of this file.
It should be understood that above-mentioned application scenarios shown in FIG. 1 are only a kind of example, and in practical applications, each terminal in Fig. 1
Equipment actually may be server, i.e., file transmission controlling party provided by the embodiments of the present application can also be executed by server
Method does not do any restriction to the application scenarios of file transfer control method provided by the embodiments of the present application herein.
File transfer control method provided by the present application is introduced below by embodiment.
Referring to fig. 2, Fig. 2 is the flow diagram of file transfer control method provided by the embodiments of the present application;For the ease of
Description, following embodiments are described using terminal device as executing subject, it should be appreciated that the execution of this document transfer control method
Main body is not limited in terminal device, can also have the equipment of file upload and download capabilities for server etc..Such as Fig. 2 institute
Show, this document transfer control method the following steps are included:
Step 201: receiving file transmission request, carry user identifier and request type mark in the file transmission request
Know.
When user needs to upload by terminal device or download file, user can be clear by what is run on terminal device
It lookes at device or other applications, correspondingly initiates file transmission request.User identifier is carried in this document transmission request and is asked
Seek type identification, wherein it is also non-Intranet user (i.e. external network user) that it is Intranet user that user identifier, which can characterize user, request
It is specifically that request downloading file still requests transmitting file that type identification, which can characterize the file transmission request that user is initiated,.
Specifically, when user downloads file by browser or application requests, needed for can correspondingly selecting itself
File, and click the file download button on interface, asked at this point, browser or application program will correspondingly generate file transmission
It asks, and determines that the request type of this document transmission request is identified as File download type, meanwhile, browser or application program may be used also
With obtain user account title, network name used by a user etc. can be identified for that user whether be Intranet user information, make
For user identifier, add it in this document transmission request.
Analogously, user is by when transmitting file, can correspondingly select itself institute on browser or application requests
The file to be uploaded, and the file upload button on interface is clicked, at this point, browser or application program will correspondingly generate file
Transmission request, and determine this document transmission request request type be identified as file upload type, meanwhile, browser or apply journey
Sequence can also obtain user account title, network name used by a user etc. can be identified for that user whether be Intranet user letter
Breath adds it in file transmission request as user identifier.
Step 202: in the case where the request type is identified as File download type, being used when the user identifier characterizes
When family is Intranet user, enables Intranet and scene is locally-downloaded, file needed for being downloaded from intranet server;When the user identifier
When characterization user is not Intranet user, the preferential outer net that enables downloads scene, and required file is downloaded from external network server.
Step 203: in the case where the request type is identified as file and uploads type, being used when the user identifier characterizes
When family is Intranet user, enables Intranet and locally upload scene, file is uploaded to intranet server and is synchronized to external network server;
When user identifier characterization user is not Intranet user, the preferential outer net that enables uploads scene, and file is uploaded to outer net clothes
Business device is simultaneously synchronized to intranet server.
It, can correspondingly after the file transmission request that terminal device receives the browser of self-operating or application program generates
According to the request type mark and user identifier in this document transmission request, determine for which kind of text this document transmission request opens
Part transmitting scene.
Specifically, terminal device can first judge that the request type mark in file transmission request is specially file download class
Type or file upload type;If the request type is identified as File download type, 202 are thened follow the steps, that is, continues judgement and uses
Family identifies whether as Intranet user, if so, enabling Intranet is locally-downloaded scene, file needed for being downloaded from intranet server,
If it is not, then preferentially enabling outer net downloads scene, file needed for being downloaded from external network server;If the request type is identified as file
Type is uploaded, 203 is thened follow the steps, that is, continues to judge whether user identifier is Intranet user, if so, enabling this ground of Intranet
Scene is passed, file is uploaded to intranet server and is synchronized to external network server, if it is not, then preferentially enabling outer net uploads scene,
File is uploaded to external network server and is synchronized to intranet server.
In one possible implementation, if terminal device determines that the user identifier in file transmission request is non-Intranet
User, and the request type in this document transmission request is identified as File download type, at this point, terminal device can not be opened directly
Scene is downloaded with outer net, but first passes through following steps to determine the final file transmitting scene to be enabled:
Terminal device first judges whether the outer net function of itself opens;When its outer net function open when, further judge to
Whether the file of downloading is stored in external network server, if the file to be downloaded is stored in external network server, enables outer
Load scene off the net downloads the required file from external network server;Conversely, working as in the closing of outer net function or external network server not
When storing the file to be downloaded, terminal device enables Intranet and scene is locally-downloaded, file needed for downloading from intranet server.
That is, the outer net function in terminal device itself is opened, and file to be downloaded is stored in the feelings in external network server
Under condition, terminal device enables outer net and downloads scene, downloads required file from external network server;And in the outer net of terminal device itself
In the case that function is closed and/or file to be downloaded is not stored in external network server, terminal device enables Intranet and downloads field
Scape downloads required file from intranet server.In this way, terminal device is first according to outside itself before enabling outer net downloading scene
The storage location of the use state of net function and file to be downloaded determines finally whether enable outer net downloading scene, avoids
Unnecessary process resource is wasted because directly enabling outer net downloading scene.
In one possible implementation, if terminal device determines that the user identifier in file transmission request is non-Intranet
User, and the request type in this document transmission request is identified as file and uploads type, at this point, terminal device can not be opened directly
Scene is uploaded with outer net, but first passes through following steps to decide whether the file transmitting scene for finally needing to enable:
Terminal device may determine that whether the outer net function of itself opens;When its outer net function is opened, selection enables outer
It is online to pass scene, file is uploaded to external network server and is synchronized to intranet server;When its outer net function is closed, selection is opened
Scene is locally uploaded with Intranet, file is uploaded to intranet server and is synchronized to external network server.
That is, in the case where the outer net function of terminal device itself is opened, terminal device enabling outer net upload scene, and
In the case that the outer net function of terminal device itself is not opened, terminal device enables Intranet and uploads scene.In this way, enabling outer net
Before uploading scene, terminal device determines that finally whether enabling outer net uploads field first according to the use state of itself outer net function
Scape avoids not supported there is a situation where directly enabling outer net upload scene.
It should be noted that above-mentioned external network server is specifically as follows cloud storage service device, for example, object storage server
(Object Storage Service, OSS) it can efficiently solve external network user to upload speed of download slow, and differently
The big problem of domain user's access speed difference;Above-mentioned intranet server is specifically as follows Intranet disk array.
It should be noted that the selection mode for the mainly file transmitting scene that the embodiment of the present application is introduced, above-mentioned interior
The specific implementation that scene, outer net downloading scene, Intranet locally upload scene and outer net upload scene is locally-downloaded in net, will
It is introduced in subsequent embodiment, referring particularly to the related content in subsequent embodiment.
Above-mentioned file transfer control method is directed to external network user and Intranet user, each provide corresponding file upload and
Download service, that is, when external network user uploads or downloads file, preferential enabling outer net uploads scene or outer net downloads scene, and
Pass the file synchronization for external network user being uploaded in scene on the net outside to intranet server, when Intranet user uploads or download file
When, enabling Intranet, locally scene is locally-downloaded in upload scene or Intranet, and locally uploading in Intranet will be on Intranet user in scene
The file synchronization of biography is to external network server.In this way, All Files only can just occupy ingress bandwidth when uploading, under external network user
It will no longer be required to when published article part through intranet server, correspondingly also will no longer occupy its ingress bandwidth, and save to the maximum extent
Ingress bandwidth, solve the problems, such as demand for ingress bandwidth with being increasing for portfolio linear increase, simultaneously
Also it will be helpful to enterprise and extend its business.
For the ease of further understanding file transfer control method shown in Fig. 2, below with reference to Fig. 3 and Fig. 4, respectively to asking
Ask type identification be File download type when implementation and request type be identified as file upload type when realization side
Formula is introduced.
Referring to Fig. 3, Fig. 3 is the process signal executed needed for terminal device when request type is identified as File download type
Figure, the as flow diagram of document down loading method.
As shown in figure 3, terminal is set when user's initiation request type is identified as the file transmission request of File download type
It is standby first to judge whether user is Intranet user according to user identifier therein, if so, directly enabling Intranet is locally-downloaded scene.
If it is not, then continuing to judge whether the outer net function of itself opens;If it is not, then directly enabling Intranet is locally-downloaded scene, if so,
Continue to judge whether file to be downloaded is stored in external network server, if being stored in external network server, enable outer off the net
Scene is carried, if being not stored in outer net service, Intranet is enabled and scene is locally-downloaded.
Referring to fig. 4, Fig. 4 is that request type is identified as the process signal executed needed for terminal device when file uploads type
Figure, the as flow diagram of file uploading method.
As shown in figure 4, terminal is set when user's initiation request type is identified as file and uploads the file transmission request of type
It is standby first to judge whether user is Intranet user according to user identifier therein, if so, directly enabling Intranet locally uploads scene.
If it is not, then continuing to judge whether the outer net function of itself opens, if it is not, then enabling Intranet locally uploads scene, if so, enabling
Outer net uploads scene.
Below by embodiment respectively to above-mentioned outer net upload scene, outer net downloading scene, Intranet locally upload scene with
And the specific implementation of Intranet downloading scene is introduced.
Referring to Fig. 5, Fig. 5 is the flow diagram that outer net provided by the embodiments of the present application uploads scene.For ease of description,
Following embodiments are still described using terminal device as executing subject, it should be appreciated that upload transmitting file in scene by outer net
The executing subject of method is not limited in terminal device, can also have the equipment of file upload function for server etc..Such as Fig. 5
It is shown, the outer net upload scene the following steps are included:
Step 501: requesting upper transmitting file admissible parameter to intranet server, receive the upload that the intranet server returns
File admissible parameter.
When terminal device determines that enabling outer net uploads scene, terminal device can first request to upload text to intranet server
Part admissible parameter, in response to the request that terminal device is initiated, intranet server will correspondingly be returned upper transmitting file admissible parameter
It is back to terminal device.
Step 502: being generated according to the upper transmitting file admissible parameter splicing and upload license uniform resource locator
(Uniform Resource Locator, URL).
After terminal device receives the upper transmitting file admissible parameter of intranet server return, it can call and need to initiate file
The browser or application program for transmitting request generate according to transmitting file admissible parameter splicing on this and upload license URL.
Step 503: permitting URL to upload first object file to the external network server based on the upload, and indicate institute
It states external network server and connection is established with the intranet server based on the readjustment path specified in license URL that uploads, be based on
Asynchronous task is by the first object file synchronization into the intranet server.
Terminal device permits URL according to the upload that splicing generates, and uploads its file for uploading of needs i.e. to external network server
First object file, and indicate that external network server based on the readjustment path specified in upload license URL, is built with intranet server
Vertical connection stores the synchronous of the first object file to realize, i.e., so that external network server and intranet server store
The first object file.
When specific implementation, after external network server receives first object file, time for uploading and indicating in license URL is first passed through
Path is adjusted, sends back tune request to intranet server;After intranet server receives readjustment request, accordingly for the first mesh
Document creation reference number of a document is marked, and starts one for synchronizing the asynchronous task of first object file, in turn, the text that will be created
Part number is sent to external network server;After external network server receives reference number of a document, this document number is sent to terminal device,
To inform that the terminal device first object file uploads successfully.
After asynchronous task of the intranet server starting for synchronizing first object file, intranet server is to external network server
Initiate file acquisition request, with the first object file that request terminal device uploads, correspondingly, external network server by this
One file destination is sent to intranet server, and intranet server updates file synchronization result into the file information.
It should be noted that external network server and intranet server carry out file synchronization, background process by asynchronous task
Have elasticity and configurability, it can the selection arbitrary period such as network idle period carries out file synchronization, can also be correspondingly
Adjust file transfer rate.
In this way, terminal device uploads scene by above-mentioned outer net, the first object file for being needed to upload is uploaded to outer
Network server, and correspondingly it is synchronized to intranet server;Subsequent user no matter downloads scene by outer net or Intranet downloads field
Scape can rapidly download the first object file from corresponding server, and external network user is downloading first mesh
When marking file, ingress bandwidth will not be occupied, ingress bandwidth has been saved.
Scene is uploaded for the ease of further understanding above-mentioned outer net shown in fig. 5, below with reference to Fig. 6, from terminal device, interior
Network server and the angle of external network server interaction are set out, and are uploaded scene to outer net shown in fig. 5 and are introduced.Referring to Fig. 6,
Fig. 6 is the interaction signaling diagram that outer net provided by the embodiments of the present application uploads scene.
As shown in fig. 6, after the file upload button of user's click terminal device, if terminal device determines that enabling outer net uploads
Scene, then terminal device can request to upload admissible parameter to correspondingly intranet server, and intranet server is returned to terminal device
After uploading admissible parameter, terminal device splices the upload admissible parameter and generates upload license URL;And it will based on license URL is uploaded
First object file is uploaded to external network server, after external network server receives the first object file, is permitted based on the upload
URL sends back tune request to intranet server;Intranet server is requested in response to the readjustment, creates reference number of a document and file
Synchronous task, and this document number is sent to external network server, this document number is sent to terminal in turn and set by external network server
It is standby, to notify its first object file to upload successfully;In the file synchronization task that intranet server is started, intranet server
Request obtains first object file from external network server, which is correspondingly sent to Intranet by external network server
Server, in turn, intranet server can update file synchronization result.
Referring to Fig. 7, Fig. 7 is the flow diagram that outer net provided by the embodiments of the present application downloads scene.For ease of description,
Following embodiments are still described using terminal device as executing subject, it should be appreciated that download scene by outer net and download file
The executing subject of method is not limited in terminal device, can also have the equipment of file download function for server etc..Such as Fig. 7
It is shown, the outer net download scene the following steps are included:
Step 701: requesting downloading authorization URL to intranet server, receive the downloading authorization that the intranet server returns
URL, the downloading authorization URL instruction can download the second file destination from external network server.
When terminal device, which determines, enables outer net downloading scene, terminal device can be by initiating the clear of file transmission request
It lookes at device or application program, requests downloading authorization URL to intranet server;Correspondingly, intranet server is sent out in response to terminal device
The request risen returns to downloading authorization URL to terminal device, and downloading authorization URL can be indicated to download from external network server and be used
The second file destination downloaded needed for family.
It, can be according to second target text after selected the second file destination for needing to download of terminal device when specific implementation
Part number requests the corresponding downloading authorization URL of second file destination to intranet server.
Step 702: URL being authorized based on the downloading, second file destination is downloaded from the external network server.
After terminal device gets the downloading authorization URL of intranet server return, taken according to the downloading authorization URL to outer net
Business device request the second file destination of downloading, correspondingly, which is back to terminal device by external network server.
In this way, terminal device downloads scene by above-mentioned outer net, downloading obtains the second required mesh from external network server
Mark file will not occupy Enterprise portal bandwidth, save ingress bandwidth in this file download process.
For the ease of further understanding above-mentioned outer net shown in Fig. 7 downloading scene, below with reference to Fig. 8, from terminal device, interior
Network server and the angle of external network server interaction are set out, and outer net shown in Fig. 7 downloading scene is introduced.Referring to Fig. 8,
Fig. 8 is the interaction signaling diagram that outer net provided by the embodiments of the present application downloads scene.
As shown in figure 8, after the file download button of user's click terminal device, if terminal device, which determines, enables outer net downloading
Scene, then the reference number of a document of the second file destination of terminal device downloading according to needed for user, is somebody's turn to do to intranet server request
The corresponding downloading of second file destination authorizes URL, and intranet server returns to downloading authorization URL to correspondingly terminal device;Into
And terminal device requests to download second file destination from external network server according to downloading authorization URL, external network server
Second file destination is correspondingly sent to terminal device, realizes the successful downloading of the second file destination.
Referring to Fig. 9, Fig. 9 is the flow diagram that Intranet provided by the embodiments of the present application locally uploads scene.For the ease of
Description, following embodiments are still described using terminal device as executing subject, it should be appreciated that are locally uploaded in scene by Intranet
The executing subject of the method for transmitting file is not limited in terminal device, can also have setting for file upload function for server etc.
It is standby.As shown in figure 9, the Intranet locally upload scene the following steps are included:
Step 901: first object file to be uploaded being uploaded to intranet server, so that the intranet server receives
The first object file, generates corresponding reference number of a document and starts asynchronous task and synchronize the first object to external network server
File.
When terminal device determines that enabling Intranet locally uploads scene, terminal device can be by initiating file transmission request
Browser or application program, select first object file to be uploaded, and the first object file is uploaded to Intranet service
Device;It, will be accordingly for the corresponding file of first object document creation after intranet server receives the first object file
Number, and start one for synchronizing the asynchronous task of the first object file to external network server.
After asynchronous task of the intranet server starting for synchronizing first object file, intranet server is to external network server
The first object file is sent, after external network server is successfully received the first object file, returns to file to intranet server
It sends as a result, correspondingly, it is same that intranet server updates file to indicate that external network server has been successfully received first object file
Walk result.
Step 902: receiving the corresponding reference number of a document of first object file.
After intranet server is directed to first object file generated reference number of a document, this document number correspondingly can be returned into end
End equipment, to inform that terminal device first object file successfully uploads.
It should be noted that intranet server and external network server carry out file synchronization, background process by asynchronous task
Have elasticity and configurability, it can the selection arbitrary period such as network idle period carries out file synchronization, can also be correspondingly
Adjust file transfer rate.
In this way, terminal device locally uploads scene by above-mentioned Intranet, the first object file uploaded will be needed to be uploaded to
Intranet server, and correspondingly it is synchronized to external network server;Subsequent user no matter downloads scene by outer net or Intranet is downloaded
Scene, can rapidly download the first object file from corresponding server, and external network user download this first
When file destination, ingress bandwidth will not be occupied, ingress bandwidth has been saved.
It is set for the ease of further understanding above-mentioned upload scene in Intranet local shown in Fig. 9 below with reference to Figure 10 from terminal
Standby, intranet server and the angle of external network server interaction are set out, and scene is locally uploaded to Intranet shown in Fig. 9 and is situated between
It continues.Referring to Figure 10, Figure 10 is the interaction signaling diagram that Intranet provided by the embodiments of the present application locally uploads scene.
As shown in Figure 10, after the file upload button of user's click terminal device, if terminal device, which determines, enables Intranet sheet
Ground uploads scene, then terminal device can will correspondingly need the first object file uploaded to be sent to intranet server, Intranet clothes
Device be engaged in for its corresponding reference number of a document of the first object document creation, and is used for the first object file synchronization to outer net
The asynchronous task of server, the corresponding reference number of a document of first object file is sent terminal device by intranet server, to inform end
The end equipment first object file uploads successfully;After intranet server starts asynchronous task, intranet server can be by first object
File is sent to external network server, after external network server is properly received the first object file, can return and send out to intranet server
It send as a result, intranet server updates accordingly file synchronization result.
Referring to Figure 11, Figure 11 is the flow diagram that scene is locally-downloaded in Intranet provided by the embodiments of the present application.In order to just
In description, following embodiments are still described using terminal device as executing subject, it should be appreciated that scene is locally-downloaded by Intranet
The executing subject for downloading the method for file is not limited in terminal device, can also have file download function for server etc.
Equipment.As shown in figure 11, the Intranet scene is locally-downloaded the following steps are included:
Step 1101: the reference number of a document based on the second file destination to be downloaded sends file acquisition to intranet server
Request.
When terminal device determines that enabling Intranet is locally-downloaded scene, terminal device can be by initiating file transmission request
Browser or application program initiate file to intranet server and obtain according to the reference number of a document of the second file destination to be downloaded
Request is taken, which is obtained from intranet server with request.
Step 1102: receiving the second file destination that the intranet server returns.
After intranet server receives the file acquisition request of terminal device transmission, according to the text in this document acquisition request
Part number, determines the second file destination to be downloaded of terminal device, and return to second file destination to terminal device.
In this way, scene is locally-downloaded by above-mentioned Intranet in terminal device, downloading obtains required the from intranet server
Two file destinations can be directly based upon high speed Intranet File Transfer Protocol (File Transfer in this file download process
Protocol, FTP) realize the quick-downloading of file, and Enterprise portal bandwidth will not be occupied.
Scene is locally-downloaded for the ease of further understanding Intranet shown in above-mentioned Figure 11, below with reference to Figure 12, from terminal
The angle of equipment, intranet server and external network server interaction is set out, and scene is locally-downloaded to Intranet shown in Figure 12 and carries out
It introduces.Referring to Figure 12, Figure 12 is the interaction signaling diagram that scene is locally-downloaded in Intranet provided by the embodiments of the present application.
As shown in figure 12, after the file download button of user's click terminal device, if terminal device, which determines, enables Intranet sheet
Scene is downloaded on ground, then the reference number of a document of the second file destination of terminal device downloading according to needed for user, to intranet server
Request second file destination;Correspondingly, the file acquisition that intranet server is sent in response to terminal device is requested, by the
Two file destinations are sent to terminal device, realize the successful downloading of the second file destination.
For above-described file transfer control method, present invention also provides corresponding file transmission control unit,
So that above-mentioned file transfer control method is able to apply and realize in practice.
It is a kind of file transmission control corresponding with file transfer control method shown in figure 2 above referring to Figure 13, Figure 13
The structural schematic diagram of device 1300, this document transmission control unit 1300 include:
Receiving unit 1301, for receiving file transmission request, carried in the file transmission request user identifier and
Request type mark;
First download unit 1302, in the case where the request type is identified as File download type, when described
When user identifier characterization user is Intranet user, enables Intranet and scene is locally-downloaded, file needed for being downloaded from intranet server;
Second download unit 1303, in the case where the request type is identified as File download type, when described
When user identifier characterization user is not Intranet user, the preferential outer net that enables downloads scene, and required text is downloaded from external network server
Part;
First uploading unit 1304, for the request type be identified as file upload type in the case where, when described
User identifier characterizes user when being Intranet user, enables Intranet and locally uploads scene, file is uploaded to intranet server and same
It walks to external network server;
Second uploading unit 1305, for the request type be identified as file upload type in the case where, when described
When user identifier characterization user is not Intranet user, the preferential outer net that enables uploads scene, and file is uploaded to external network server simultaneously
It is synchronized to intranet server.
Optionally, second uploading unit 1305, is also used to:
Judge whether outer net function opens;
When outer net function is opened, enables outer net and upload scene, file is uploaded to external network server and is synchronized to Intranet
Server;
When outer net function is closed, enables Intranet and locally upload scene, file is uploaded to intranet server and is synchronized to
External network server.
Optionally, second uploading unit 1305, is also used to:
Upper transmitting file admissible parameter is requested to intranet server, receives the upper transmitting file license that the intranet server returns
Parameter;
It is generated according to the upper transmitting file admissible parameter splicing and uploads license URL;
Permit URL to upload first object file to the external network server based on the upload, and indicates the outer net clothes
Business device establishes connection with the intranet server based on the readjustment path specified in license URL that uploads, and is based on asynchronous task
By the first object file synchronization into the intranet server.
Optionally, second download unit 1303, is also used to:
Judge whether outer net function opens;
When outer net function is opened, judge whether file to be downloaded is stored in external network server;
When the second file destination to be downloaded is stored in external network server, then outer net downloading scene is enabled, is taken from outer net
Business device downloads second file destination;
When outer net function is closed or when not stored second file destination in the external network server, in enabling
Scene is locally-downloaded in net, and second file destination is downloaded from intranet server.
Optionally, second download unit 1303, is also used to:
Downloading authorization URL is requested to intranet server, the downloading authorization URL for receiving that the intranet server returns is described
Downloading authorization URL instruction can download second file destination from external network server;
URL is authorized based on the downloading, second file destination is downloaded from the external network server.
Optionally, first download unit 1302, is used for:
Based on the reference number of a document of the second file destination to be downloaded, file acquisition request is sent to intranet server;
Receive the second file destination that the intranet server returns.
Optionally, first uploading unit 1304, is used for:
First object file to be uploaded is uploaded to intranet server, so that the intranet server receives described first
File destination, generates corresponding reference number of a document and starts asynchronous task and synchronize the first object file to external network server.
Above-mentioned file transmission control unit is directed to external network user and Intranet user, each provide corresponding file upload and
Download service, that is, when external network user uploads or downloads file, preferential enabling outer net uploads scene or outer net downloads scene, and
Pass the file synchronization for external network user being uploaded in scene on the net outside to intranet server, when Intranet user uploads or download file
When, enabling Intranet, locally scene is locally-downloaded in upload scene or Intranet, and locally uploading in Intranet will be on Intranet user in scene
The file synchronization of biography is to external network server.In this way, All Files only can just occupy ingress bandwidth when uploading, under external network user
It will no longer be required to when published article part through intranet server, correspondingly also will no longer occupy its ingress bandwidth, and save to the maximum extent
Ingress bandwidth, solve the problems, such as demand for ingress bandwidth with being increasing for portfolio linear increase, simultaneously
Also it will be helpful to enterprise and extend its business.
Present invention also provides a kind of equipment for controlling file transmission, which is specifically as follows server, referring to
Figure 14, Figure 14 are a kind of structural schematic diagram of the server for inquiry amount advertisement inventory provided by the embodiments of the present application.The service
Device 1400 can generate bigger difference because configuration or performance are different, may include one or more central processing units
(central processing units, CPU) 1422 (for example, one or more processors) and memory 1432, one
The storage medium 1430 of a or more than one storage application program 1442 or data 1444 (such as deposit by one or more magnanimity
Store up equipment).Wherein, memory 1432 and storage medium 1430 can be of short duration storage or persistent storage.It is stored in storage medium
1430 program may include one or more modules (diagram does not mark), and each module may include in server
Series of instructions operation.Further, central processing unit 1422 can be set to communicate with storage medium 1430, in server
The series of instructions operation in storage medium 1430 is executed on 1400.
Server 1400 can also include one or more power supplys 1426, one or more wired or wireless nets
Network interface 1450, one or more input/output interfaces 1458, and/or, one or more operating systems 1441, example
Such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
The step as performed by server can be based on server architecture shown in the Figure 14 in above-described embodiment.
File transmission request is received, carries user identifier and request type mark in the file transmission request;
In the case where the request type is identified as File download type, when the user identifier, characterization user is Intranet
When user, enables Intranet and scene is locally-downloaded, file needed for being downloaded from intranet server;When the user identifier characterizes user
When not being Intranet user, the preferential outer net that enables downloads scene, file needed for downloading from external network server;
In the case where the request type is identified as file and uploads type, when the user identifier, characterization user is Intranet
When user, enables Intranet and locally upload scene, file is uploaded to intranet server and is synchronized to external network server;When the use
For family mark characterization user when not being Intranet user, the preferential outer net that enables uploads scene, and file is uploaded to external network server and same
It walks to intranet server.
Optionally, any specific implementation side of file transfer control method in the embodiment of the present application can also be performed in CPU1422
The method and step of formula.
The embodiment of the present application also provides another equipment for controlling file transmission, which is specifically as follows terminal
Equipment.As shown in figure 15, for ease of description, part relevant to the embodiment of the present application is illustrated only, particular technique details is not
It discloses, please refers to the embodiment of the present application method part.The terminal can be include mobile phone, tablet computer, personal digital assistant
(Personal Digital Assistant, PDA), point-of-sale terminal (Point of Sales, POS), vehicle-mounted computer etc. are any
Terminal device, taking the terminal as an example:
Figure 15 shows the block diagram of the part-structure of mobile phone relevant to terminal provided by the embodiments of the present application.With reference to figure
15, mobile phone includes: radio frequency (Radio Frequency, RF) circuit 1510, memory 1520, input unit 1530, display unit
1540, sensor 1550, voicefrequency circuit 1560, Wireless Fidelity (wireless fidelity, WiFi) module 1070, processor
The components such as 1580 and power supply 1590;It wherein, include input panel 1531 and other input equipments in input unit 1530
1532, include display panel 1541 in display unit 1540, includes loudspeaker 1561 and microphone 1562 in voicefrequency circuit 1560.
It, can be with it will be understood by those skilled in the art that handset structure shown in Figure 15 does not constitute the restriction to mobile phone
Including perhaps combining certain components or different component layouts than illustrating more or fewer components.
In the embodiment of the present application, processor 1580 included by the terminal is with the following functions:
File transmission request is received, carries user identifier and request type mark in the file transmission request;
In the case where the request type is identified as File download type, when the user identifier, characterization user is Intranet
When user, enables Intranet and scene is locally-downloaded, file needed for being downloaded from intranet server;When the user identifier characterizes user
When not being Intranet user, the preferential outer net that enables downloads scene, file needed for downloading from external network server;
In the case where the request type is identified as file and uploads type, when the user identifier, characterization user is Intranet
When user, enables Intranet and locally upload scene, file is uploaded to intranet server and is synchronized to external network server;When the use
For family mark characterization user when not being Intranet user, the preferential outer net that enables uploads scene, and file is uploaded to external network server and same
It walks to intranet server.
Optionally, any specific implementation of file transfer control method in the embodiment of the present application can also be performed in processor 1580
The method and step of mode.
The embodiment of the present application also provides a kind of computer readable storage medium, for storing program code, the program code
For executing any one embodiment in a kind of file transfer control method described in foregoing individual embodiments.
The embodiment of the present application also provides a kind of computer program product including instruction, when run on a computer,
So that computer executes any one embodiment in a kind of file transfer control method described in foregoing individual embodiments.
The embodiment of the present application also provides a kind of document transmission system, including: terminal device, intranet server and outer
Network server;Terminal device is for executing document transmission method provided by the embodiments of the present application, intranet server and outer net service
The file that device is uploaded for synchronous storage user by terminal device, and file download service can be provided for user.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the application
Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (full name in English: Read-Only
Memory, english abbreviation: ROM), random access memory (full name in English: Random Access Memory, english abbreviation:
RAM), the various media that can store program code such as magnetic or disk.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before
Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.
Claims (18)
1. a kind of file transfer control method characterized by comprising
File transmission request is received, carries user identifier and request type mark in the file transmission request;
In the case where the request type is identified as File download type, when the user identifier, characterization user is Intranet user
When, it enables Intranet and scene is locally-downloaded, file needed for being downloaded from intranet server;When the user identifier, characterization user is not
When Intranet user, the preferential outer net that enables downloads scene, file needed for downloading from external network server;
In the case where the request type is identified as file and uploads type, when the user identifier, characterization user is Intranet user
When, it enables Intranet and locally uploads scene, file is uploaded to intranet server and is synchronized to external network server;When the user marks
When knowledge characterization user is not Intranet user, the preferential outer net that enables uploads scene, and file is uploaded to external network server and is synchronized to
Intranet server.
2. file is uploaded the method according to claim 1, wherein the preferential enabling outer net uploads scene
To external network server and it is synchronized to Intranet local server, comprising:
Judge whether outer net function opens;
When outer net function is opened, enables outer net and upload scene, file is uploaded to external network server and is synchronized to Intranet service
Device;
When outer net function is closed, enables Intranet and locally upload scene, file is uploaded to intranet server and is synchronized to outer net
Server.
3. method according to claim 1 or 2, which is characterized in that the enabling outer net uploads scene, and file is uploaded to
External network server is simultaneously synchronized to intranet server, comprising:
Upper transmitting file admissible parameter is requested to intranet server, receives the upper transmitting file license ginseng that the intranet server returns
Number;
It is generated according to the upper transmitting file admissible parameter splicing and uploads license URL;
Permit URL to upload first object file to the external network server based on the upload, and indicates the external network server
Connection is established with the intranet server based on the readjustment path specified in license URL that uploads, is based on asynchronous task for institute
First object file synchronization is stated into the intranet server.
4. the method according to claim 1, wherein described when user identifier characterization user is not that Intranet is used
When family, the preferential outer net that enables downloads scene, file needed for downloading from external network server, comprising:
Judge whether outer net function opens;
When outer net function is opened, judge whether file to be downloaded is stored in external network server;
When file to be downloaded is stored in external network server, then outer net downloading scene is enabled, needed for external network server downloading
File;
When outer net function is closed or when the not stored file to be downloaded in the external network server, Intranet sheet is enabled
Scene is downloaded on ground, file needed for downloading from intranet server.
5. method according to claim 1 or 4, which is characterized in that the enabling outer net downloads scene, from external network server
File needed for downloading, comprising:
Downloading authorization URL is requested to intranet server, receives the downloading authorization URL that the intranet server returns, the downloading
Authorize URL instruction that can download the second file destination from external network server;
URL is authorized based on the downloading, second file destination is downloaded from the external network server.
6. method according to any one of claims 1 to 5, which is characterized in that scene is locally-downloaded in the enabling Intranet, from
File needed for being downloaded in intranet server, comprising:
Based on the reference number of a document of the second file destination to be downloaded, file acquisition request is sent to intranet server;
Receive the second file destination that the intranet server returns.
7. method according to any one of claims 1 to 5, which is characterized in that the enabling Intranet locally uploads scene, will
File is uploaded to intranet server and is synchronized to external network server, comprising:
First object file to be uploaded is uploaded to intranet server, so that the intranet server receives the first object
File, generates corresponding reference number of a document and starts asynchronous task and synchronize the first object file to external network server.
8. the method according to claim 1, wherein the external network server uses cloud storage service device.
9. a kind of file transmission control unit characterized by comprising
Receiving unit carries user identifier and request type in the file transmission request for receiving file transmission request
Mark;
First download unit, in the case where the request type is identified as File download type, when the user identifier
When characterization user is Intranet user, enables Intranet and scene is locally-downloaded, file needed for being downloaded from intranet server;
Second download unit, in the case where the request type is identified as File download type, when the user identifier
When characterization user is not Intranet user, the preferential outer net that enables downloads scene, and required file is downloaded from external network server;
First uploading unit, for the request type be identified as file upload type in the case where, when the user identifier
When characterization user is Intranet user, enables Intranet and locally upload scene, file is uploaded to intranet server and is synchronized to outer net
Server;
Second uploading unit, for the request type be identified as file upload type in the case where, when the user identifier
When characterization user is not Intranet user, the preferential outer net that enables uploads scene, and file is uploaded to external network server and is synchronized to interior
Network server.
10. device according to claim 9, which is characterized in that second uploading unit is also used to:
Judge whether outer net function opens;
When outer net function is opened, enables outer net and upload scene, file is uploaded to external network server and is synchronized to Intranet service
Device;
When outer net function is closed, enables Intranet and locally upload scene, file is uploaded to intranet server and is synchronized to outer net
Server.
11. device according to claim 9, which is characterized in that second uploading unit is also used to:
Upper transmitting file admissible parameter is requested to intranet server, receives the upper transmitting file license ginseng that the intranet server returns
Number;
It is generated according to the upper transmitting file admissible parameter splicing and uploads license URL;
Permit URL to upload first object file to the external network server based on the upload, and indicates the external network server
Connection is established with the intranet server based on the readjustment path specified in license URL that uploads, is based on asynchronous task for institute
First object file synchronization is stated into the intranet server.
12. device according to claim 9, which is characterized in that second download unit is also used to:
Judge whether outer net function opens;
When outer net function is opened, judge whether file to be downloaded is stored in external network server;
When the second file destination to be downloaded is stored in external network server, then outer net downloading scene is enabled, from external network server
Download second file destination;
When outer net function is closed or when not stored second file destination in the external network server, Intranet sheet is enabled
Scene is downloaded on ground, and second file destination is downloaded from intranet server.
13. device according to claim 9, which is characterized in that second download unit is also used to:
Downloading authorization URL is requested to intranet server, receives the downloading authorization URL that the intranet server returns, the downloading
Authorize URL instruction that can download second file destination from external network server;
URL is authorized based on the downloading, second file destination is downloaded from the external network server.
14. according to the described in any item devices of claim 9 to 13, which is characterized in that first download unit is used for:
Based on the reference number of a document of the second file destination to be downloaded, file acquisition request is sent to intranet server;
Receive the second file destination that the intranet server returns.
15. according to the described in any item devices of claim 9 to 13, which is characterized in that first uploading unit is used for:
First object file to be uploaded is uploaded to intranet server, so that the intranet server receives the first object
File, generates corresponding reference number of a document and starts asynchronous task and synchronize the first object file to external network server.
16. a kind of document transmission system characterized by comprising
Terminal device, intranet server and external network server;
The terminal device executes any one of the claims 1 to 8 the method by operation computer program;
The file that the intranet server is uploaded for synchronous storage user by the terminal device with the external network server,
And file download service can be provided for user.
17. a kind of document transmission device, which is characterized in that the equipment includes processor and memory:
The memory is for storing computer program;
The processor requires 1 to 8 described in any item methods for running the computer program perform claim.
18. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium is for storing computer
Program, the computer program require 1 to 8 described in any item methods for perform claim.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910381352.9A CN110247951B (en) | 2019-05-08 | 2019-05-08 | File transmission control method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910381352.9A CN110247951B (en) | 2019-05-08 | 2019-05-08 | File transmission control method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110247951A true CN110247951A (en) | 2019-09-17 |
CN110247951B CN110247951B (en) | 2022-04-01 |
Family
ID=67883842
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910381352.9A Active CN110247951B (en) | 2019-05-08 | 2019-05-08 | File transmission control method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110247951B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110881062A (en) * | 2019-10-18 | 2020-03-13 | 平安科技(深圳)有限公司 | File transmission method, device, equipment and storage medium based on big data |
CN111355791A (en) * | 2020-02-25 | 2020-06-30 | 腾讯科技(深圳)有限公司 | File transmission method and device, computer equipment and storage medium |
CN111478943A (en) * | 2020-03-06 | 2020-07-31 | 上海数据交易中心有限公司 | Cross-local area network file storage method and system, storage medium and terminal |
CN112165515A (en) * | 2020-09-17 | 2021-01-01 | 国义招标股份有限公司 | File storage method and system based on cloud server |
CN112492035A (en) * | 2020-11-30 | 2021-03-12 | 维沃移动通信有限公司 | File transmission method and device and electronic equipment |
CN113704781A (en) * | 2021-07-23 | 2021-11-26 | 平安银行股份有限公司 | File secure transmission method and device, electronic equipment and computer storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102347946A (en) * | 2011-09-22 | 2012-02-08 | 中铁信安(北京)信息安全技术有限公司 | Terminal type interactive link platform system framework and realization method thereof |
CN102780779A (en) * | 2012-07-23 | 2012-11-14 | 北京星网锐捷网络技术有限公司 | Gateway equipment and method and device for optimization of campus network export P2P (peer-to-peer) traffic |
CN104702706A (en) * | 2013-12-04 | 2015-06-10 | ***通信集团公司 | Method and device for acquiring DNS messages |
CN105635123A (en) * | 2015-12-24 | 2016-06-01 | 北京恒华伟业科技股份有限公司 | Method for obtaining external network resource in internal network, internal and external network servers and system |
CN105898802A (en) * | 2016-03-25 | 2016-08-24 | 西安电子科技大学 | Cluster-based caching cooperation and sharing method in heterogeneous wireless network |
CN108551476A (en) * | 2018-03-27 | 2018-09-18 | 深圳市创智成科技股份有限公司 | A kind of control method and system for realizing file transmission |
CN109005189A (en) * | 2018-08-27 | 2018-12-14 | 广东电网有限责任公司信息中心 | A kind of access transmission platform suitable for double net isolation |
CN109167820A (en) * | 2018-08-13 | 2019-01-08 | 彩讯科技股份有限公司 | A kind of method for down loading of application program, device, storage medium and terminal |
-
2019
- 2019-05-08 CN CN201910381352.9A patent/CN110247951B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102347946A (en) * | 2011-09-22 | 2012-02-08 | 中铁信安(北京)信息安全技术有限公司 | Terminal type interactive link platform system framework and realization method thereof |
CN102780779A (en) * | 2012-07-23 | 2012-11-14 | 北京星网锐捷网络技术有限公司 | Gateway equipment and method and device for optimization of campus network export P2P (peer-to-peer) traffic |
CN104702706A (en) * | 2013-12-04 | 2015-06-10 | ***通信集团公司 | Method and device for acquiring DNS messages |
CN105635123A (en) * | 2015-12-24 | 2016-06-01 | 北京恒华伟业科技股份有限公司 | Method for obtaining external network resource in internal network, internal and external network servers and system |
CN105898802A (en) * | 2016-03-25 | 2016-08-24 | 西安电子科技大学 | Cluster-based caching cooperation and sharing method in heterogeneous wireless network |
CN108551476A (en) * | 2018-03-27 | 2018-09-18 | 深圳市创智成科技股份有限公司 | A kind of control method and system for realizing file transmission |
CN109167820A (en) * | 2018-08-13 | 2019-01-08 | 彩讯科技股份有限公司 | A kind of method for down loading of application program, device, storage medium and terminal |
CN109005189A (en) * | 2018-08-27 | 2018-12-14 | 广东电网有限责任公司信息中心 | A kind of access transmission platform suitable for double net isolation |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110881062A (en) * | 2019-10-18 | 2020-03-13 | 平安科技(深圳)有限公司 | File transmission method, device, equipment and storage medium based on big data |
CN111355791A (en) * | 2020-02-25 | 2020-06-30 | 腾讯科技(深圳)有限公司 | File transmission method and device, computer equipment and storage medium |
CN111478943A (en) * | 2020-03-06 | 2020-07-31 | 上海数据交易中心有限公司 | Cross-local area network file storage method and system, storage medium and terminal |
CN112165515A (en) * | 2020-09-17 | 2021-01-01 | 国义招标股份有限公司 | File storage method and system based on cloud server |
CN112492035A (en) * | 2020-11-30 | 2021-03-12 | 维沃移动通信有限公司 | File transmission method and device and electronic equipment |
CN112492035B (en) * | 2020-11-30 | 2023-10-27 | 维沃移动通信有限公司 | File transmission method and device and electronic equipment |
CN113704781A (en) * | 2021-07-23 | 2021-11-26 | 平安银行股份有限公司 | File secure transmission method and device, electronic equipment and computer storage medium |
CN113704781B (en) * | 2021-07-23 | 2023-05-26 | 平安银行股份有限公司 | File secure transmission method and device, electronic equipment and computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110247951B (en) | 2022-04-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110247951A (en) | A kind of file transfer control method, device, equipment and storage medium | |
CN102819461B (en) | Desktop synchronous method, device, equipment and system | |
US8973005B2 (en) | Information processing apparatus, information processing method, recording medium and information processing system | |
US20030172138A1 (en) | System and method for managing two or more electronic devices | |
US20030212684A1 (en) | System and method for adapting preferences based on device location or network topology | |
CN102355500B (en) | Service push method and device | |
CN103019757A (en) | Method, device and system for synchronizing software among multiple clients | |
CN101335641A (en) | Method, apparatus and system for updating apparatus | |
CN105744008B (en) | Smart home platform, method for updating system and device applied to the platform | |
CN110333939B (en) | Task mixed scheduling method and device, scheduling server and resource server | |
US11665060B2 (en) | System and method for remote configuration of scalable datacenter | |
CN109152094A (en) | Wireless network connecting method for terminal | |
KR101499068B1 (en) | Method for joint applications service and apparatus applied to the same | |
US20230018000A1 (en) | Network application programming interface guided service placement | |
US20120215885A1 (en) | System and method for sharing data | |
CN105763545B (en) | A kind of BYOD method and device | |
US20240172023A1 (en) | Remote user plane deployment and configuration | |
US20220174485A1 (en) | Network application programming interface service for application guidance and control | |
WO2003079144A2 (en) | System for standardizing updates of data on a plurality of electronic devices | |
CN105988752A (en) | Information processing device and information processing method | |
US11382150B2 (en) | System and method of managing PNF connectivity in a network slice instance | |
US20220021932A1 (en) | Methods, systems, and devices for providing service differentiation for different types of frames for video content | |
CN102137058B (en) | A kind of page access method and apparatus based on tab page | |
CN110807011A (en) | File synchronization method, electronic device, storage medium and system | |
KR101012418B1 (en) | Smart router, system and method for providing network service using the same |
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 |