CN110798397B - File sending method and device and electronic equipment - Google Patents

File sending method and device and electronic equipment Download PDF

Info

Publication number
CN110798397B
CN110798397B CN201911021923.4A CN201911021923A CN110798397B CN 110798397 B CN110798397 B CN 110798397B CN 201911021923 A CN201911021923 A CN 201911021923A CN 110798397 B CN110798397 B CN 110798397B
Authority
CN
China
Prior art keywords
file
floating window
chat
user
sending
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.)
Active
Application number
CN201911021923.4A
Other languages
Chinese (zh)
Other versions
CN110798397A (en
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911021923.4A priority Critical patent/CN110798397B/en
Publication of CN110798397A publication Critical patent/CN110798397A/en
Priority to PCT/CN2020/112246 priority patent/WO2021077897A1/en
Application granted granted Critical
Publication of CN110798397B publication Critical patent/CN110798397B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/08Annexed information, e.g. attachments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a file sending method, a file sending device, electronic equipment and a storage medium, wherein the method is applied to the electronic equipment and comprises the following steps: determining whether a file needs to be sent to a chat object according to the chat information on the chat interface; if the file needs to be sent, determining and displaying at least one file to be selected according to the chat information; and sending a target file in at least one file to be selected according to the selection operation of the user. According to the technical scheme of the embodiment of the invention, the operation steps of sending the file can be simplified, so that the file is sent on the electronic equipment more quickly.

Description

File sending method and device and electronic equipment
Technical Field
The present invention relates to the field of communications, and in particular, to a file transmission method, a file transmission apparatus, an electronic device, and a computer-readable storage medium.
Background
At present, the situation that a user needs to send a file frequently occurs in the process of using an electronic device for chatting.
In the prior art, in the process of sending the file, the user needs to leave the chat interface and find the storage path of the file, the operation steps of the process are complicated, the efficiency is low, and the use experience of the user is reduced.
Disclosure of Invention
An object of embodiments of the present invention is to provide a file sending method, a file sending apparatus, an electronic device, and a computer-readable storage medium, so as to simplify an operation step of sending a file, and make sending the file on the electronic device faster.
To solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides a file sending method, which is applied to an electronic device, and includes: determining whether a file needs to be sent to a chat object according to the chat information on the chat interface; if the file needs to be sent, determining and displaying at least one file to be selected according to the chat information; and sending a target file in the at least one file to be selected according to the selection operation of the user.
In a second aspect, an embodiment of the present invention provides a file sending apparatus, which is applied to an electronic device, and includes: the sending determining module is used for determining whether a file needs to be sent to the chat object according to the chat information on the chat interface; the file to be selected determining module is used for determining and displaying at least one file to be selected according to the chat information if the file needs to be sent; and the file sending module is used for sending the target file in the at least one file to be selected according to the selection operation of the user.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the file sending method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the file sending method according to the first aspect.
According to the technical scheme of the embodiment of the invention, firstly, whether a file needs to be sent to a chat object is determined according to chat information on a chat interface; then, if the file needs to be sent, determining and displaying at least one file to be selected according to the chat information; and finally, sending a target file in the at least one file to be selected according to the selection operation of the user. By the embodiment of the invention, the operation steps of sending the file can be simplified, and the file can be sent on the electronic equipment more quickly.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 illustrates a flow diagram of a method of file transmission provided in accordance with some embodiments of the present invention;
FIG. 2 is a flow diagram illustrating a file sending method according to further embodiments of the present invention;
fig. 3 illustrates a schematic diagram of an application scenario of a file sending method provided according to some embodiments of the present invention;
FIG. 4 illustrates a schematic diagram of an application scenario of a floating window provided in accordance with some embodiments of the present invention;
FIG. 5 illustrates a schematic diagram of an application scenario for clicking on a file identifier to send a file, provided in accordance with some embodiments of the present invention;
FIG. 6 illustrates a schematic diagram of an application scenario for dragging a file identification to send a file, provided in accordance with some embodiments of the present invention;
FIG. 7 illustrates a schematic diagram of an application scenario for a multiple selection mode provided in accordance with some embodiments of the present invention;
FIG. 8 illustrates a schematic diagram of an application scenario providing for sliding display of more file identifications, according to some embodiments of the present invention;
FIG. 9 illustrates a schematic block diagram of a file sending apparatus provided in accordance with some embodiments of the invention; and
fig. 10 illustrates a hardware structure diagram of an electronic device according to some embodiments of the invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 illustrates a flow diagram of a file sending method provided in accordance with some embodiments of the present invention.
Referring to fig. 1, the file transmission method includes steps S110, S120, and S130, and may be applied to an electronic device. The electronic device mentioned in the embodiment of the present invention includes, but is not limited to, electronic devices such as a mobile phone, a tablet computer, a computer, and a wearable device. The file transmission method in the exemplary embodiment of fig. 1 is explained in detail below.
Referring to fig. 1, in step S110, it is determined whether a file needs to be transmitted to a chat object according to chat information on a chat interface.
In an example embodiment, chat information on a chat interface of an electronic device is monitored and collected in real time, the chat information includes and is not limited to voice information and/or text information, and the chat information may also be video and/or pictures. If the chat information comprises voice information, the voice information is converted into text information, and then semantic recognition is carried out on the text information. For example, user A is monitored and gathered to send a text message "send XXX file over" on the chat interface.
In an example embodiment, the chat information is subjected to semantic analysis, the semantic analysis method includes and is not limited to intention recognition and semantic role labeling, and the semantic analysis method is not particularly limited in the present application. The tool for semantic analysis may be an artificial intelligence engine or other tool. For example, chat content is transmitted to an artificial intelligence engine, the artificial intelligence engine performs semantic analysis on the chat content, and then whether a file needs to be sent is judged based on the result of the semantic analysis.
In an example embodiment, intent recognition is performed on chat information, and a user intent corresponding to the chat information is determined; and judging whether the file needs to be sent or not according to the intention of the user. For example, when a user A chats with a user B, the user A sends out text information 'send XXX file' on a chat interface, the chat information is transmitted to an artificial intelligence engine, the artificial intelligence engine carries out semantic analysis on the chat information, the semantic analysis comprises intention identification, the intention of the user A is to hope that the user B sends the file to the user A, and therefore the judgment and prediction on the chat information result is that the user B needs to send the file to the user A.
In step S120, if the file needs to be sent, at least one file to be selected is determined and displayed according to the chat information.
In an example embodiment, determining and displaying at least one file to be selected according to chat information includes: determining a file search keyword based on the chat information; and searching at least one file to be selected based on the file search keyword. When searching for a file to be selected, the mobile terminal starts a background to search for the file search keyword in the local file to obtain one or more files to be selected, and records the uniform resource identifier of the file to be selected. When searching for the files to be selected, the files to be selected can be searched and downloaded through networking. The invention does not specially limit the source of the file to be selected.
In an example embodiment, the file search keyword may be a part of or a complete file name in the file name, such as "XXX report", a file type, such as music, or a location where the file is located, such as a C-disc, and the present invention is not limited thereto.
In an example embodiment, one or more files to be selected are classified according to file type; and adding corresponding file type marks into the header information of the uniform resource identifiers of the files to be selected based on the file types of the files to be selected.
In an example embodiment, a flyover window is created on a chat interface; and displaying the file identification of the file to be selected on the floating window. Displaying the file identification of the file to be selected on the floating window, wherein the file identification comprises the step of determining the preview mode of the file to be selected in the floating window based on the file type mark of the file to be selected; and displaying the file identification of the file to be selected on the floating window based on a preview mode. For example, the files to be selected include a document file XXX, a picture file, and a video file. When a certain file to be selected is a picture file, displaying a picture thumbnail; when a certain file to be selected is a video file, intercepting a small section of video playing preview of the video file; and when a certain file to be selected is a document file, displaying the document file name.
In step S130, according to the selection operation of the user, a target file in the at least one file to be selected is sent.
In an example embodiment, a user selects one or more files to be selected from at least one file to be selected as target files and sends the target files to a chat object.
According to the file sending method in the exemplary embodiment of fig. 1, first, it is determined whether a file needs to be sent to a chat object according to chat information on a chat interface; then, if the file needs to be sent, determining and displaying at least one file to be selected according to the chat information; and finally, sending a target file in the at least one file to be selected according to the selection operation of the user. By the embodiment of the invention, the operation steps of sending the file can be simplified, and the file can be sent on the electronic equipment more quickly.
Further, in the example embodiment, based on the selection instruction, the file identifier of the file to be selected, which is shown in the floating frame, is selected, and then the file to be selected is sent out as the target file. The selection instruction and the sending instruction may be combined into one, for example, a file identifier of the selected file to be selected is clicked, or the file identifier of the selected file to be selected is dragged to a non-floating window area on the chat interface, and the target file may be sent to the chat object by the user. Additionally, referring to FIG. 7, a multiple selection mode may be entered.
Fig. 2 is a flowchart illustrating a file sending method according to another embodiment of the present invention.
Referring to fig. 2, in step S201, voice information and text information on the chat interface are recognized.
In an example embodiment, chat information on a chat interface of an electronic device is monitored and collected in real time, and the chat information comprises voice information and/or text information. If the chat information comprises voice information, the voice information is converted into text information, and then semantic recognition is carried out on the text information.
In step S202, the artificial intelligence engine determines whether a file needs to be sent.
In an example embodiment, intent recognition is performed on chat information, and a user intent corresponding to the chat information is determined; and judging whether the file needs to be sent or not according to the intention of the user. For example, a user A chats with a user B, the user A sends out text information 'send XXX file' on a chat interface, the chat information is transmitted to an artificial intelligence engine, the artificial intelligence engine carries out semantic analysis on the chat information, the semantic analysis comprises intention identification, the intention of the user A is to hope that the 'XXX' file is sent to the user B, and therefore the result of judging and predicting the chat content is that the user B needs to send the file to the user A. The artificial intelligence engine is one of tools for performing semantic analysis including intention recognition, and is only an exemplary embodiment, and other tools may be used for performing semantic analysis, and are not particularly limited.
In step S203, the file is searched in the background.
In an exemplary embodiment, the search keyword of the target file is determined according to the chat content, for example, the user A sends a text message "XXX file is sent out" in the chat interface, the artificial intelligence engine performs semantic recognition on the text message, and determines "XXX" as the file search keyword. And then, starting a background to search one or more files to be selected in the local file, and recording the uniform resource identifiers of the files to be selected.
In step S204, the search results are tagged by file type.
In an example embodiment, one or more searched files to be selected are classified according to file types, and different file types are marked, that is, a file type mark corresponding to the file to be selected is stored in header information of a uniform resource identifier of the file to be selected, for example, when a certain file to be selected is a picture type, a picture mark is added to the header information of the uniform resource identifier of the file to be selected; when a certain file to be selected is a video type, adding a video mark in the header information of the uniform resource identifier of the file to be selected.
In step S205, a floating window is created, and the file is added to the floating window and displayed on the chat interface.
In an exemplary embodiment, a floating window is created, which may be in the shape of a circular arc or other shapes. And adding the file identification of the file to be selected searched according to the file search keyword into the floating window, and displaying the floating window on the chat interface, for example, a circular arc-shaped floating window containing three file identifications is displayed on the lower right side of the chat interface. And previewing and displaying different types of files in different modes according to file type marks stored in the header information of the uniform resource identifiers of the files to be selected. For example, when a certain file to be selected is a picture file, a picture thumbnail is displayed; when a certain file to be selected is a video file, intercepting a small section of video playing preview of the video file; and when a certain file to be selected is a document file, displaying the name of the document file.
In step S206, 10 seconds are counted.
In an exemplary embodiment, when the floating window displayed in step S205 is counted for 10 seconds, if the user does not perform any operation on the file identifier of the to-be-selected file displayed in the floating window, for example, selects a file identifier of a to-be-selected file, the process goes to step S210 after 10 seconds.
It should be noted that in the exemplary embodiment, the purpose of the timer is to automatically exit the floating window when the user has not operated the floating window for a long time, so as to reduce the influence of the floating window on the chat communication of the user. 10 seconds is just an example, and the time of the timing can be set by itself, for example, the timeout time timeout is set to 20 seconds.
In step S207, the user selects a file.
In an example embodiment, the manner in which the user selects from the file identifiers of one or more files to be selected shown in the floating window may be diversified, for example, when the file identifier of a certain file to be selected in the floating window is clicked, the file to be selected is determined as a target file according to the selection operation of the user, and the target file is directly sent; the file identification of the target file may also be dragged out of the floating window to a non-floating window area in the chat interface.
In an example embodiment, one or more files to be selected are searched out according to the file search keyword. When a user wants to send a plurality of files, the files can be sent one by one, or a multi-selection mode can be entered, the file identifications of a plurality of files to be selected are selected, the sending button control is clicked, and the files are sent at one time. The method for entering the multi-selection mode may be long-term file identification or other preset modes, and the present application does not specially limit this.
In an example embodiment, there are one or more files to be selected searched out according to the file search keyword, and when the number of file identifiers of the files to be selected is too large and cannot be all displayed in the floating window, one display number, for example, 3, may be preset in the floating window, that is, the floating window simultaneously displays the file identifiers of three files to be selected. When the file identifier of the other non-displayed files to be selected is required to be switched, the user can update previews of the file identifiers of the 3 files to be selected by sliding the floating window with fingers. The mode of switching the file identifier of the displayed file to be selected can be set by user, and the method is not particularly limited in the application.
In step S208, the non-floating window area is touched.
In an exemplary embodiment, a floating window containing file identifiers of one or more files to be selected is displayed on the chat interface, and the user does not operate the floating window but touches a non-floating window area, such as an input box, and the like, then step S210 is entered, the floating window is automatically exited, the influence on the chat communication of the user is reduced, and a record of the files to be selected is reserved.
In step S209, the file is transmitted to the chat window.
In an example embodiment, according to a selection operation of a user on a file identifier of a file to be selected, the file to be selected by the user is determined as a target file, the target file is sent to a chat object of the user, and a file sending record can be seen in a current chat interface.
In step S210, the floating window is exited.
In the exemplary embodiment, the floating box is exited, the chat interface returns to the original state, and the process returns to step S201 to continue recognizing the voice and the text.
In an example embodiment, if none of the files to be selected is selected and sent, the floating frame is exited and the record of the file to be selected is retained. When the file to be selected is required to be sent again, the file identification of the file to be selected can be provided quickly by using the record, for example, when a plus sign is clicked, the suspension frame pops up again, and the file identification of the file to be selected which is not selected yet and sent is shown in the suspension frame.
Fig. 3 illustrates a schematic diagram of an application scenario of a file sending method provided according to some embodiments of the present invention.
Referring to fig. 3, user a chats with user B, and user a sends a text message "send XXX file" to the chat interface.
Fig. 4 illustrates a schematic view of an application scenario of a floating window provided in accordance with some embodiments of the present invention.
Referring to fig. 4, the floating frame in the chat interface in fig. 4 shows file identifiers of three different files to be selected, which are respectively a document file 410, a video file 420, and a picture file 430, and the file types are different. Document file 410 shows the document file name in the floating window, video file 420 shows a short segment of a video playback preview in the floating window, and picture file 430 shows the preview in the floating window.
The UI interface of the floating window in fig. 4 displays files in columns by drawing arcs with the lower right corner as the center. The position of the floating window is in an operation area which is used by a user, so that the user can operate the floating window conveniently by one hand.
FIG. 5 illustrates a schematic diagram of an application scenario for clicking on a file identifier to send a file, provided in accordance with some embodiments of the present invention.
Referring to fig. 5, the UI interface of the floating window in the chat interface in the left diagram of fig. 5 uses the lower right corner as the center and draws an arc to display files in columns. The floating window shows file identifiers of three different files to be selected, namely a document file 510, a video file 520 and a picture file 530. Document file 510 shows the document file name in the floating window, video file 520 shows a short segment of a video playback preview in the floating window, and picture file 530 shows the preview in the floating window. In the left diagram of fig. 5, a finger clicks on the video file 520.
Referring to the right diagram of fig. 5, when the above-mentioned clicking operation is completed, the video file 520 is successfully transmitted in the chat interface, and the record of the transmitted file is displayed on the chat interface.
FIG. 6 illustrates a schematic diagram of an application scenario for dragging a file identification to send a file, provided in accordance with some embodiments of the present invention.
Referring to fig. 6, the UI interface of the floating window in the chat interface in the left diagram of fig. 6 uses the lower right corner as the center, and draws a circular arc to display the file identifiers in a column. The floating window displays file identifiers of two different files to be selected, namely a document file 610 and a video file 620. Document file 610 shows the document file name in the floating window and video file 620 shows a short segment of the video playback preview in the floating window. As shown in the left diagram of fig. 6, a finger drags video file 620 from the floating window area to the non-floating window area on the chat interface.
Referring to the right diagram of fig. 6, when the above-mentioned drag operation is completed, the video file 620 is successfully transmitted on the chat interface, and the transmission file record is displayed on the chat interface.
FIG. 7 illustrates a schematic diagram of an application scenario for a multiple selection mode provided in accordance with some embodiments of the present invention.
Referring to fig. 7, the user may enter the multi-selection mode by pressing the file identifier for a long time, or may use other preset modes. The floating window in the chat interface in the left drawing of fig. 7 is in the multi-selection mode, and the UI interface of the floating window uses the lower right corner as the center of a circle and draws an arc to display files in columns. The floating window shows file identifiers of three different files to be selected, namely a document file 710, a video file 720 and a picture file 730. Document file 710 shows the document file name in the floating window, video file 720 shows a short section of video playback preview in the floating window, and picture file 730 shows the preview in the floating window. In the multiple selection mode, document file 710 and video file 720 are selected and the finger clicks on send button control 740 in the lower right corner.
Referring to the right diagram of fig. 7, after the above-mentioned clicking operation is completed, the document file 710 and the video file 720 are successfully transmitted, and the transmission file records of the two files are displayed on the chat interface.
FIG. 8 illustrates a schematic diagram of an application scenario providing for sliding display of more file identifications, according to some embodiments of the present invention.
Referring to fig. 8, the UI interface of the floating window in the chat interface in the left diagram of fig. 8 uses the lower right corner as the center and draws an arc to display the file identifiers in a column. The floating window shows file identifiers of three different files to be selected, namely a XXX document file 810, a video file 820 and a picture file 830.XXX document file 810 shows the document file name in the floating window, video file 820 shows a short segment of a video playback preview in the floating window, and picture file 830 shows a preview in the floating window. As shown in the left drawing of fig. 8, the finger slides down within the floating window area.
Referring to the right drawing of fig. 8, when the user performs the sliding operation as shown in the left drawing of fig. 8, the three file identifiers displayed in the floating window in the chat interface become a YYY document file 840, a butterfly picture file 850, and a face picture file 860. The YYY document file 840 shows the document filename in the floating window, the butterfly picture file 850 shows the butterfly preview in the floating window, and the face picture file 860 shows the face preview in the floating window.
Fig. 9 illustrates a schematic block diagram of a file sending apparatus provided in accordance with some embodiments of the present invention. Referring to fig. 9, the file transmitting apparatus 900 is applied to an electronic device, and includes: a sending determination module 910, a candidate file determination module 920, and a file sending module 930. The sending determining module 910 is configured to determine whether a file needs to be sent to the chat object according to the chat information on the chat interface; the candidate file determining module 920 is configured to determine and display at least one candidate file according to the chat information if the file needs to be sent; the file sending module 930 is configured to send a target file in the at least one file to be selected according to a selection operation of a user.
In some embodiments of the present invention, based on the above scheme, the candidate file determining module includes: a keyword determination unit for determining a file search keyword based on the chat information; and the file to be selected determining unit is used for searching and displaying at least one file to be selected based on the file searching keyword.
In some embodiments of the present invention, based on the above scheme, the file sending apparatus further includes: the file classification unit is used for classifying the files to be selected according to the file types; and the mark adding unit is used for adding a corresponding file type mark into the header information of the uniform resource identifier of the file to be selected based on the file type of the file to be selected.
In some embodiments of the present invention, based on the above scheme, the file sending apparatus further includes: the floating window creating unit is used for creating a floating window on the chat interface; and the file display unit is used for displaying the file identification of the file to be selected on the floating window.
In some embodiments of the present invention, based on the above solution, the file display unit includes: the preview mode determining unit is used for determining the preview mode of the file to be selected in the floating window based on the file type mark of the file to be selected; and the click file display unit is used for displaying the file identification of the file to be selected on the floating window based on the preview mode.
Fig. 10 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention, and as shown in fig. 10, the electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, a processor 1010, and a power supply 1011. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 10 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The memory 1009 stores therein a computer program that, when executed by the processor 1010, can implement the following procedures: determining whether a file needs to be sent to a chat object according to the chat information on the chat interface; if the file needs to be sent, determining and displaying at least one file to be selected according to the chat information; and sending a target file in at least one file to be selected according to the selection operation of the user.
Optionally, when executed by the processor 1010, the computer program determines and displays at least one file to be selected according to the chat information, including: determining a file search keyword based on the chat information; and searching and displaying at least one file to be selected based on the file search keyword.
Optionally, when the computer program is executed by the processor 1010, the files to be selected are classified according to file types; and adding corresponding file type marks into the header information of the uniform resource identifiers of the files to be selected based on the file types of the files to be selected.
Optionally, the computer program, when executed by processor 1010, creates a floating window on the chat interface; and displaying the file identification of the file to be selected on the floating window.
Optionally, when executed by the processor 1010, the computer program displays a file identifier of the file to be selected on the floating window, including: determining a preview mode of the file to be selected in the floating window based on the file type mark of the file to be selected; and displaying the file identification of the file to be selected on the floating window based on a preview mode.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 1001 may be used for receiving and sending signals during a message transmission or a call, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 1010; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 1001 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 1001 may also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user through the network module 1002, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 1003 may convert audio data received by the radio frequency unit 1001 or the network module 1002 or stored in the memory 1009 into an audio signal and output as sound. Also, the audio output unit 1003 may also provide audio output related to a specific function performed by the electronic apparatus 1000 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 1003 includes a speaker, a buzzer, a receiver, and the like.
The input unit 1004 is used to receive an audio or video signal. The input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, the Graphics processor 10041 Processing image data of still pictures or video obtained by an image capturing device (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 1006. The image frames processed by the graphic processor 10041 may be stored in the memory 1009 (or other storage medium) or transmitted via the radio frequency unit 1001 or the network module 1002. The microphone 10042 can receive sound and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 1001 in case of a phone call mode.
The electronic device 1000 also includes at least one sensor 1005, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 10061 according to the brightness of ambient light and a proximity sensor that can turn off the display panel 10061 and/or the backlight when the electronic device 1000 moves to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 1005 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 1006 is used to display information input by the user or information provided to the user. The Display unit 1006 may include a Display panel 10061, and the Display panel 10061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 1007 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 10071 (e.g., operations by a user on or near the touch panel 10071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 10071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1010, and receives and executes commands sent by the processor 1010. In addition, the touch panel 10071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 10071, the user input unit 1007 can include other input devices 10072. Specifically, the other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 10071 can be overlaid on the display panel 10061, and when the touch panel 10071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 1010 to determine the type of the touch event, and then the processor 1010 provides a corresponding visual output on the display panel 10061 according to the type of the touch event. Although the touch panel 10071 and the display panel 10061 are two independent components for implementing the input and output functions of the electronic device, in some embodiments, the touch panel 10071 and the display panel 10061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 1008 is an interface for connecting an external device to the electronic apparatus 1000. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 1008 may be used to receive input from external devices (e.g., data information, power, etc.) and transmit the received input to one or more elements within the electronic device 1000 or may be used to transmit data between the electronic device 1000 and the external devices.
The memory 1009 may be used to store software programs as well as various data. The memory 1009 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, and the like), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 1009 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 1010 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 1009 and calling data stored in the memory 1009, thereby integrally monitoring the electronic device. Processor 1010 may include one or more processing units; preferably, the processor 1010 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The electronic device 1000 may further include a power source 1011 (e.g., a battery) for supplying power to various components, and preferably, the power source 1011 may be logically connected to the processor 1010 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.
In addition, the electronic device 1000 includes some functional modules that are not shown, and are not described in detail herein.
The electronic device in the embodiment of the application can realize each process of the file sending method, and achieve the same effect and function, which are not repeated here.
Further, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the file sending method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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 a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the above-mentioned embodiment of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A file sending method is applied to electronic equipment and is characterized by comprising the following steps:
identifying the intention of the chat object according to the chat information sent by the chat object on the chat interface;
determining whether a user of the electronic equipment needs to send a file to the chat object according to the intention of the chat object;
if the file needs to be sent, determining at least one file to be selected according to the chat information;
creating a floating window on the chat interface;
displaying the file identification of the at least one file to be selected on the floating window;
under the condition that the selection operation of the user is received, sending a target file in the at least one file to be selected according to the selection operation;
under the condition that the selection operation of the user is not received and the floating window exits, saving the record of the at least one file to be selected; under the condition that user input for triggering popup of a floating window is received, triggering popup of the floating window based on the record of the at least one file to be selected; and the suspension window displays the file identification of the at least one file to be selected.
2. The method for sending the file according to claim 1, wherein the determining and displaying at least one file to be selected according to the chat information comprises:
determining a file search keyword based on the chat information;
and searching and displaying at least one file to be selected based on the file search keyword.
3. The method according to claim 1, further comprising:
classifying the files to be selected according to file types;
and adding corresponding file type marks into the header information of the uniform resource identifiers of the files to be selected based on the file types of the files to be selected.
4. The method for sending the file according to claim 1, wherein the displaying the file identifier of the at least one file to be selected on the floating window includes:
determining a preview mode of the file to be selected in the floating window based on the file type mark of the file to be selected;
and displaying the file identification of the file to be selected on the floating window based on the preview mode.
5. A file sending device applied to electronic equipment is characterized by comprising:
the intention identification module is used for identifying the intention of the chat object according to the chat information sent by the chat object on the chat interface;
the intention determining module is used for determining whether a user of the electronic equipment needs to send a file to the chat object according to the intention of the chat object;
a file to be selected determining module, configured to determine at least one file to be selected according to the chat information if the file needs to be sent;
the floating window creating module is used for creating a floating window on the chat interface;
the identifier display module is used for displaying the file identifier of the at least one file to be selected on the floating window;
the file sending module is used for sending a target file in the at least one file to be selected according to the selection operation under the condition of receiving the selection operation of the user;
the floating window pop-up module is used for saving the record of the at least one file to be selected under the condition that the selection operation of the user is not received and the floating window is withdrawn; under the condition that user input for triggering popup of a floating window is received, triggering popup of the floating window based on the record of the at least one file to be selected; and the suspension window displays the file identification of the at least one file to be selected.
6. The file sending apparatus according to claim 5, wherein the candidate file determining module includes:
a keyword determination unit for determining a file search keyword based on the chat information;
and the file to be selected determining unit is used for searching and displaying at least one file to be selected based on the file searching keyword.
7. The file transmission apparatus according to claim 5, characterized in that the file transmission apparatus further comprises:
the file classification unit is used for classifying the files to be selected according to file types;
and the mark adding unit is used for adding a corresponding file type mark into the header information of the uniform resource identifier of the file to be selected based on the file type of the file to be selected.
8. The file sending device according to claim 5, wherein the identification display module includes:
a preview mode determining unit, configured to determine a preview mode of the to-be-selected file in the floating window based on the file type flag of the to-be-selected file;
and the to-be-selected file display unit is used for displaying the file identification of the to-be-selected file on the floating window based on the preview mode.
9. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, implements the file sending method according to any of claims 1 to 4.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which, when being executed by a processor, implements the file transmitting method according to any one of claims 1 to 4.
CN201911021923.4A 2019-10-25 2019-10-25 File sending method and device and electronic equipment Active CN110798397B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911021923.4A CN110798397B (en) 2019-10-25 2019-10-25 File sending method and device and electronic equipment
PCT/CN2020/112246 WO2021077897A1 (en) 2019-10-25 2020-08-28 File sending method and apparatus, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911021923.4A CN110798397B (en) 2019-10-25 2019-10-25 File sending method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN110798397A CN110798397A (en) 2020-02-14
CN110798397B true CN110798397B (en) 2022-11-04

Family

ID=69441253

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911021923.4A Active CN110798397B (en) 2019-10-25 2019-10-25 File sending method and device and electronic equipment

Country Status (2)

Country Link
CN (1) CN110798397B (en)
WO (1) WO2021077897A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110798397B (en) * 2019-10-25 2022-11-04 维沃移动通信有限公司 File sending method and device and electronic equipment
CN111638843A (en) * 2020-05-22 2020-09-08 维沃移动通信(杭州)有限公司 Information processing method and device and electronic equipment
CN111857468A (en) * 2020-07-01 2020-10-30 Oppo广东移动通信有限公司 Content sharing method and device, equipment and storage medium
CN112181351A (en) * 2020-09-30 2021-01-05 维沃移动通信(杭州)有限公司 Voice input method and device and electronic equipment
CN112286887A (en) * 2020-10-30 2021-01-29 维沃移动通信有限公司 File sharing method and device and electronic equipment
CN114675760A (en) * 2020-12-24 2022-06-28 华为技术有限公司 File sending method and electronic equipment
CN113127653B (en) * 2021-04-20 2024-01-26 维沃移动通信(杭州)有限公司 Information display method and device
CN113568874A (en) * 2021-07-14 2021-10-29 上海分木信息科技有限公司 File selection uploading method and equipment
CN113992663B (en) * 2021-12-29 2022-06-21 荣耀终端有限公司 Method for sending file, electronic device and readable storage medium
CN114710457B (en) * 2022-04-06 2023-08-11 亿咖通(湖北)技术有限公司 Method and storage medium for transmitting file to multiple chat objects in chat tool
CN117319755B (en) * 2023-11-28 2024-05-17 深圳大智软件技术有限公司 Short video communication information sharing method and system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151200A (en) * 2018-08-27 2019-01-04 维沃移动通信有限公司 A kind of means of communication and mobile terminal

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1286304C (en) * 2004-01-09 2006-11-22 北京讯通佳网网络技术有限公司 Method of realizing scene chat between customers in instant communication
US8566712B1 (en) * 2006-01-04 2013-10-22 Google Inc. Image management
CN101827317A (en) * 2009-09-07 2010-09-08 上海银贵网络科技服务有限公司 Control method and controller for searching target objects via mobile terminals
CN104639420B (en) * 2013-11-15 2019-06-07 腾讯科技(深圳)有限公司 The information processing method and system of instant messaging
CN103810285A (en) * 2014-02-24 2014-05-21 联想(北京)有限公司 Method and device for obtaining information
CN104580534B (en) * 2015-02-06 2018-08-31 联想(北京)有限公司 Information processing method, device and electronic equipment
CN106446096A (en) * 2016-09-12 2017-02-22 努比亚技术有限公司 File sharing method and device and terminal
CN107086953A (en) * 2017-05-08 2017-08-22 北京三快在线科技有限公司 Document sending method and device, electronic equipment in a kind of instant messaging application
CN107609056B (en) * 2017-08-25 2021-08-03 百度在线网络技术(北京)有限公司 Question and answer processing method and device based on picture recognition
CN107657022A (en) * 2017-09-27 2018-02-02 努比亚技术有限公司 A kind of document retrieval method, mobile terminal and computer-readable recording medium
CN107784090B (en) * 2017-10-11 2020-03-27 上海掌门科技有限公司 File sharing method and device and computer readable medium
CN108241464A (en) * 2017-12-13 2018-07-03 深圳市金立通信设备有限公司 A kind of method, terminal and computer readable storage medium for showing chat message
CN110119871A (en) * 2019-03-26 2019-08-13 上海蔚来汽车有限公司 Information exchange platform and method
CN110297928A (en) * 2019-07-02 2019-10-01 百度在线网络技术(北京)有限公司 Recommended method, device, equipment and the storage medium of expression picture
CN110798397B (en) * 2019-10-25 2022-11-04 维沃移动通信有限公司 File sending method and device and electronic equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151200A (en) * 2018-08-27 2019-01-04 维沃移动通信有限公司 A kind of means of communication and mobile terminal

Also Published As

Publication number Publication date
CN110798397A (en) 2020-02-14
WO2021077897A1 (en) 2021-04-29

Similar Documents

Publication Publication Date Title
CN110798397B (en) File sending method and device and electronic equipment
CN108762954B (en) Object sharing method and mobile terminal
CN108536365B (en) Image sharing method and terminal
CN107977132B (en) Information display method and mobile terminal
CN109917979B (en) Searching method and mobile terminal
CN108415652B (en) Text processing method and mobile terminal
CN111338530B (en) Control method of application program icon and electronic equipment
CN110968228B (en) Display method of application program icon and electronic equipment
CN110618969B (en) Icon display method and electronic equipment
CN108536509B (en) Application body-splitting method and mobile terminal
CN108763540B (en) File browsing method and terminal
CN110308834B (en) Setting method of application icon display mode and terminal
CN110096203B (en) Screenshot method and mobile terminal
CN109753202B (en) Screen capturing method and mobile terminal
CN109271262B (en) Display method and terminal
CN111125307A (en) Chat record query method and electronic equipment
CN110688497A (en) Resource information searching method and device, terminal equipment and storage medium
CN108446339B (en) Application icon classification method and mobile terminal
CN111104380A (en) Application file management method and device, mobile terminal and storage medium
CN111610903A (en) Information display method and electronic equipment
CN111475066B (en) Background switching method of application program and electronic equipment
CN110381204B (en) Information display method, mobile terminal and computer readable storage medium
CN107908329B (en) Application icon management method and mobile terminal
CN111610909B (en) Screenshot method and device and electronic equipment
CN111273827B (en) Text processing method and electronic equipment

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
GR01 Patent grant
GR01 Patent grant