Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

File uploading method and system for web application

A file upload and file transfer technology, applied in the transmission system, electrical components, etc., can solve the problems of non-actual background receiving progress, variable file size, and inability to meet feature requirements, etc.

Inactive Publication Date: 2020-11-20
SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
View PDF0 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Third, during the file upload process, the background exception cannot be fed back to the web client in time, and only after the upload is completed, the failure will be prompted
Fourth, file verification before uploading relies more on the web client verification or the verification interface is separated from the upload request, the background verification process is less, and the one-way transmission of the http protocol causes
Fourth, the upload progress displayed on the web side is the amount of data transmitted on the web side, not the actual background receiving progress
[0003] Due to the characteristics of the above general solution, it cannot meet the characteristic requirements for file upload in the ICS system (Internet Connection Sharing). The specific requirements for file upload in the ICS (Internet Connection Sharing) system are as follows: the storage path can be changed, and there are concurrent scenarios The storage medium has space limitations; the file size is variable, and there are 0-size or G-level files; there are real-time requirements for abnormal processing of transmitted data; files may be stored in different servers, so there is data forwarding, so the progress is not just for web clients The upload progress of the terminal needs to reflect the actual receiving progress of the background; the interface has mandatory system verification requirements, and various verifications need to be performed before uploading, and abnormal information needs to be fed back in time

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • File uploading method and system for web application
  • File uploading method and system for web application

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] Embodiment 1 of the present invention proposes a file upload method for web applications, such as figure 1 A flow chart of a file upload method for a web application is given.

[0027] In step S101, set up the http long connection between the web client and the server end; obtain the first file information requested by the web client http; and read the directory information to be stored in the first file; obtain the second file of the storage space according to the directory information Information; compare and verify the first file with the second file.

[0028] Wherein the first file is a request file, and the second file is a storage space file. Receive and process the http long connection of the web client, and obtain the parameter information in the http request. The size and file name of the request file must be attached to the request. The size of the request file is read by the web client and written into the http request parameter. Read the directory informat...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a file uploading method and system for a web application. The method comprises the following steps: establishing a connection between a web client and a server; obtaining firstfile information of an http request of a web client; reading directory information to be stored in the first file; obtaining second file information of the storage space according to the directory information; comparing and checking the first file and the second file; after comparison and verification are completed, when file transmission is carried out, creating a transmission record, and pushingthe feature mark of the transmitted file to the web client in real time; and periodically obtaining the transmission quantity, the receiving progress and the abnormal data of the file, updating the transmission record in real time, and processing the abnormal data until the file transmission is completed. The invention further provides an uploading system, and under the condition that the uploading system does not depend on a browser plug-in or an FTP server, data transmission failure caused by an abnormal phenomenon occurring in file uploading can be quickly responded to and fed back to a user.

Description

technical field [0001] The invention belongs to the technical field of file uploading, and in particular relates to a file uploading method and system for web applications. Background technique [0002] In web applications, file upload is a relatively common function. It is mostly used for system file import, file parsing, etc. It is often used in online office systems, and most uploaded files are relatively small. The one-way limitation of the transmission interface, the data returned by the transmission interface must wait for all the data to be transmitted before it can be obtained by the web client. Therefore, this type of application can be attributed to the following characteristics. First, the files uploaded and received on the Web are mostly stored in the specified server file directory or database, and there is little storage space limitation. Second, the files are relatively small, mostly at the Kb or Mb level. Third, during the file upload process, the abnormali...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L29/08
CPCH04L67/06H04L67/02H04L67/55
Inventor 刘一
Owner SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products