CN108810178A - A kind of super large file uploading method and device - Google Patents
A kind of super large file uploading method and device Download PDFInfo
- Publication number
- CN108810178A CN108810178A CN201811103481.3A CN201811103481A CN108810178A CN 108810178 A CN108810178 A CN 108810178A CN 201811103481 A CN201811103481 A CN 201811103481A CN 108810178 A CN108810178 A CN 108810178A
- Authority
- CN
- China
- Prior art keywords
- file
- permission
- server
- transmitted
- transmission system
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
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]
Abstract
The invention discloses a kind of super large file uploading methods and device, this method to include:It receives user and passes through the file to be transmitted that locally uploads;When determining that the occupied memory of file to be transmitted exceeds predetermined threshold value, the session control permission between webpage version document transmission system and server is adjusted to the first permission;File to be transmitted is uploaded to server;After the completion of determining that file to be transmitted is uploaded to server, the session control permission between webpage version document transmission system and server is adjusted to the second permission.By the above-mentioned means, when needing to upload super large file, the session control permission between webpage version document transmission system and server is adjusted, the trouble that user downloads transmitting file in client is avoided by this kind of mode, promotes user experience.
Description
Technical field
The present invention relates to field of computer technology, and in particular to a kind of super large file uploading method and device.
Background technology
In existing technology, by browser when transmitting file, such as using on webpage version document transmission system version mailbox
Transmitting file does not support larger and file upload typically.After the byte that file occupies is more than default value, under necessary
Corresponding application program (Application, abbreviation APP) is carried, transmitting file in client is utilized.Such as webpage version file transmission system
System version mailbox or cloud disk etc., when transmitting super large file, it is necessary to using transmitting file on APP.It is unnecessary that this will bring to user
Trouble, reduce user experience.
Invention content
The embodiment of the present invention is designed to provide a kind of super large file uploading method and device, to solve existing scheme
Using cannot upload super large file on browser when transmitting file, and unnecessary trouble is brought to user, reduces user experience
The problem of.
To achieve the above object, the embodiment of the present invention provides a kind of super large file uploading method, and this method includes:
It receives user and passes through the file to be transmitted that locally uploads;
When determining that the occupied memory of file to be transmitted exceeds predetermined threshold value, by webpage version document transmission system kimonos
Session control permission between business device is adjusted to the first permission, and the first permission is to allow to upload the file that memory exceeds predetermined threshold value
Permission;
File to be transmitted is uploaded to server;
It, will be between webpage version document transmission system and server after the completion of determining that file to be transmitted is uploaded to server
Session control permission be adjusted to the second permission, normal meeting of second permission between webpage version document transmission system and server
Talk about control authority.
The embodiment of the present invention has the following advantages that:When the file for determining that user's needs upload is super large file, that is to say
After the occupied memory of file to be transmitted exceeds predetermined threshold value, it can change between webpage version document transmission system and server
Conversation control power be limited to the first permission.Thus, which webpage version document transmission system can be allowed to upload super large file to clothes
Business device.Eliminate the drawbacks of client needs to download client.And in order to not influence subsequently to webpage version document transmission system just
Often work, it is also necessary to determine that file to be transmitted is uploaded to after the completion of server again, by webpage version document transmission system and service
Session control permission between device is adjusted to permission of normally replying again.By the above-mentioned means, only needing to upload super large text
The session control permission between webpage version document transmission system and server can be just adjusted when part, and use is avoided by this kind of mode
The trouble of transmitting file in client is downloaded at family, promotes user experience.
To achieve the above object, the embodiment of the present invention provides a kind of super big file uploading device, which includes:
Receiving unit passes through the file to be transmitted that locally uploads for user;
Processing unit, for when determining that the occupied memory of file to be transmitted exceeds predetermined threshold value, by webpage version text
Session control permission between part Transmission system and server is adjusted to the first permission, and the first permission is that upload memory is allowed to exceed
The permission of the file of predetermined threshold value;
Transmission unit, for determining the session control between processing unit modification webpage version document transmission system and server
After permission modification processed, file to be transmitted is uploaded to server;
Processing unit is additionally operable to, and after the completion of determining that file to be transmitted is uploaded to server, webpage version file is transmitted
Session control permission between system and server is adjusted to the second permission, and the second permission is webpage version document transmission system kimonos
Normal conversation control authority between business device.
The embodiment of the present invention has the following advantages that:When the file for determining that user's needs upload is super large file, that is to say
After the occupied memory of file to be transmitted exceeds predetermined threshold value, it can change between webpage version document transmission system and server
Conversation control power be limited to the first permission.Thus, which webpage version document transmission system can be allowed to upload super large file to clothes
Business device.Eliminate the drawbacks of client needs to download client.And in order to not influence subsequently to webpage version document transmission system just
Often work, it is also necessary to determine that file to be transmitted is uploaded to after the completion of server again, by webpage version document transmission system and service
Session control permission between device is adjusted to permission of normally replying again.By the above-mentioned means, only needing to upload super large text
The session control permission between webpage version document transmission system and server can be just adjusted when part, and use is avoided by this kind of mode
The trouble of transmitting file in client is downloaded at family, promotes user experience.
Description of the drawings
Fig. 1 is a kind of super large file uploading method flow diagram that the embodiment of the present invention 1 provides.
Fig. 2 is a kind of super big file uploading apparatus structure schematic diagram that the embodiment of the present invention 1 provides.
Specific implementation mode
Illustrate that embodiments of the present invention, those skilled in the art can be by this explanations by particular specific embodiment below
Content disclosed by book understands other advantages and effect of the present invention easily.
It should be clear that structure, ratio, size etc. depicted in this specification institute accompanying drawings, only coordinating specification to be taken off
The content shown is not limited to the enforceable qualifications of the present invention so that those skilled in the art understands and reads, therefore
Do not have technical essential meaning, the modification of any structure, the change of proportionate relationship or the adjustment of size are not influencing the present invention
Under the effect of can be generated and the purpose that can reach, it should all still fall and obtain the model that can cover in disclosed technology contents
In enclosing.Meanwhile cited such as "upper", "lower", " left side ", the right side in this specification ", the term of " centre ", be merely convenient to chat
That states is illustrated, rather than to limit the scope of the invention, relativeness is altered or modified, and skill is being changed without essence
It is held in art, when being also considered as the enforceable scope of the present invention.
Embodiment 1
The embodiment of the present invention 1 provides a kind of super large file uploading method, and specifically as shown in FIG. 1, FIG. 1 is the present invention to implement
A kind of super large file uploading method flow diagram that example provides, this method are suitable for webpage version document transmission system version and upload text
The Transmission system of part, such as mailbox or cloud disk etc..Including:
Step 110, it receives user and passes through the file to be transmitted that locally uploads.
Step 120, when determining that the occupied memory of file to be transmitted exceeds predetermined threshold value, webpage version file is transmitted
Session control permission between system and server is adjusted to the first permission.
Specifically, file to be transmitted is uploaded to webpage version document transmission system by user by local.System can detect
Whether the occupied memory of file to be transmitted exceeds predetermined threshold value.Optionally, set predetermined threshold value can be net here
Page version document transmission system allows the maximum memory permission that upper transmitting file occupies in normal use permission.For example, passing through net
Page version document transmission system can only upload the file of 500M in normal use permission, when being more than this numerical value, then not allow to lead to
Cross the upload of webpage version document transmission system version.It has to go up transmitting file after downloading corresponding client.And in the application, in order to
In the case of not downloading corresponding client, the file to be transmitted that by EMS memory occupation can be more than default value is uploaded to service
Device then needs to change the session control permission between webpage version document transmission system and server, is adjusted to the first permission.
In a specific example, the first permission could be provided as never expired permission.Session control (Session) object is for depositing
The information about user is stored up, or setting is changed for the session of a user.The variable being stored in session objects is deposited
There is the information of sole user, and all pages in application program are all available.It is stored in session objects
Information is typically name, id and parameter.Server can be each new user one new Session of establishment, and
This Session object is fallen in revocation when session expires.However, once session expires, webpage version document transmission system with
Session between server will will disconnect, and lead to the terminal of transmitting file.Therefore, in order to keeping continuing for file to be transmitted
It uploads, the session control permission between webpage version document transmission system and server can be revised as never expired permission.
Step 130, file to be transmitted is uploaded to server.
Specifically:Session control permission between webpage version document transmission system and server is adjusted to the first permission
Afterwards, file to be transmitted is uploaded to the temporary folder of server.
After file to be transmitted is uploaded to the temporary folder of server, page end will show that upload is completed.In this way
It will not affect that the subsequent operation of user.User may exit off the page and do other operation processings.It optionally, will be to be transmitted
File is uploaded to after server, and method further includes:File to be transmitted is encrypted, and carries out distributed storage;
After the completion of storage, feedback response information to webpage version document transmission system.
The process of encryption and storage, compared to the process that the process that file uploads is an asynchronous process.File encryption and
Distributed storage is in background work state, why handles in this way, is that can close the webpage to save the time for user
Do other work.And delay other work without waiting for transmitting file on webpage.And the mode stored can support CEPH to deposit
Storage, FTP storages, hadoop are stored or are locally stored, can specifically set according to actual conditions using which kind of storage mode
It is fixed, such as selected according to client or automatically by being selected after removing adaptation memory interface from the background, do not do excessive restriction here.And it is right
It is then in data encryption because data encryption needs to spend longer time to landing storage, therefore provides guarantor for the safety of data
Barrier.
Further include feedback response information to webpage version document transmission system after the completion of storage.
Step 140, after the completion of determining that file to be transmitted is uploaded to server, by webpage version document transmission system and
Session control permission between server is adjusted to the second permission.
Specifically, in order to ensure that normal session can be established between webpage version document transmission system and server, also need
It will be after the completion of determining that file to be transmitted is uploaded to server, by the session between webpage version document transmission system and server
Control authority is adjusted to the second permission.And the second permission mentioned here, practical is exactly webpage version document transmission system and service
Normal conversation control authority between device.
A kind of super large file uploading method provided in an embodiment of the present invention is super large when determining that user needs the file uploaded
When file, it that is to say that the occupied memory of file to be transmitted is beyond that after predetermined threshold value, can change the transmission of webpage version file
Conversation control power between system and server is limited to the first permission.Thus, can allow on webpage version document transmission system
Super large file is passed to server.Eliminate the drawbacks of client needs to download client.And in order to not influence subsequently to webpage version text
The normal work of part Transmission system, it is also necessary to determine that file to be transmitted is uploaded to after the completion of server again, by webpage version file
Session control permission between Transmission system and server is adjusted to permission of normally replying again.By the above-mentioned means, only existing
It needs just adjust the session control permission between webpage version document transmission system and server when uploading super large file, by this
Kind mode avoids the trouble that user downloads transmitting file in client, promotes user experience.
Embodiment 2
Corresponding with above-described embodiment, the embodiment of the present invention additionally provides a kind of file upload device, specifically such as Fig. 2 institutes
Show, which may include:Receiving unit 201, processing unit 202 and transmission unit 203.
Receiving unit 201 passes through the file to be transmitted that locally uploads for receiving user;
Processing unit 202, for when determine the occupied memory of file to be transmitted exceed predetermined threshold value when, by webpage version
Session control permission between document transmission system and server is adjusted to the first permission, and the first permission is to allow upload memory super
Go out the permission of the file of predetermined threshold value;
Transmission unit 203, for file to be transmitted to be uploaded to server;
Processing unit 202 is additionally operable to, and after the completion of determining that file to be transmitted is uploaded to server, webpage version file is passed
Session control permission between defeated system and server is adjusted to the second permission, the second permission be webpage version document transmission system and
Normal conversation control authority between server.
Optionally, when predetermined threshold value is in the second permission between webpage version document transmission system and server, text is uploaded
The occupied maximum memory of part.
Optionally, transmission unit 203 is specifically used for:File to be transmitted is uploaded to the temporary folder of server.
Optionally, which further includes:Storage unit 204;
Processing unit 202 is additionally operable to that file to be transmitted is encrypted;
Storage unit 204 is used for, to by asynchronous encryption, treated that file to be transmitted carries out distributed storage;
Transmission unit 203 is additionally operable to, and after the completion of the storage of storage unit 204, feedback response information to webpage version file passes
Defeated system.
Function in super big file uploading device provided in an embodiment of the present invention performed by each component is in embodiment 1
It is discussed in detail, will not do excessively repeating here.
A kind of super big file uploading device provided in an embodiment of the present invention is super large when determining that user needs the file uploaded
When file, it that is to say that the occupied memory of file to be transmitted is beyond that after predetermined threshold value, can change the transmission of webpage version file
Conversation control power between system and server is limited to the first permission.Thus, can allow on webpage version document transmission system
Super large file is passed to server.Eliminate the drawbacks of client needs to download client.And in order to not influence subsequently to webpage version text
The normal work of part Transmission system, it is also necessary to determine that file to be transmitted is uploaded to after the completion of server again, by webpage version file
Session control permission between Transmission system and server is adjusted to permission of normally replying again.By the above-mentioned means, only existing
It needs just adjust the session control permission between webpage version document transmission system and server when uploading super large file, by this
Kind mode avoids the trouble that user downloads transmitting file in client, promotes user experience.
Although above having used general explanation and specific embodiment, the present invention is described in detail, at this
On the basis of invention, it can be made some modifications or improvements, this will be apparent to those skilled in the art.Therefore,
These modifications or improvements without departing from theon the basis of the spirit of the present invention belong to the scope of protection of present invention.
Claims (8)
1. a kind of super large file uploading method, which is characterized in that the method includes:
It receives user and passes through the file to be transmitted that locally uploads;
When determining that the occupied memory of file to be transmitted exceeds predetermined threshold value, by webpage version document transmission system kimonos
Session control permission between business device is adjusted to the first permission, and first permission is to allow to upload memory beyond predetermined threshold value
The permission of file;
The file to be transmitted is uploaded to server;
After the completion of determining that the file to be transmitted is uploaded to server, by the webpage version document transmission system and server
Between session control permission be adjusted to the second permission, second permission is between webpage version document transmission system and server
Normal conversation control authority.
2. according to the method described in claim 1, it is characterized in that, the predetermined threshold value is webpage version document transmission system and clothes
When being engaged between device in second permission, the upper occupied maximum memory of transmitting file.
3. according to the method described in claim 1, it is characterized in that, the file to be transmitted is uploaded to server, specifically
Including:
The file to be transmitted is uploaded to the temporary folder of the server.
4. according to claim 1-3 any one of them methods, which is characterized in that described to be uploaded to the file to be transmitted
After server, the method further includes:
The file to be transmitted is encrypted, and carries out distributed storage;
After the completion of storage, feedback response information to the webpage version document transmission system.
5. a kind of super big file uploading device, which is characterized in that described device includes:
Receiving unit passes through the file to be transmitted that locally uploads for user;
Processing unit, for when determining that the occupied memory of file to be transmitted exceeds predetermined threshold value, by webpage version text
Session control permission between part Transmission system and server is adjusted to the first permission, and first permission is to allow to upload memory
The permission of file beyond predetermined threshold value;
Transmission unit, for determining the conversation control power between processing unit modification webpage version document transmission system and server
After limit modification, the file to be transmitted is uploaded to server;
The processing unit is additionally operable to, after the completion of determining that the file to be transmitted is uploaded to server, by the webpage version
Session control permission between document transmission system and server is adjusted to the second permission, and second permission is webpage version file
Normal conversation control authority between Transmission system and server.
6. device according to claim 5, which is characterized in that the predetermined threshold value is webpage version document transmission system and clothes
When being engaged between device in second permission, the upper occupied maximum memory of transmitting file.
7. device according to claim 5, which is characterized in that the transmission unit is specifically used for:It will be described to be transmitted
File is uploaded to the temporary folder of the server.
8. according to claim 5-7 any one of them devices, which is characterized in that described device further includes:Storage unit;
The processing unit is additionally operable to that the file to be transmitted is encrypted;
The storage unit is used for, to by asynchronous encryption, treated that file to be transmitted carries out distributed storage;
The transmission unit is additionally operable to, after the completion of storage unit storage, feedback response information to the webpage version file
Transmission system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811103481.3A CN108810178A (en) | 2018-09-20 | 2018-09-20 | A kind of super large file uploading method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811103481.3A CN108810178A (en) | 2018-09-20 | 2018-09-20 | A kind of super large file uploading method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108810178A true CN108810178A (en) | 2018-11-13 |
Family
ID=64082227
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811103481.3A Pending CN108810178A (en) | 2018-09-20 | 2018-09-20 | A kind of super large file uploading method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108810178A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102880551A (en) * | 2012-07-28 | 2013-01-16 | 深圳市同洲电子股份有限公司 | Method, system and browser for distributing hybrid memory |
CN105302802A (en) * | 2014-05-27 | 2016-02-03 | 腾讯科技(深圳)有限公司 | Picture uploading method and system and browser |
US20180181655A1 (en) * | 2016-12-22 | 2018-06-28 | Vmware, Inc. | Handling Large Streaming File Formats in Web Browsers |
-
2018
- 2018-09-20 CN CN201811103481.3A patent/CN108810178A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102880551A (en) * | 2012-07-28 | 2013-01-16 | 深圳市同洲电子股份有限公司 | Method, system and browser for distributing hybrid memory |
CN105302802A (en) * | 2014-05-27 | 2016-02-03 | 腾讯科技(深圳)有限公司 | Picture uploading method and system and browser |
US20180181655A1 (en) * | 2016-12-22 | 2018-06-28 | Vmware, Inc. | Handling Large Streaming File Formats in Web Browsers |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100307374B1 (en) | Filtered utilization of internet data transfers to reduce delay and increase user control | |
KR102308269B1 (en) | Transmission of control data in proxy-based network communications | |
US5896502A (en) | Internet data transfer control via a client system to reduce delay | |
CN109218368B (en) | Method, device, electronic equipment and readable medium for realizing Http reverse proxy | |
US20170351873A1 (en) | Centralized throttling service | |
US5933600A (en) | Increased control for reduced delay in internet data transfers based on limitations established in a server system | |
CN109391673B (en) | Method, system and terminal equipment for managing update file | |
DE102015119890A1 (en) | Parallel processing of service functions in service function chains | |
CN110865983A (en) | File sharing method and device based on network disk link | |
CN107959700A (en) | The method and cloud storage gateway that adaptive document is downloaded | |
CN104378428A (en) | Method and device for downloading files | |
CN106101183A (en) | The transfer method and apparatus of the source of returning request and time origin system | |
CN112306963A (en) | Resource file loading method and device and computer readable storage medium | |
CN108810178A (en) | A kind of super large file uploading method and device | |
CN113079210A (en) | Cross-region data automatic synchronization configuration method, terminal equipment and storage medium | |
US20140280753A1 (en) | Method and apparatus for peer-to-peer file sharing | |
CN111181905B (en) | File encryption method and device | |
CN105917694B (en) | Service in telecommunication network provides and activation | |
CN105847117A (en) | Method of sending E-mail having attachment, device, and mobile terminal | |
CN116546039A (en) | Virtual machine image uploading method and device, electronic equipment and storage medium | |
CN105847363A (en) | Method and system used for cross-region file sharing | |
CN106161570A (en) | Document down loading method based on page script, device, server group and system | |
CN113064620A (en) | Method and device for processing system data | |
EP3729761B1 (en) | Smart delivery node | |
CN105743777A (en) | Method, device and system for invalidating attachment link in e-mail |
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 | ||
AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20220315 |
|
AD01 | Patent right deemed abandoned |