Unlock instant, AI-driven research and patent intelligence for your innovation.

Method, device and readable storage medium for identifying downloaded file type

A file type and file technology, applied in the fields of instruments, computing, electrical digital data processing, etc., can solve the problems of waste of network traffic for downloading file types, and the terminal browser cannot recognize it, so as to avoid user traffic consumption and improve user experience. Effect

Pending Publication Date: 2018-09-28
NUBIA TECHNOLOGY CO LTD
View PDF7 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The main purpose of the present invention is to propose a method, device and readable storage medium for identifying the type of downloaded file, aiming to solve the technical problem that the terminal browser cannot identify whether the type of downloaded file is valid and cause waste of network traffic

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, device and readable storage medium for identifying downloaded file type
  • Method, device and readable storage medium for identifying downloaded file type
  • Method, device and readable storage medium for identifying downloaded file type

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0071] Such as image 3 As shown, the embodiment of the present invention provides a method for identifying the type of downloaded file, the method includes the following steps:

[0072] S101. Parse the resource information of the downloaded resource, and acquire the file type corresponding to the downloaded resource, including the file name and file extension;

[0073] When the user clicks a download resource on the webpage through the browser interface, the browser webpage parses the resource information related to the download resource, which includes the URL of the download resource, the URL of the webpage providing the download resource, and the cookies of this website, resource bytes Size, resource content type Content-Type, etc. Some resources also include the default file name required by the website for file saving, that is, the Content-Disposition field. This resource is the most ideal situation. There are many resources that only have URLs for downloading resources...

Embodiment 2

[0098] Such as Figure 5 As shown, the embodiment of the present invention provides a hardware structure of an apparatus for identifying a downloaded file type. Specifically, the apparatus 30 for identifying a downloaded file type includes at least a processor 31 , a memory 32 and a data bus 33 . The data bus 33 is used to realize the connection and communication between the processor 31 and the memory 32. The memory 32, as a computer-readable storage medium, can store at least one computer program, and these computer programs can be read, compiled and executed by the processor 31 , so as to realize the corresponding processing flow. In this embodiment, the memory 32 is used as a computer-readable storage medium, in which a program for identifying the type of the downloaded file is stored, and the program can be executed by the processor 31, thereby realizing the steps of the method for identifying the type of the downloaded file as follows:

[0099] Analyzing the resource in...

Embodiment 3

[0114] Based on the same inventive concept, another aspect of the present invention provides a computer-readable storage medium, the computer-readable storage medium stores a program for identifying the type of downloaded file, and when the program for identifying the type of downloaded file is executed by a processor The following steps are implemented to identify the method of downloading the file type:

[0115] Analyzing the resource information of the downloaded resource, and obtaining the file type corresponding to the downloaded resource, including the file name and file extension;

[0116] judging whether the downloaded resource matches the actual resource according to the file extension;

[0117] When the downloaded resource matches the actual resource, prompt to start acquiring the downloaded resource and the file name corresponding to the downloaded resource.

[0118] Wherein, the step of analyzing the resource information of the downloaded resource and obtaining th...

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, device and readable storage medium for identifying downloaded file type. The method comprises the following steps: analyzing resource information of downloaded resource, acquiring a file type corresponding to the downloaded resource, wherein the file type comprises the file name and the file extension name; judging whether the downloaded resource is matched with actual resource according to the file extension name; when the downloaded resource is matched with actual resource, prompting a user to start acquiring the downloaded resource and the file name corresponding to the downloaded resource. Through the preset MIME comparison table and file feature database, the downloaded resource is verified, thereby ensuring that the content downloaded by the user canbe locally processed at a terminal, and avoiding the user resource waste caused by mismatch of the resource content provided by the network and the actually downloaded content. Through the method disclosed by the invention, the file identification problem in the resource downloading of the current terminal browser is solved, the user traffic consumption caused by the mismatch of the file type isavoided, and the user experience of the terminal browser is improved.

Description

technical field [0001] The invention relates to the technical field of terminal networks, in particular to a method, device and readable storage medium for identifying the type of downloaded files. Background technique [0002] With the continuous development of smart mobile terminal technology, all smart mobile terminals can support the function of accessing the Internet. Generally, Internet websites are accessed through a browser, and resource downloading is an important function of the terminal browser. Massive data resources can be obtained from the Internet through resource downloading to meet the terminal's demand for data resources. At present, the web page contains a large amount of picture content, and some users need to save it to the local storage device through the download function of the terminal browser, so that it does not need to occupy the network traffic to load the picture in the next visit. In addition, many websites provide a large amount of resource s...

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): G06F17/30
Inventor 梁洁辉
Owner NUBIA TECHNOLOGY CO LTD