CN107592369A - The management method and device that file uploads in cloud computing system - Google Patents

The management method and device that file uploads in cloud computing system Download PDF

Info

Publication number
CN107592369A
CN107592369A CN201710970092.XA CN201710970092A CN107592369A CN 107592369 A CN107592369 A CN 107592369A CN 201710970092 A CN201710970092 A CN 201710970092A CN 107592369 A CN107592369 A CN 107592369A
Authority
CN
China
Prior art keywords
upload
file
data
progress
check value
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
Application number
CN201710970092.XA
Other languages
Chinese (zh)
Inventor
王传芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710970092.XA priority Critical patent/CN107592369A/en
Publication of CN107592369A publication Critical patent/CN107592369A/en
Pending legal-status Critical Current

Links

Abstract

The management method and device uploaded the invention discloses file in a kind of cloud computing system.Methods described includes:After file upload request is received, the size of the data uploaded is obtained;According to the size of the data uploaded and the total size of the file, the percentage of the upload progress of calculation document;According to the percentage of the upload progress, the progress of progress bar is shown.

Description

The management method and device that file uploads in cloud computing system
Technical field
The present invention relates to field of information processing, file uploads in espespecially a kind of cloud computing system management method and device.
Background technology
With the fast development of computer and network technologies, cloud computing has become one of current most popular technology, its The middle virtualization technology as cloud computing architecture is just carrying out continuous technology development and changed.
Host Administration upgrading in server virtualization management system is a major issue in virtual management system, Not timing is needed to upload the installation kit or profile service of renewal, so as to which main frame is configured or repaired.Upload procedure In, management user has no way of finding out about it upload situation, is unfavorable for the next step operation of user, and Consumer's Experience effect is bad.
Therefore, how to know that upload progress is urgent problem to be solved in cloud computing system.
The content of the invention
In order to solve the above-mentioned technical problem, the invention provides in a kind of cloud computing system file upload management method and Device, user can be made to know upload progress.
In order to reach the object of the invention, the invention provides the management method that file in a kind of cloud computing system uploads, bag Include:
After file upload request is received, the size of the data uploaded is obtained;
According to the size of the data uploaded and the total size of the file, the hundred of the upload progress of calculation document Divide ratio;
According to the percentage of the upload progress, the progress of progress bar is shown.
In embodiment of the method provided by the invention, described after file upload request is received, methods described is also wrapped Include:
Detect in upload procedure and the management of upload is asked;
The content asked according to the management, determine the display content of progress bar;
Show the progress bar after the determination.
In embodiment of the method provided by the invention, the percentage according to the upload progress, progress bar is shown Progress, including:
After the completion of the data for detecting file upload, the verification of availability is carried out to the data of upload;
When the data check to upload is successful, display progress bar is full lattice;When the data check to upload fails, show Show progress bar for sky.
In embodiment of the method provided by the invention, the data of described pair of upload carry out the verification of availability, including:
To file name corresponding to the data of upload and file size generation check value;
Obtained check value is sent to file and uploads end;
Receive upload end send by the check value and benchmark check value contrast after comparative result, wherein the benchmark Check value is to upload end to be generated according to the file name and file size of file to be uploaded;
Wherein, if the comparative result is that check value is identical with benchmark check value, verify successfully;Otherwise verification is lost Lose.
In embodiment of the method provided by the invention, when the data check to upload fails, methods described also includes:
Prompt user that this file uploads failure.
The managing device that file uploads in a kind of cloud computing system, including:
Acquisition module, for after file upload request is received, obtaining the size of the data uploaded;
Computing module, for the size of data and the total size of the file uploaded according to, calculation document Upload progress percentage;
Display module, for the percentage according to the upload progress, show the progress of progress bar.
In device embodiment provided by the invention, described device also includes:
Detection module, the management of upload is asked for after file upload request is received, detecting in upload procedure;
Determining module, for according to the display content for managing the content asked, determining progress bar;
The display module, for showing the progress bar after the determination.
In device embodiment provided by the invention, the display module includes:
Submodule is verified, after the completion of being uploaded when the data for detecting file, availability is carried out to the data of upload Verification;
Display sub-module, for when the data check to upload is successful, display progress bar to be full lattice;In the number to upload During according to verification failure, display progress bar is sky.
In device embodiment provided by the invention, the verification submodule includes:
Generation unit, for file name corresponding to the data to upload and file size generation check value;
Transmitting element, end is uploaded for obtained check value to be sent into file;
Receiving unit, for receive upload end send by the check value and benchmark check value contrast after comparison knot Fruit, wherein the benchmark check value is to upload end to be generated according to the file name and file size of file to be uploaded;
Wherein, if the comparative result is that check value is identical with benchmark check value, verify successfully;Otherwise verification is lost Lose.
In device embodiment provided by the invention, described device also includes:
Reminding module, for when the data check to upload fails, prompting user that this file uploads failure.
Embodiment provided by the invention, by obtaining the size of the data uploaded, carry out the progress of calculation document upload, press The progress uploaded according to data shows file upload progress in a manner of progress bar, facilitates user to know the dynamic letter that file uploads Breath, provides reference frame for subsequent operation, is easy to the operation and management of user.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by specification, rights Specifically noted structure is realized and obtained in claim and accompanying drawing.
Brief description of the drawings
Accompanying drawing is used for providing further understanding technical solution of the present invention, and a part for constitution instruction, with this The embodiment of application is used to explain technical scheme together, does not form the limitation to technical solution of the present invention.
Fig. 1 is the flow chart of the management method that file uploads in cloud computing system provided by the invention;
Fig. 2 is the structure chart of the managing device that file uploads in cloud computing system provided by the invention.
Embodiment
For the object, technical solutions and advantages of the present invention are more clearly understood, below in conjunction with accompanying drawing to the present invention Embodiment be described in detail.It should be noted that in the case where not conflicting, in the embodiment and embodiment in the application Feature can mutually be combined.
Can be in the computer system of such as one group computer executable instructions the flow of accompanying drawing illustrates the step of Perform.Also, although logical order is shown in flow charts, in some cases, can be with suitable different from herein Sequence performs shown or described step.
Fig. 1 is the flow chart of the management method that file uploads in cloud computing system provided by the invention.Method bag shown in Fig. 1 Include:
Step 101, after file upload request is received, obtain the size of data uploaded;
Specifically, virtual management system user opens the upper transmitting file of select file dialog box selection, the page after selection The file chosen is shown, user clicks on upload button, obtains the size of data that file data has uploaded;
Step 102, the size of data and the total size of the file uploaded according to, the upload of calculation document The percentage of progress;
, can be with specifically, by the proportionate relationship between the size of data and the total size of the file that have uploaded Determine the upload progress of data;
Step 103, the percentage according to the upload progress, show the progress of progress bar.
Specifically, according to the upload progress, in the length of progress bar Mobile state renewal progress bar, will upload to graphically Progress is shown to user, user is known the progress that file uploads.
Embodiment of the method provided by the invention, by obtaining the size of the data uploaded, come entering for calculation document upload Degree, the progress uploaded according to data show file upload progress in a manner of progress bar, facilitate user to know that file uploads dynamic State information, reference frame is provided for subsequent operation, be easy to the operation and management of user.
Embodiment of the method provided by the invention is described further below:
Wherein, after file upload request is received, methods described also includes:
Detect in upload procedure and the management of upload is asked;
The content asked according to the management, determine the display content of progress bar;
Show the progress bar after the determination.
Specifically, in upload procedure, user is possible to be managed upload operation in itself, such as uploads again, temporarily Stop uploading or cancel upload etc., and above-mentioned management is asked, and to determine the display content of progress bar, if pause uploads, then should The display content of progress bar is current progress, uploads or uploads again if cancelling, then the display content of the progress bar is 0。
Wherein, in order to ensure to upload the availability of data, it is necessary to carry out the data of upload in the school of integrality and correctness Test, therefore, after the completion of the data for detecting file upload, the verification of availability is carried out to the data of upload;To upload During data check success, display progress bar is full lattice;When the data check to upload fails, display progress bar is sky.
Wherein, specific method of calibration can be defined according to being actually needed, and the purpose of the verification will mainly receive Data and be actually subjected to upload data carry out content comparison, confirm content it is whether consistent, confirm content it is consistent after, can Confirmation uploads successfully, if content is inconsistent, needs to upload again.
By above-mentioned verification operation, can effectively ensure to upload the availability of data, the data for ensureing to upload are in the future It can use, to ensure the correctness of data.
Wherein, the data of described pair of upload carry out the verification of availability, including:
To file name corresponding to the data of upload and file size generation check value;
Obtained check value is sent to file and uploads end;
Receive upload end send by the check value and benchmark check value contrast after comparative result, wherein the benchmark Check value is to upload end to be generated according to the file name and file size of file to be uploaded;
Wherein, if the comparative result is that check value is identical with benchmark check value, verify successfully;Otherwise verification is lost Lose.
Specifically, after file uploads completion, 99.9%, rather than 100% can be shown by uploading end progress bar.Now Transmitting terminal goes the characteristic value for the file for asking receiving terminal to receive, and now file reception end is given birth to according to file name and file size Into MD5 values, and return to file and upload end.Upload end and MD5 values are calculated according to file size and file name.With the MD5 of return Value compares, and supporting paper completely uploads, progress display 100%.If differing, progress bar resets to 0%.
Certainly, in actual applications, can to realization after data transfer as long as can reach also with other data verification methods Above-mentioned steps are can be suitably used for the verification of property, here is omitted.
Optionally, in order to lift the efficiency of management of user, when the data check to upload fails, methods described is also wrapped Include:Prompt user that this file uploads failure.
Specifically, after verification fails, when progress bar resets to 0%, the upper transmitting file of text prompt user, which exists, to be received It is abnormal, please upload again.The availability of transmitting file, enhances system security in guarantee.
As seen from the above, the present invention proposes a kind of virtual management system file upload progress methods of exhibiting, in real time Prompt the upload situation of user file, real-time calculation document upload progress simultaneously graphically simple and clear shows file The progress bar of upload, conveniently know the progress that file uploads, use simple, easy to operate, the pipe of enhancing virtual management system The ease for use of reason.
Method provided by the invention is described further with application example provided by the invention below:
The present invention is uploaded using Ajax to file, using XMLHttpRequest object instance xhr, is monitored The download load of xhr.upload objects, abandon abort, mistake error, carry out process events, monitoring file in real time and upload Situation and progress, are specifically included:
When listening to load events, represent that file uploads and successfully complete, page prompts user file uploads successfully;
When listening to abort events, represent that user cancels file and uploaded, interrupt file transmission, prompt to upload and cancelled;
When listening to error events, represent occur mistake in file upload procedure, on administration page prompting user file Pass failure;
Process events are constantly triggered until being transmitted during transmitting.
When listening to process events, the size of data of current file upload can be got, calculates upload greatly in real time The small and percentage of file total size, is updated on the page by progress bar real time data, prompts the current upload progress of user.
Meanwhile increase file verification mechanism, after data upload completion, upload end progress bar and reach 99.9%, temporarily 100% will not be shown, and goes the characteristic value of file for asking receiving terminal to receive.Now file reception end according to file name and File size generates MD5 values, and returns to file and upload end.Upload end and MD5 values are calculated according to file size and file name.With The MD5 values of return compare, and supporting paper completely uploads, progress display 100%.If differing, progress bar resets to 0%, and text The upper transmitting file of word prompting user, which exists, receives exception, please uploads again.The availability of transmitting file in guarantee, strengthening system safety Property.
The virtual management system file upload progress methods of exhibiting that application example of the present invention provides, on real-time prompting user Convey feelings condition, real-time calculation document upload progress and the graphically simple and clear progress bar for showing file and uploading, side Just know the progress that file uploads, use simple, easy to operate, the ease for use of the management of enhancing virtual management system.And increase File verification mechanism is added, has reminded management end subscriber upload file to exist in time abnormal, upload again and ensure that file can use, strengthen The security of system.
Fig. 2 is the structure chart of the managing device that file uploads in cloud computing system provided by the invention.Fig. 2 shown device bags Include:
Acquisition module 201, for after file upload request is received, obtaining the size of the data uploaded;
Computing module 202, for the size of data and the total size of the file uploaded according to, calculate text The percentage of the upload progress of part;
Display module 203, for the percentage according to the upload progress, show the progress of progress bar.
In a device embodiment provided by the invention, described device also includes:
Detection module, the management of upload is asked for after file upload request is received, detecting in upload procedure;
Determining module, for according to the display content for managing the content asked, determining progress bar;
The display module, for showing the progress bar after the determination.
In a device embodiment provided by the invention, the display module includes:
Submodule is verified, after the completion of being uploaded when the data for detecting file, availability is carried out to the data of upload Verification;
Display sub-module, for when the data check to upload is successful, display progress bar to be full lattice;In the number to upload During according to verification failure, display progress bar is sky.
In a device embodiment provided by the invention, the verification submodule includes:
Generation unit, for file name corresponding to the data to upload and file size generation check value;
Transmitting element, end is uploaded for obtained check value to be sent into file;
Receiving unit, for receive upload end send by the check value and benchmark check value contrast after comparison knot Fruit, wherein the benchmark check value is to upload end to be generated according to the file name and file size of file to be uploaded;
Wherein, if the comparative result is that check value is identical with benchmark check value, verify successfully;Otherwise verification is lost Lose.
In a device embodiment provided by the invention, described device also includes:
Reminding module, for when the data check to upload fails, prompting user that this file uploads failure.
Device embodiment provided by the invention, by obtaining the size of the data uploaded, come entering for calculation document upload Degree, the progress uploaded according to data show file upload progress in a manner of progress bar, facilitate user to know that file uploads dynamic State information, reference frame is provided for subsequent operation, be easy to the operation and management of user.
One of ordinary skill in the art will appreciate that all or part of step of above-described embodiment can use computer journey Sequence flow realizes that the computer program can be stored in a computer-readable recording medium, the computer program exists (such as system, unit, device) performs on corresponding hardware platform, upon execution, including the step of embodiment of the method it One or its combination.
Alternatively, all or part of step of above-described embodiment can also realize that these steps can using integrated circuit To be fabricated to integrated circuit modules one by one respectively, or the multiple modules or step in them are fabricated to single integrated electricity Road module is realized.So, the present invention is not restricted to any specific hardware and software combination.
Each device/functional module/functional unit in above-described embodiment can be realized using general computing device, it Can concentrate on single computing device, can also be distributed on the network that multiple computing devices are formed.
Each device/functional module/functional unit in above-described embodiment realized in the form of software function module and as Independent production marketing in use, can be stored in a computer read/write memory medium.Computer mentioned above Read/write memory medium can be read-only storage, disk or CD etc..
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by the protection domain described in claim.

