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

Method for callback after file downloading is completed

A file download and file creation technology, applied in the field of web service applications, can solve problems such as background development restrictions, inability to perform callbacks, and inability to perform browsers, and achieve the effect of improving user physical examination.

Active Publication Date: 2019-11-05
CHENGDU JIUZHOU ELECTRONIC INFORMATION SYSTEM CO LTD
View PDF13 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Disadvantages: unable to handle large files; low efficiency; unable to implement callback after the browser saves the file, only callback when the file starts to download
Disadvantages: The whole process is divided into storing first and then downloading; the files to be downloaded must be stored according to the specified location, which has certain restrictions on background development; it is impossible for the browser to execute a callback after saving the file, and it can only be done in the file Callback when download starts
[0006] In the above method, only the order of file formation and callback can be controlled, but the processing order of download and callback cannot be realized. For businesses that require order for download completion and subsequent processing, the correctness of business logic cannot be guaranteed

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
  • Method for callback after file downloading is completed
  • Method for callback after file downloading is completed
  • Method for callback after file downloading is completed

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0031] The main solution of the embodiment of the present invention is:

[0032] like figure 1 As shown, a method of calling back after the file download is completed, including the following steps:

[0033] S1. Use the client to create a file download request and a callback request, generate a unique identification parameter corresponding to this request, and send the file download request and callback request loaded with the unique identification parameter to the server at the same time;

[0034] S2. Utilize the interceptor in the server to intercept various requests sent by the client, and use...

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 discloses a method for callback after file downloading is completed, which comprises the following steps of: creating a file downloading request and a callback request by using a client,simultaneously sending the file downloading request and the callback request to a server, intercepting and processing the requests by using the server, and returning the callback request to the client to execute a callback process. According to the invention, the Form form request and the Ajax request are sent to the server at the same time through the client; and the Ajax request is ensured to be completed later than the Form request in a thread synchronization mode at the server side, so that developers can easily set callback after the file downloading is completed, and the user experienceof related services is improved.

Description

technical field [0001] The invention belongs to the technical field of web service application, and in particular relates to a callback method after file download is completed. Background technique [0002] The file download function is often used in web applications, and there is often a need to trigger some events after the file download is completed. Here, it is referred to as "callback after the file download is completed", such as giving the user an appropriate prompt after the download file is completed. 1. After the file is downloaded, the page needs to dynamically refresh a certain area. After the file is downloaded, it needs to enter the next important processing flow immediately. However, the ECMAScript standard does not provide a callback interface for file data to be saved after being transmitted to the browser through the server, so developers cannot directly execute the code logic added by themselves after the file download is completed. [0003] The current m...

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/08G06F13/16
CPCH04L67/06H04L67/1095G06F13/1689
Inventor 唐力徐向茹彭森王贺王定平
Owner CHENGDU JIUZHOU ELECTRONIC INFORMATION SYSTEM 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