CN111064762A - File downloading method and device, terminal and storage medium - Google Patents

File downloading method and device, terminal and storage medium Download PDF

Info

Publication number
CN111064762A
CN111064762A CN201811211354.5A CN201811211354A CN111064762A CN 111064762 A CN111064762 A CN 111064762A CN 201811211354 A CN201811211354 A CN 201811211354A CN 111064762 A CN111064762 A CN 111064762A
Authority
CN
China
Prior art keywords
file
source website
website link
interface
attribute
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.)
Withdrawn
Application number
CN201811211354.5A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201811211354.5A priority Critical patent/CN111064762A/en
Publication of CN111064762A publication Critical patent/CN111064762A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application discloses a file downloading method, a file downloading device, a terminal and a storage medium, wherein the method comprises the following steps: acquiring a source website link of the file from the attribute information of the file, wherein the source website link is one of the attribute information of the file; and downloading the file according to the source website link.

Description

File downloading method and device, terminal and storage medium
Technical Field
The embodiment of the application relates to the technical field of networks, in particular to a file downloading method, a file downloading device, a file downloading terminal and a storage medium.
Background
At present, due to the popularization of terminal applications, people often use terminals to download some video, audio, or picture files, such as Flash animation, third generation music Player (mp 3) music, pictures, and so on. After downloading the files to the local, if the local files are used for a long time, the files may be damaged, and at this time, only the physical path of the files can be found through the local files on the terminal.
Regarding file downloading, files are often messy and all placed in one folder during downloading, a certain type of file is searched for under the same folder for a long time, and local file attributes can be opened after the file is downloaded from a terminal to the local, fig. 1 is a schematic diagram of a file attribute display interface in the related art, as shown in fig. 1, information displayed by the file attribute interface is only limited to file type, size, attributes, modification time and physical path. If the file is corrupted, it takes a long time for a corrupted file to be re-downloaded.
Disclosure of Invention
The embodiment of the application provides a file downloading method, a file downloading device, a terminal and a storage medium.
The technical scheme of the embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a file downloading method, where the method includes:
acquiring a source website link of the file from the attribute information of the file, wherein the source website link is one of the attribute information of the file;
and downloading the file according to the source website link.
In a second aspect, an embodiment of the present application provides an apparatus for downloading a file, where the apparatus includes:
a first obtaining unit configured to obtain a source website link of the file from the attribute information of the file, where the source website link is one of the attribute information of the file;
and the downloading unit is configured to download the file according to the source website link.
In a third aspect, an embodiment of the present application provides a terminal, where the terminal at least includes: a processor and a storage medium configured to store executable instructions, wherein:
the processor is configured to execute stored executable instructions configured to perform the file download method provided by the above-described embodiments.
In a fourth aspect, the present application provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and the computer-executable instructions are configured to execute the file downloading method provided in the foregoing embodiment.
The embodiment of the application provides a file downloading method, a file downloading device, a terminal and a storage medium, wherein the method comprises the following steps: acquiring a source website link of the file from the attribute information of the file, wherein the source website link is one of the attribute information of the file; and downloading the file according to the source website link. Therefore, the file can be downloaded again according to the attribute information of the file, and the time for downloading the file again is further reduced.
Drawings
FIG. 1 is a diagram illustrating a display interface of file attributes in the related art;
fig. 2 is a schematic diagram of a network architecture of interaction of a file downloading method provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of a file downloading method according to an embodiment of the present application;
fig. 4A is a schematic flowchart of a file downloading method according to a second embodiment of the present application;
fig. 4B is a schematic flowchart of another file downloading method according to the second embodiment of the present application;
fig. 4C is a schematic flowchart of another file downloading method according to the second embodiment of the present application;
fig. 5 is a schematic diagram of a system network architecture of a client according to a third embodiment of the present application;
fig. 6 is a schematic structural diagram of a database layer data table module of a client according to a third embodiment of the present application;
FIG. 7 is a class diagram of a database layer of a client according to a third embodiment of the present application;
fig. 8 is a database layer data link class diagram of the client according to the third embodiment of the present application;
fig. 9 is a schematic flowchart of a file downloading method according to a third embodiment of the present application;
FIG. 10 is an activity diagram of a modification of a background database of attributes of a client desktop provided in a third embodiment of the present application;
fig. 11 is a timing diagram illustrating modification of a background database of attributes of a client desktop according to a third embodiment of the present application;
fig. 12 is a schematic view of a download interface for displaying file attributes according to a third embodiment of the present application;
fig. 13 is a schematic view of a file attribute display interface provided in the third embodiment of the present application;
fig. 14 is a schematic view of an interface for selecting a desktop arrangement according to a third embodiment of the present application;
FIG. 15 is a schematic diagram of a detailed information interface for selection according to a third embodiment of the present application;
fig. 16 is a schematic structural diagram of a file downloading apparatus according to a fourth embodiment of the present application;
fig. 17 is a schematic structural diagram of a terminal according to a fourth embodiment of the present application.
Detailed Description
The embodiment of the application provides a method for displaying file attributes, which includes the steps of obtaining Uniform Resource Locator (URL) data in a file to be downloaded; downloading the file to be downloaded to a memory database of a terminal or a Narrow-Band Internet of Things (NB-IoT) device according to the URL of the file to be downloaded, and modifying the URL to a system registry of the terminal or the NB device after acquiring the downloaded URL, so as to change the file attribute, and the downloading interface of the URL comprises the operations of adding and deleting the downloading address, and modifying the node data in the local database.
Fig. 2 is a schematic diagram of a network architecture of interaction of a file downloading method provided in an embodiment of the present application, and as shown in fig. 2, the network architecture includes a server 201, a server 202, a client 203, a client 204, and a communication network 205, where the client 203 and the client 204 may establish network connection with the server 201 and the server 202 through the communication network 205, and after the client 203 and the client 204 respectively establish connection with corresponding servers successfully, the client 203 and the client 204 may respectively send a download request to the server, download a corresponding file from the server according to a URL, and obtain a URL of a download source file.
The client and the server can perform data transmission through a hypertext transfer Protocol (http), different servers correspond to different URLs, and the client can be a mobile phone, a computer, a tablet computer and other terminals. The Communication network may be a second Generation Wireless telephone technology (2G) or a third Generation Wireless telephone technology (3G), or a Global System for Mobile Communication (GSM), or Wireless Fidelity (WiFi). The http protocol is a web transport protocol.
The following describes the file-based downloading method in detail with reference to the accompanying drawings and embodiments.
Example one
The embodiment of the application provides a file downloading method, which is used in a computer device, wherein the computer device can download a file again according to attribute information of the file when executing the method, so as to reduce the time for downloading the file again, the functions realized by the method can be realized by a processor in the computer device calling a program code, and the program code can be saved in a computer storage medium. In the implementation process, the program code called by the computer device can be understood as a system for generating the information acquisition tool.
Fig. 3 is a schematic flowchart of a file downloading method according to an embodiment of the present application, and as shown in fig. 3, the method includes:
step S301, obtaining the source website link of the file from the attribute information of the file.
Here, the source website link is one of the attribute information of the file, and may be a URL corresponding to the downloaded file. Taking downloading a file from a computer terminal as an example, in the related technology, when a user wants to download the file, the user needs to enter a corresponding browser from a client, input a source website link to be entered into the browser, and then find a corresponding address of the file on a server; in the embodiment of the application, a user can obtain the source website link corresponding to the file from the attribute information of the file at the client.
In other embodiments, the obtaining the source website link of the file from the attribute information of the file includes: and acquiring a source website link of the file from an attribute interface of the file, wherein the attribute interface is used for displaying attribute information of the file.
The attribute information of the file is displayed on an attribute interface of the file, a user needs to enter the attribute interface of the file at a client, a source website link is obtained from the attribute interface of the file, and then the next operation is carried out. Taking a computer end as an example, an editable text box can be arranged on a file attribute interface of the computer end and used for displaying a source website link of a file, the source website link is set to be in a hyperlink format, when a user needs to trigger the source website link, the source website link in the editable text box can be clicked or double-clicked, and if the user needs to share the source website link, the source website link can be copied and shared; or designing a button on the attribute interface of the file, associating the button with the source website link, and when the source website link needs to be accessed, triggering the source website link through the button and jumping to the address corresponding to the source website link. In another embodiment, the source url link may be acquired in another form on the attribute interface of the file, as long as the source url link can be acquired from the attribute interface of the file.
Step S302, downloading the file according to the source website link.
Here, the address on the server corresponding to the source web address link is the source address for downloading the file. Taking a computer end as an example, a user can select the file, select the file through a mouse, click a right button to enter a selection interface, then click an attribute to enter an attribute interface of the file, find a source website link corresponding to the file in attribute information of the attribute interface of the file, click a hyperlink of the source website link to trigger a request for downloading the file by taking the source website link as an example of being presented in a hyperlink form in an editable text box, send the request to a server end through a communication network, find a corresponding file to be downloaded in a source address corresponding to the source website link after the server end receives the request, and send the corresponding file to the computer end by responding to the request.
In the embodiment of the application, the source website link of the file is acquired from the attribute information of the file, and the file is downloaded according to the source website link, so that the time for re-downloading the file can be reduced.
Example two
An embodiment of the present application provides a file downloading method, and fig. 4A is a schematic flowchart of a file downloading method provided in a second embodiment of the present application, and as shown in fig. 4A, the method includes:
step S401a, the client obtains the source website link corresponding to the file from the server.
Here, when the client needs to download a file, a source website link downloaded to the file may be calculated from the server and stored in the database of the client.
In another embodiment, the obtaining, by the client, the source website link corresponding to the file from the server includes: a client initiates a downloading request to a server, wherein the downloading request carries identification information corresponding to a source website link; and receiving a download response sent by the server, wherein the download response carries a source website link determined according to the identification information.
Here, when the client downloads a file from the server, a download request needs to be sent to the server, where the download request may include identification information corresponding to the source website link and an identification of the file to be downloaded, such as a keyword and a file type, and when the server receives the download request, the server parses the download request, finds a corresponding source website according to the identification information corresponding to the source website, and sends the source website link to the client in a request response.
Step S402a, the source website link is used as one of the attribute information of the file, and an attribute interface of the file corresponding to the source website link is displayed.
After the client acquires the source website link corresponding to the file, the source website link is stored in the database of the client, and the source website link is set as the attribute information of the file and displayed in the attribute interface of the file.
Step S403a, obtaining the source website link of the file from the attribute interface of the file.
Here, the source website link is one of the attribute information of the file, and may be a URL corresponding to the downloaded file. Taking downloading a file from a computer terminal as an example, in the related technology, when a user wants to download the file, the user needs to enter a corresponding browser from a client, input a source website link to be entered into the browser, and then find a corresponding address of the file on a server; in the embodiment of the application, a user can obtain the source website link corresponding to the file from the attribute information of the file at the client.
Step S404a, downloading the file according to the source website link.
Here, the address on the server corresponding to the source web address link is the source address for downloading the file. Taking a computer end as an example, a user can select the file, select the file through a mouse, click a right button to enter a selection interface, then click an attribute to enter an attribute interface of the file, find a source website link corresponding to the file in attribute information of the attribute interface of the file, click a hyperlink of the source website link to trigger a request for downloading the file by taking the source website link as an example of being presented in a hyperlink form in an editable text box, send the request to a server end through a communication network, find a corresponding file to be downloaded in a source address corresponding to the source website link after the server end receives the request, and send the corresponding file to the computer end by responding to the request.
In other embodiments, the method further comprises: filtering data information carried in the download response received from the server according to the regular expression; and screening out source website links matched with the types of the files from the data information according to the identification information.
Fig. 4B is a schematic flowchart of a downloading method of another file according to a second embodiment of the present application, as shown in fig. 4B, the method includes:
step S401b, the client initiates a download request to the server, where the download request carries identification information corresponding to the source website link.
Step S402b, receiving a download response sent by the server, where the download response carries a source website link determined according to the identification information.
Step S403b, performing filtering processing on the data information carried in the download response received from the server according to the regular expression.
Here, the regular expression is also called a regular expression, and is a logical formula for operating on a character string, and the character string may be filtered by a specific rule.
Step S404b, selecting a source website link matching the type of the file from the data information according to the identification information.
Here, the process of downloading the web page content filters the data information of the downloaded file through the regular expression, and screens out the source website link matched with the type of the file from the data information. For example, pictures should be screened from the data information for a source web site link that matches the type of picture using imgsrc, i.e., the src attribute of the < img > tag.
Step S405b, the source website link is used as one of the attribute information of the file, and an attribute interface of the file corresponding to the source website link is displayed.
Step S406b, obtaining the source website link of the file from the attribute interface of the file.
Here, the property interface is used to display property information of a file.
Step S407b, downloading the file according to the source website link.
In other embodiments, the method further comprises: storing the source website link to a registry of a client; and reconfiguring the attribute interface of the file according to the registry.
Fig. 4C is a schematic flowchart of a downloading method of another file according to a second embodiment of the present application, as shown in fig. 4C, the method includes:
step S401c, the client initiates a download request to the server, where the download request carries identification information corresponding to the source website link.
Step S402c, receiving a download response sent by the server, where the download response carries a source website link determined according to the identification information.
Step S403c, performing filtering processing on the data information carried in the download response received from the server according to the regular expression.
Step S404c, selecting a source website link matching the type of the file from the data information according to the identification information.
Step S405c, saving the source website link to the registry of the client.
Here, when the client is a computer, the source website link may be saved to a registry of the client for reconfiguring the property interface of the file through the registry. In other embodiments, if the client is a mobile terminal, the interface node of the Linux kernel may be called to modify data, and the source website link is stored in the database of the client to reconfigure the attribute interface of the file.
Step S406c, reconfiguring the property interface of the file according to the registry.
Here, the property interface of the file may be reconfigured through the registry of the client, and the property interface of the file displays fields, function buttons, and the like required by the user.
In other embodiments, the reconfiguring the property interface of the file according to the registry comprises: configuring an editing module on the attribute interface of the file according to the registry; and editing the source website link on the attribute interface through the editing module.
Here, the editing module may be a functional module that edits a display field of a property interface of the file, where the display field may be a source website link on the property interface, and a user may edit, for example, modify, delete, search, hide, and the like, the source website link by triggering the editing module. The editing module may be comprised of one or more buttons.
Step S407c, the source website link is used as one of the attribute information of the file, and an attribute interface of the file corresponding to the source website link is displayed.
Step S408c, obtaining the source website link of the file from the attribute interface of the file.
Here, the property interface is used to display property information of a file.
Step S409c, downloading the file according to the source website link.
In any of the above embodiments, the method further comprises: receiving a first operation, wherein the first operation is used for modifying the display state of a source website link in the attribute information; the display state comprises whether a source website link is displayed or not; and changing the display state of the source website link in the attribute information on the attribute interface of the file based on the first operation.
Here, the first operation may be triggered by the user directly on the attribute interface of the file, that is, the display state of the source website link in the attribute information of the file is directly modified on the attribute interface, so that whether the source website link is displayed or hidden for the user himself or other loggers is determined.
In other embodiments, the method further comprises: receiving a second operation, wherein the second operation is used for sequencing the files based on the source website link in the attribute information; based on the second operation, acquiring source website links of all files under the current display interface; sequencing all files under the current display interface based on the source website link to obtain a sequencing result; and displaying all files under the current display interface according to the sorting result.
Here, the second operation may be performed by a user from a desktop attribute interface, taking a computer terminal as an example, a button for setting a display state of attribute information of a file may be added in the computer desktop attribute interface, where the button is used to trigger the second operation, and after the user triggers the second operation, source website links of all files in the current display interface of the computer terminal are obtained according to an association relationship between the second operation and the source website links, a list of the source website links is established according to the source website links of all the files, and all the files are sorted according to parameters corresponding to all the source website links in the list, where the parameters may be a type of the source website links, a similarity of each source website link, and the like; and obtaining the sequencing result of all the files according to the parameters corresponding to the source website links, and displaying all the files on the current display interface according to the sequencing result.
According to the method for adding the source website link option in the attribute, the source website link function of the file is added, so that a user can conveniently check or link to a specified website for browsing and collecting more related information. Meanwhile, due to the modification of the desktop attributes, the downloaded files can be conveniently sequenced and classified by the user. For the display mode of the file, if the display field of the file is too much, the hidden mode can be selected. According to the embodiment of the application, when the file is downloaded from the website to the terminal equipment, the link in the downloaded file is obtained and then transmitted to the terminal equipment to be automatically recorded and displayed in real time, so that the writing operation of unnecessary artificial data is reduced, the file downloading recording efficiency is improved, and the user experience is improved.
EXAMPLE III
In the embodiment of the application, the source website link function of the file is added by adding the source website link option in the attribute, so that a user can conveniently check or link to a specified website for browsing and collecting more related information. Useful data in the file to be downloaded is also obtained through the obtaining module; removing useless data in the file to be downloaded through a filtering module; and extracting data required by a user into an array or a list through a data processing module. The embodiment of the application also provides functions of ordering, hiding and classifying the file attribute interface files, and the functions comprise: a method for arranging the files acquired by the sorting module according to the links of the files; the file acquired by the hiding module has the function of hiding the link; and classifying the files acquired by the classification module according to types. And provides file desktop display classification methods and improvements with respect to URL fields.
Fig. 5 is a schematic diagram of a system network architecture of a client according to a third embodiment of the present application, and as shown in fig. 5, the system network architecture of the file downloading client is divided into four layers, including a presentation layer 501, a business logic layer 502, a data access layer 503, and a database layer 504. The presentation layer 501 includes a file download client interface package, and is responsible for display design of a file download client interface; the service logic layer 502 includes a service logic package, and is responsible for the screening process of the interface display field; the data access layer 503 comprises a data access package and is responsible for the link operation between the database layer 504 and the file download client interface to obtain the function of an acquisition source of the interface element; the database layer 504 is responsible for storing, deleting and changing data, and database languages can be mapped to a Windows platform and an Android platform, correspond to corresponding class modules, and are displayed through fields, so that operations such as adding, deleting, searching and modifying can be performed.
Fig. 6 is a schematic structural diagram of a database layer data table module of a client according to a third embodiment of the present application, and as shown in fig. 6, a data table design of a database layer includes a primary key ID and a plurality of fields. Taking a data table module of a database layer of the picture as an example, the data type of the primary key ID 601 of the data table module of the picture is an automatic number and is used for uniquely identifying the data table structure; the data type of the picture name 602 field is a hyperlink, the data type of the picture website 603 field is a text, and the data type of the picture format 604 field is a text; the data type of the picture display 605 field is text.
Fig. 7 is a class diagram of a database layer of a client according to a third embodiment of the present disclosure, and as shown in fig. 7, a class Name of the class diagram is a Picture (Picture)701, attributes of the Picture include a Picture Name (Picture Name)702, a URL web address (Picture URL)703 of the Picture, a Picture Location (Picture Location)704, and a method Add () provided by the class for performing an Add operation 705, which is used to Add data in the database; a method Update () for performing a change operation 706 for changing original data in a database or changing a plurality of fields in a table; a Delete () method for performing a Delete operation 707 for deleting data in the database; and a method Select () for performing Select operation 708 for selecting data in the database. Wherein, the modifiers of the Picture Name, Picture URL and Picture Location are private, which means that the member is private and only can access the member; add (); update (); the modifiers of Delete () and Select () are public, meaning that the member is public and all other classes can be visited. The class diagram in the above embodiment includes a picture name field, a picture website field, and a picture location field, and the operations such as adding, deleting, searching, and modifying the display field may be performed.
Fig. 8 is a database layer data link class diagram of a client according to a third embodiment of the present application, used for representing a link between a source file and a database, and corresponding to a class connection module, as shown in fig. 8, where the class diagram includes a parent class 801 with a class name of a link database (DBComm) and a class name of a picture database (PictureDB) subclass 802 that inherits the parent class, where the parent class DBComm 801 includes a database connection attribute (DBconn)803 of a class, and a method Select () provided by the class for executing a selection operation 804; method Insert () for performing Insert operation 805; a method Delete (), which is used to perform the Delete operation 806; method Update () for performing change operation 807, the subclass PictureDB including method Select (), provided by the class, for performing Select operation 808; method Insert () for performing an Insert operation 809; a method Delete (), for executing Delete operation 810; method Update () for performing change operation 811. Wherein, the modifier of DBconn is private, which means that the member is private and only can access itself; the modifiers of Select (), Insert (), Delete (), and Update () are public, meaning that the member is public and all other classes are accessible.
Fig. 9 is a flowchart illustrating a file downloading method according to a third embodiment of the present application; as shown in fig. 9, the method includes:
in step S901, the user triggers a download request.
Here, the user triggers the download time and the download request through the start download module of the client.
Step S902, the client obtains the download data according to the web page address.
Here, the data fetching module of the client obtains the downloaded data, i.e. the URL web page address, by calling the get method of the http protocol.
In step S903, the client downloads a file from a corresponding web page.
Here, the client downloads a file from a corresponding web page by using a webclient.
Step S904, the client invokes a regular expression to match the link corresponding to the filename tag in the web page.
Here, the process of downloading the web page contents filters the links of the download file through the regular expression, such as the picture usage imgsrc, i.e., the src attribute of the < img > tag, and returns a file download link list.
Step S905, displaying the downloaded file in the download list.
Here, the downloaded file is displayed in the download list and thus in the display interface, and a field for automatically displaying a file link is in the downloaded Textbox that can input text.
Step S906, changes the registry or database.
Here, the client calls win32.dll to perform registry modification on the background database; the implementation method is suitable for the computer. And calling an interface node of the Linux kernel to modify data, and storing the data into a background Sqlite database. The implementation method is suitable for the mobile terminal.
Step S907, add the link field of the file to modify and display the desktop property.
Fig. 10 is an activity diagram of modification of a background database of attributes of a client desktop according to a third embodiment of the present application, and as shown in fig. 10, the activity diagram includes the following activity states: 1001, a user triggers a file downloading request; 1002, acquiring a URL according to the webpage address; 1003, inserting the URL into the database; 1004, select, change, delete, or hide data in the database.
Fig. 11 is a timing diagram of modification of the client desktop attribute background database according to the third embodiment of the present application, and as shown in fig. 11, the timing diagram includes the following steps:
in step S1101, the user triggers downloading.
Here, the user clicks a button for triggering download, and the client triggers a download request by calling the DownLoadbtn () method.
In step S1102, the client acquires a URL.
Step S1103, insert the URL into the database.
In step S1104, the client logs in and downloads the website through the URL in the file attribute.
In the embodiment of the application, the operations of the background database or the registry include operations of adding, deleting, modifying and querying. The functions of displaying and clearing desktop attributes can be completed by adding, deleting, inquiring and modifying the registry or the sqlite data category data from the moment when the URL field is obtained by the geturl () method to the moment when the URL is stored in the client side.
Fig. 12 is a schematic view of a download interface displayed by file attributes according to a third embodiment of the present application, where the interface may record information such as a size of a file, a website, and a storage path, and as shown in fig. 12, the interface includes: a Download (Download) button 1201 for downloading a file and simultaneously saving information to a background database; a display (show) button 1202 for triggering display of the downloaded file; a data display section (Note)1203 for providing display of a file; a sort (sort) button 1204 for performing sort display according to a designated category; a desktop right click desktop key design is used for providing change of related function options of right click attribute related options of the file, and a Download source website (Download URL) editable text box 1205 is used for displaying and editing a URL (uniform resource locator) of a downloaded file; the save path (Storage location) may edit the text box 1206 for displaying and editing the save path.
Fig. 13 is a schematic diagram of a file attribute display interface provided in the third embodiment of the present application, and as shown in fig. 13, the interface includes a source website (Origin URL) editable text box 1301 for displaying a source link of a file, and directly clicking the link in the URL or copying the URL into a browser, i.e., opening a source download address of the file; a hide function hide (Hidden) button 1302 is included, which may be selected to hide the picture source link when the user does not want to share it to him; the custom classes Define 1303 are respectively a Peer person, a Landscape Landscape, an Event and the like, and are used for redefining the file attribute through manual selection; the function Enable Sort by Source1304, classified by Link, is used to select "classify by Source".
As only 4 desktop arrangement modes are provided for adding the desktop in the related art, the selectivity is very limited.
Fig. 14 is a schematic view of an interface for selecting a desktop arrangement according to a third embodiment of the present disclosure, and as shown in fig. 14, an item "More" 1401 is added in the third embodiment of the present disclosure, that is, More options may be added "by source" to introduce More arrangements. After the user clicks the "More" 1401 button, the user enters a detailed information interface for selecting a desktop arrangement mode, as shown in fig. 15, fig. 15 is a schematic view of a detailed information interface for selecting provided in the third embodiment of the present application, in the embodiment of the present application, a Name 1501, a Date modified 1502, a Type 1503, a Size 1504, a Link 1505, a Dfine custom 1506, and the like of a picture may be added, and corresponding information may be displayed or hidden through a display button Show 1507 and a hidden button Hide 1508.
In the embodiment of the application, the difference between the computer end and the mobile terminal lies in the selection of a development platform, the computer end selects a net development platform, and the mobile phone is realized by java on an Eclipse platform.
According to the method for adding the source website link option in the attribute, the source website link function of the file is added, so that a user can conveniently check or link to a specified website for browsing and collecting more related information. Meanwhile, due to the modification of the desktop attributes, the downloaded files can be conveniently sequenced and classified by the user. For the display mode of the file, if the display field of the file is too much, the hidden mode can be selected. According to the embodiment of the application, when the file is downloaded from the website to the terminal equipment, the link in the downloaded file is obtained and then transmitted to the terminal equipment to be automatically recorded and displayed in real time, so that the writing operation of unnecessary artificial data is reduced, the file downloading recording efficiency is improved, and the user experience is improved.
Example four
Based on the foregoing embodiments, embodiments of the present application provide a file downloading device, where each unit included in the device and each sub-unit included in each module unit can be implemented by a processor in a server; of course, may be implemented by logic circuits; in implementation, the processor may be a Central Processing Unit (CPU), a Microprocessor (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Fig. 16 is a schematic structural diagram of a file downloading device according to a fourth embodiment of the present application, and as shown in fig. 16, the file downloading device includes:
a first obtaining unit 1601 configured to obtain a source web address link of the file from the attribute information of the file, where the source web address link is one of the attribute information of the file.
A downloading unit 1602, configured to download the file according to the source website link.
In other embodiments, the first obtaining unit is further configured to obtain the source website link of the file from a property interface of the file, where the property interface is used to display property information of the file.
In other embodiments, the apparatus further comprises:
the second acquisition unit is configured to acquire the source website link corresponding to the file from the server side;
and the first display unit is configured to take the source website link as one of the attribute information of the file and display an attribute interface of the file corresponding to the source website link.
In other embodiments, the second obtaining unit is further configured to initiate a download request to the server, where the download request carries identification information corresponding to the source website link;
and receiving a download response sent by the server, wherein the download response carries a source website link determined according to the identification information.
In other embodiments, the apparatus further comprises:
the filtering unit is configured to filter data information carried in the download response received from the server according to the regular expression;
and the screening unit is configured to screen out the source website link matched with the type of the file from the data information according to the identification information.
In other embodiments, the apparatus further comprises:
the saving unit is configured to save the source website link to a registry of the client;
and the configuration unit is configured to reconfigure the attribute interface of the file according to the registry.
In other embodiments, the configuration unit is further configured to configure an editing module on the property interface of the file according to the registry;
and editing the source website link on the attribute interface through the editing module.
In other embodiments, the apparatus further comprises:
a receiving unit configured to receive a first operation, where the first operation is used to modify a display state of a source website link in the attribute information; the display state comprises whether a source website link is displayed or not;
and the changing unit is configured to change the display state of the source website link in the attribute information on the attribute interface of the file based on the first operation.
In other embodiments, the apparatus further comprises:
a third obtaining unit, configured to obtain source website links of all files in the current display interface based on the second operation;
the sorting unit is configured to sort all files under the current display interface based on the source website link to obtain a sorting result;
and the second display unit is configured to display all the files under the current display interface according to the sorting result.
It should be noted that, in the embodiment of the present application, if the downloading method of the file is implemented in the form of a software functional module and is sold or used as a standalone product, the downloading method may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a server to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
Correspondingly, the embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps in the file downloading method provided by the above embodiment.
The description of the embodiments of the apparatus of the present application is similar to the description of the embodiments of the method described above, and has similar advantageous effects to the embodiments of the method. For technical details not disclosed in the embodiments of the apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
Here, it should be noted that: the above description of the storage medium and device embodiments is similar to the description of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
It should be noted that fig. 17 is a schematic structural diagram of a terminal according to a fourth embodiment of the present application, and as shown in fig. 17, the terminal 1700 at least includes: a processor 1701, a communication interface 1702, and a memory 1703, wherein:
the processor 1701 generally controls the overall operation of the terminal 1700.
The communication interface 1702 may enable the terminal to communicate with other terminals or servers via a network.
The memory 1703 is configured to store instructions and applications executable by the processor 1701, and may also buffer data (e.g., image data, audio data, voice communication data, and video communication data) to be processed or already processed by each module in the processor 1701 and the terminal 1700, and may be implemented by a FLASH memory (FLASH) or a Random Access Memory (RAM).
Of course, the apparatus in the embodiment of the present application may have other similar protocol interaction implementation cases, and those skilled in the art can make various corresponding changes and modifications according to the embodiment of the present application without departing from the spirit and the spirit of the present application, but these corresponding changes and modifications should fall within the scope of the claims appended to the method of the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the modules is only one logical functional division, and there may be other division ways in actual implementation, such as: multiple modules or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or modules may be electrical, mechanical or other.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules; the network module can be located in one place or distributed on a plurality of network modules; some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional modules in the embodiments of the present application may be integrated into one processing module, or each module may be separately used as one module, or two or more modules may be integrated into one module; the integrated module can be realized in a hardware form, and can also be realized in a form of hardware and a software functional module.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated module described above in the present application may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present application may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a server to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only an example of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present application, and all the changes or substitutions should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. A method for downloading a file, the method comprising:
acquiring a source website link of the file from the attribute information of the file, wherein the source website link is one of the attribute information of the file;
and downloading the file according to the source website link.
2. The method according to claim 1, wherein the obtaining the source website link of the file from the attribute information of the file comprises:
and acquiring a source website link of the file from an attribute interface of the file, wherein the attribute interface is used for displaying attribute information of the file.
3. The method of claim 2, further comprising:
the client acquires a source website link corresponding to the file from the server;
and taking the source website link as one of the attribute information of the file, and displaying an attribute interface of the file corresponding to the source website link.
4. The method according to claim 3, wherein the client obtains the source website link corresponding to the file from the server, and the method comprises:
a client initiates a downloading request to a server, wherein the downloading request carries identification information corresponding to a source website link;
and receiving a download response sent by the server, wherein the download response carries a source website link determined according to the identification information.
5. The method of claim 4, further comprising:
filtering data information carried in the download response received from the server according to the regular expression;
and screening out source website links matched with the types of the files from the data information according to the identification information.
6. The method of claim 5, further comprising:
storing the source website link to a registry of a client;
and reconfiguring the attribute interface of the file according to the registry.
7. The method of claim 6, wherein reconfiguring the property interface of the file according to the registry comprises:
configuring an editing module on the attribute interface of the file according to the registry;
and editing the source website link on the attribute interface through the editing module.
8. The method according to any one of claims 1 to 7, further comprising:
receiving a first operation, wherein the first operation is used for modifying the display state of a source website link in the attribute information; the display state comprises whether a source website link is displayed or not;
and changing the display state of the source website link in the attribute information on the attribute interface of the file based on the first operation.
9. The method of claim 8, further comprising:
receiving a second operation, wherein the second operation is used for sequencing the files based on the source website link in the attribute information;
based on the second operation, acquiring source website links of all files under the current display interface;
sequencing all files under the current display interface based on the source website link to obtain a sequencing result;
and displaying all files under the current display interface according to the sorting result.
10. An apparatus for downloading a file, the apparatus comprising:
a first obtaining unit configured to obtain a source website link of the file from the attribute information of the file, where the source website link is one of the attribute information of the file;
and the downloading unit is configured to download the file according to the source website link.
11. A terminal, characterized in that the terminal comprises at least: a processor and a storage medium configured to store executable instructions, wherein:
the processor is configured to execute stored executable instructions configured to perform a method of downloading a file as provided in any of claims 1 to 9 above.
12. A computer-readable storage medium having computer-executable instructions stored therein, the computer-executable instructions being configured to perform a method of downloading a file as provided by any one of claims 1 to 9.
CN201811211354.5A 2018-10-17 2018-10-17 File downloading method and device, terminal and storage medium Withdrawn CN111064762A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811211354.5A CN111064762A (en) 2018-10-17 2018-10-17 File downloading method and device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811211354.5A CN111064762A (en) 2018-10-17 2018-10-17 File downloading method and device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN111064762A true CN111064762A (en) 2020-04-24

Family

ID=70297070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811211354.5A Withdrawn CN111064762A (en) 2018-10-17 2018-10-17 File downloading method and device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111064762A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040249783A1 (en) * 2003-06-05 2004-12-09 International Business Machines Corp. Method and apparatus of associating file description during a browser-initiated download
CN103067480A (en) * 2012-12-24 2013-04-24 珠海金山办公软件有限公司 Synchronized method and system of network disk
CN103248641A (en) * 2012-02-07 2013-08-14 腾讯科技(深圳)有限公司 Network download method, device and system
CN107992631A (en) * 2017-12-26 2018-05-04 上海展扬通信技术有限公司 A kind of file management method and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040249783A1 (en) * 2003-06-05 2004-12-09 International Business Machines Corp. Method and apparatus of associating file description during a browser-initiated download
CN103248641A (en) * 2012-02-07 2013-08-14 腾讯科技(深圳)有限公司 Network download method, device and system
CN103067480A (en) * 2012-12-24 2013-04-24 珠海金山办公软件有限公司 Synchronized method and system of network disk
CN107992631A (en) * 2017-12-26 2018-05-04 上海展扬通信技术有限公司 A kind of file management method and terminal

Similar Documents

Publication Publication Date Title
US7974980B2 (en) Data processing device capable of performing data transmission in a predetermined access method
CN103678487B (en) Method and device for generating web page snapshot
CN106980504A (en) A kind of application development method and its instrument, equipment
US9361135B2 (en) System and method for outputting and selecting processed content information
US20170337168A1 (en) System and method for generating and monitoring feedback of a published webpage as implemented on a remote client
KR20170091142A (en) Web content tagging and filtering
CN103634392B (en) Method, system, terminal equipment and servers for offline file transmission
CN107085574A (en) A kind of page data processing method and server
CN105867714A (en) Application downloading method, apparatus and system
CN107368550B (en) Information acquisition method, device, medium, electronic device, server and system
CN104580093A (en) Processing method, device and system for notification messages of websites
CN104067210A (en) Menu configuration and system of smart device
CN105378728A (en) Apparatus and method for representing and manipulating metadata
US20170193117A1 (en) System and Methods for Displaying a List of Content Items from Web Services by an Embeddable Web Application
CN102708135A (en) Apparatus and method for automatically composing album and managing cover image of album
CN104615700A (en) Method for collecting webpage objects in browser, browser client side and system
CN104239775A (en) Method and device for establishing wireless connection of mobile phone end and PC (Personal Computer) end by short message
US11061651B2 (en) Systems and methods for organizing, classifying, and discovering automatically generated computer software
CN106371706A (en) Method and device for site selection of application shortcuts
CN104408193B (en) The processing method and processing device of data visualization model
CN103646054B (en) Method for playing multimedia data and browser device
CN105183829A (en) Picture classification method and device
CN110515514A (en) A kind of data processing method, device and storage medium
CN111984248A (en) Page editing method and device, storage medium and electronic device
CN104572981B (en) A kind of Webpage method for caching and processing and mobile terminal device

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20200424

WW01 Invention patent application withdrawn after publication