Claims (10)

  1. A kind of 1. management method that file uploads in cloud computing system, it is characterised in that including:
    After file upload request is received, the size of the data uploaded is obtained;
    According to the size of the data uploaded and the total size of the file, the percentage of the upload progress of calculation document Than;
    According to the percentage of the upload progress, the progress of progress bar is shown.
  2. 2. according to the method for claim 1, it is characterised in that described after file upload request is received, the side Method also includes:
    Detect in upload procedure and the management of upload is asked;
    The content asked according to the management, determine the display content of progress bar;
    Show the progress bar after the determination.
  3. 3. according to the method for claim 1, it is characterised in that the percentage according to the upload progress, show into The progress of bar is spent, including:
    After the completion of the data for detecting file upload, the verification of availability is carried out to the data of upload;
    When the data check to upload is successful, display progress bar is full lattice;When to the failure of the data check of upload, show into Bar is spent for sky.
  4. 4. according to the method for claim 3, it is characterised in that the data of described pair of upload carry out the verification of availability, bag Include:
    To file name corresponding to the data of upload and file size generation check value;
    Obtained check value is sent to file and uploads end;
    Receive upload end send by the check value and benchmark check value contrast after comparative result, wherein the benchmark verify Value is to upload end to be generated according to the file name and file size of file to be uploaded;
    Wherein, if the comparative result is that check value is identical with benchmark check value, verify successfully;Otherwise verification failure.
  5. 5. according to the method for claim 3, it is characterised in that when the data check to upload fails, methods described is also Including:
    Prompt user that this file uploads failure.
  6. A kind of 6. managing device that file uploads in cloud computing system, it is characterised in that including:
    Acquisition module, for after file upload request is received, obtaining the size of the data uploaded;
    Computing module, for the size of data and the total size of the file that have uploaded according to, calculation document it is upper The percentage for degree of coming into;
    Display module, for the percentage according to the upload progress, show the progress of progress bar.
  7. 7. device according to claim 6, it is characterised in that described device also includes:
    Detection module, the management of upload is asked for after file upload request is received, detecting in upload procedure;
    Determining module, for according to the display content for managing the content asked, determining progress bar;
    The display module, for showing the progress bar after the determination.
  8. 8. device according to claim 6, it is characterised in that the display module includes:
    Submodule is verified, after the completion of being uploaded when the data for detecting file, the verification of availability is carried out to the data of upload;
    Display sub-module, for when the data check to upload is successful, display progress bar to be full lattice;In the data school to upload When testing unsuccessfully, display progress bar is sky.
  9. 9. device according to claim 8, it is characterised in that the verification submodule includes:
    Generation unit, for file name corresponding to the data to upload and file size generation check value;
    Transmitting element, end is uploaded for obtained check value to be sent into file;
    Receiving unit, for receive upload end send by the check value and benchmark check value contrast after comparative result, its Described in benchmark check value be upload end generated according to the file name and file size of file to be uploaded;
    Wherein, if the comparative result is that check value is identical with benchmark check value, verify successfully;Otherwise verification failure.
  10. 10. device according to claim 8, it is characterised in that described device also includes:
    Reminding module, for when the data check to upload fails, prompting user that this file uploads failure.
CN201710970092.XA 2017-10-18 2017-10-18 The management method and device that file uploads in cloud computing system Pending CN107592369A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710970092.XA CN107592369A (en) 2017-10-18 2017-10-18 The management method and device that file uploads in cloud computing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710970092.XA CN107592369A (en) 2017-10-18 2017-10-18 The management method and device that file uploads in cloud computing system

Publications (1)

Publication Number Publication Date
CN107592369A true CN107592369A (en) 2018-01-16

Family

ID=61052616

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710970092.XA Pending CN107592369A (en) 2017-10-18 2017-10-18 The management method and device that file uploads in cloud computing system

Country Status (1)

Country Link
CN (1) CN107592369A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109375968A (en) * 2018-08-28 2019-02-22 苏州浪潮智能软件有限公司 A kind of file uploading method that can graphically interact
CN109542499A (en) * 2018-10-11 2019-03-29 珠海许继芝电网自动化有限公司 A kind of distribution terminal software version management method and device
WO2022037212A1 (en) * 2020-08-21 2022-02-24 海信视像科技股份有限公司 Display device and file transfer method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103561100A (en) * 2013-11-06 2014-02-05 乐视网信息技术(北京)股份有限公司 Cloud uploading method, cloud uploading system, dispatching device and client terminal
CN105227613A (en) * 2014-06-30 2016-01-06 北京金山安全软件有限公司 File uploading method and device
CN105224257A (en) * 2015-10-16 2016-01-06 浪潮(北京)电子信息产业有限公司 The disposal route of large files and system in a kind of cloud storage system
CN106254507A (en) * 2016-08-29 2016-12-21 苏州蓝海彤翔系统科技有限公司 File transfer control method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103561100A (en) * 2013-11-06 2014-02-05 乐视网信息技术(北京)股份有限公司 Cloud uploading method, cloud uploading system, dispatching device and client terminal
CN105227613A (en) * 2014-06-30 2016-01-06 北京金山安全软件有限公司 File uploading method and device
CN105224257A (en) * 2015-10-16 2016-01-06 浪潮(北京)电子信息产业有限公司 The disposal route of large files and system in a kind of cloud storage system
CN106254507A (en) * 2016-08-29 2016-12-21 苏州蓝海彤翔系统科技有限公司 File transfer control method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109375968A (en) * 2018-08-28 2019-02-22 苏州浪潮智能软件有限公司 A kind of file uploading method that can graphically interact
CN109542499A (en) * 2018-10-11 2019-03-29 珠海许继芝电网自动化有限公司 A kind of distribution terminal software version management method and device
WO2022037212A1 (en) * 2020-08-21 2022-02-24 海信视像科技股份有限公司 Display device and file transfer method

Similar Documents

Publication Publication Date Title
CN108073519B (en) Test case generation method and device
CN106484590B (en) Data verification method and device
US10891181B2 (en) Smart system dump
US9665465B1 (en) Automated determination of application permissions
CN108173938A (en) Server load shunt method and device
CN107592369A (en) The management method and device that file uploads in cloud computing system
CN111626865B (en) Data processing method, device, electronic equipment and storage medium
CN109753391A (en) The systems, devices and methods of the functional test of one or more structures of processor
CN108536580A (en) Utilize the system and method for lightweight device authentication protocol test equipment
CN110058920A (en) Virtual machine performance detection method and device, electronic equipment, storage medium
CN110851471A (en) Distributed log data processing method, device and system
CN111651140B (en) Service method and device based on workflow
CN110888801A (en) Software program testing method and device, storage medium and electronic equipment
US9201897B1 (en) Global data storage combining multiple back-end storage devices
CN110275992A (en) Emergency processing method, device, server and computer readable storage medium
CN112486946A (en) Version confirmation method, version confirmation system, electronic equipment and storage medium
US20210019253A1 (en) Methods Circuits Devices Systems and Functionally Associated Machine Executable Code For Enhanced Automated Software Code Testing
CN108268420A (en) Communication means, processor and electronic equipment between processor
CN113037850A (en) Application program upgrading method and device, electronic equipment and storage medium
CN104750772B (en) Prevent the method and system that some projects are issued in Content Management System
CN108334448B (en) Code verification method, device and equipment
CN110191151A (en) Information-pushing method, device, equipment and medium based on smart machine
CN112131127B (en) Interface testing method, device and system and electronic equipment
CN114969175A (en) Method for butting insurance platform and external system and related equipment
CN111107143B (en) Network file transmission detection method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180116

RJ01 Rejection of invention patent application after publication