[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2015165393A1 - Method and apparatus for sending file and user terminal - Google Patents

Method and apparatus for sending file and user terminal Download PDF

Info

Publication number
WO2015165393A1
WO2015165393A1 PCT/CN2015/077743 CN2015077743W WO2015165393A1 WO 2015165393 A1 WO2015165393 A1 WO 2015165393A1 CN 2015077743 W CN2015077743 W CN 2015077743W WO 2015165393 A1 WO2015165393 A1 WO 2015165393A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
interface
interface object
sending
gesture operation
Prior art date
Application number
PCT/CN2015/077743
Other languages
French (fr)
Inventor
Bang MIAO
Hongda WU
Original Assignee
Tencent Technology (Shenzhen) Company Limited
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 Tencent Technology (Shenzhen) Company Limited filed Critical Tencent Technology (Shenzhen) Company Limited
Publication of WO2015165393A1 publication Critical patent/WO2015165393A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems

Definitions

  • the present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for sending a file and a user terminal.
  • An existing instant messaging includes an instant messaging client disposed on a user terminal and configured to transmit an instant message and a server disposed on a network side, which has been widely accepted by people, and become an important way of communications for people. People are always looking forward to conveniently and flexibly using an instant messaging client.
  • a sending-party client sends a file sending request to a server.
  • the server forwards the file sending request to a receiving-party client.
  • the sending-party client may directly send a to-be-sent file to the receiving-party client, or may also send a to-be-sent file to the receiving-party client by using the server.
  • a process of sending a plurality of files is similar thereto.
  • an existing instant messaging client generally performs sending in batches at a time.
  • a user ticks to-be-sent files among a plurality of files displayed on an interface, and the client simultaneously sends the files ticked by the user to a server or a receiving-party client.
  • the client simultaneously sends the files ticked by the user to a server or a receiving-party client.
  • it is easy to cause network congestion and the files cannot be smoothly sent to the server or the receiving-party client.
  • Embodiments of the present invention provide a method and an apparatus for sending a file and a user terminal, so that a user terminal can send a file more effectively.
  • An embodiment of the present invention provides a method for sending a file, the method including: presenting, by a user terminal, a plurality of first interface objects in an interactive interface of a touch screen, each first interface object in the plurality of first interface objects corresponding to a different file; detecting a first gesture operation directed at any first interface object in the plurality of first interface objects; generating a second interface object in response to the first gesture operation, the second interface object displaying information about a to-be-sent file, the to-be-sent file being a file corresponding to the first interface object at which the first gesture operation is directed; detecting a second gesture operation directed at the second interface object; and sending the to-be-sent file to a target terminal in response to the second gesture operation.
  • An embodiment of the present invention further provides an apparatus for sending a file, running in a user terminal, the user terminal including a touch screen, and the apparatus including: an interface presentation module, configured to present a plurality of first interface objects in an interactive interface of a touch screen, each first interface object in the plurality of first interface objects corresponding to a different file; a first detection module, configured to detect a first gesture operation directed at any first interface object in the plurality of first interface objects; a first responding module, configured to generate a second interface object in response to the first gesture operation, the second interface object displaying information about a to-be-sent file, the to-be-sent file being a file corresponding to the first interface object at which the first gesture operation is directed; a second detection module, configured to detect a second gesture operation directed at the second interface object; and a second responding module, configured to send the to-be-sent file to a target terminal in response to the second gesture operation.
  • an interface presentation module configured to present a plurality of first interface objects in an interactive interface of a touch
  • An embodiment of the present invention further provides a user terminal, the user terminal including a touch screen and an apparatus for sending a file, and the apparatus for sending a file being configured to: present a plurality of first interface objects in an interactive interface of the touch screen, each first interface object in the plurality of first interface objects corresponding to a different file; detect a first gesture operation directed at any first interface object in the plurality of first interface objects; generate a second interface object in response to the first gesture operation, the second interface object displaying information about a to-be-sent file, the to-be-sent file being a file corresponding to the first interface object at which the first gesture operation is directed; detect a second gesture operation directed at the second interface object; and send the to-be-sent file to a target terminal in response to the second gesture operation.
  • a second interface object is generated, where the second interface object displays information about a to-be-sent file, so that a user may decide, according to the information in the second interface object, whether to send the file; and when a second gesture operation directed at the second interface object is detected, a user terminal sends the to-be-sent file to a target terminal.
  • the user can determine, while browsing the information about the file, whether to send the file.
  • a file selected by the user is sent first, each file is sent independently, and it is unnecessary to wait the user to finish ticking of all to-be-sent files and perform sending at a time. Therefore, the problems of network congestion and slow speed caused by sending of a plurality of files at a time can be prevented.
  • FIG. 1 is a diagram of an application environment of a method and an apparatus for sending a file provided in the present disclosure
  • FIG. 2 illustrates a structural block diagram of a user terminal applicable to embodiments of the present invention
  • FIG. 3 is a flowchart of a method for sending a file provided in an embodiment of the present invention
  • FIG. 4 is a flowchart of a method for sending a file provided in another embodiment of the present invention.
  • FIG. 5 to FIG. 8 are interface effect diagrams of an application example in another embodiment of the present invention.
  • FIG. 9 is a structural block diagram of an apparatus for sending a file provided in an embodiment of the present invention.
  • FIG. 10 is a structural block diagram of an apparatus for sending a file provided in another embodiment of the present invention.
  • FIG. 11 is a structural block diagram of a user terminal provided in an embodiment of the present invention.
  • a method for sending a file provided in embodiments of the present invention may be applied to an application environment shown in FIG. 1, to process a service request.
  • a user terminal 100 and a server 200 are located in a wireless network or wired network 300.
  • the user terminal 100 performs data exchange with the server 200 by using the wireless network or wired network 300.
  • the user terminal 100 may include: a smart phone, a tablet computer, an e-book reader, a moving picture experts group audio layer III (MP3) player, a moving picture experts group audio layer IV (MP4) player, a portable laptop computer, a desktop computer, an in-vehicle computer, a wearable mobile terminal, and the like.
  • MP3 moving picture experts group audio layer III
  • MP4 moving picture experts group audio layer IV
  • FIG. 2 illustrates a structural block diagram of a user terminal applicable to embodiments of the present invention.
  • the user terminal 100 includes a memory 102, a storage controller 104, one or more processors 106 (only one is shown in the figure) , a peripheral interface 108, a radio frequency module 110, a positioning module 112, an image acquisition module 114, an audio module 116, a touch screen 118, and a key module 120. These components communicate with each other by using one or more communication buses/signal lines 122.
  • FIG. 2 merely shows an exemplary structure, and the user terminal 100 may also include more or fewer components than those shown in FIG. 2, or have a configuration different from that shown in FIG. 2.
  • the components shown in FIG. 2 may be implemented by using hardware, software, or a combination thereof.
  • the memory 102 may be configured to store a software program and module, such as a program instruction/module corresponding to a method and an apparatus for sending a file in embodiments of the present invention.
  • the processor 106 executes various functional applications and data processing by running the software program and module stored in the memory 102, for example, the method for sending a file provided in the embodiments of the present invention.
  • the memory 102 may include a high-speed random access memory, and may also include a nonvolatile memory, for example, one or more magnetic storage devices, flash memories or other nonvolatile solid-state memories. In some embodiments, the memory 102 may further include memories remotely disposed relative to the processor 106, and these remote memories may be connected to the user terminal 100 through a network. Examples of the network include but are not limited to, the Internet, an intranet, a local area network, a mobile communications network, or a combination thereof. The processor 106 and other possible components may access the memory 102 under the control of the memory controller 104.
  • the peripheral interface 108 couples various input/output devices to a CPU and the memory 102.
  • the processor 106 runs different software and instructions inside the memory 102, so as to perform different functions of the user terminal 100 and perform data processing.
  • peripheral interface 108, the processor 106, and the memory controller 104 may be implemented in a single chip. In some other embodiments, they may be separately implemented by an independent chip.
  • the radio frequency module 110 is configured to receive and send an electromagnetic wave, and implement mutual conversion between the electromagnetic wave and an electric signal, so as to communicate with a communications network or another device.
  • the radio frequency module 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, a cipher/decipher chip, a subscriber identity module (SIM) card, and a memory.
  • the radio frequency module 110 may communicate with various networks such as the Internet, an intranet and a wireless network, or communicate with other devices through a wireless network.
  • the wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network.
  • the wireless network may use various communications standards, protocols and technologies, which include, but are not limited to, Global System for Mobile Communications (GSM) , Enhanced Data GSM Environment (EDGE) , Wideband Code Division Multiple Access (W-CDMA) , Code Division Multiple Access (CDMA) , Time Division Multiple Access (TDMA) , Bluetooth, Wireless Fidelity (WiFi) (for example, US Institute of Electrical and Electronic Engineers IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n) , Voice over Internet Protocol (VoIP) , Worldwide Interoperability for Microwave Access (WiMax) , other protocols for email, instant messaging and short message service, and any other suitable communications protocols, and even may include some protocols that have not been developed.
  • GSM Global System for Mobile Communications
  • EDGE Enhanced Data GSM Environment
  • W-CDMA Wideband Code Division Multiple Access
  • CDMA Code Division Multiple Access
  • TDMA Time Division Multiple Access
  • Bluetooth Bluetooth
  • WiFi Wireless Fidelity
  • the image acquisition module 114 is configured to photograph a photo or a video.
  • the photographed photo or video may be stored in the memory 102 and sent by using the radio frequency module 110.
  • the touch screen 118 provides an output and input interface between the user terminal 100 and the user. Specifically, the touch screen 118 displays a video output to the user, and content of the video output may include texts, images, videos, or any combination thereof. Some output results correspond to some user interface objects.
  • the touch screen 118 further receives an input of the user, such as tapping, sliding, or other gesture operations of the user, so that the user interface object responds to the input of the user.
  • the technology for detecting the input of the user may be a resistive touch detection technology, a capacitive touch detection technology, or any other possible touch detection technologies. By using the technology for detecting the input of the user, the time of the input of the user, the position of the input of the user, and the track and the intensity of the gesture of the user can be acquired.
  • the touch screen in the embodiments of the present invention may collect an operation gesture of a user on or near the touch screen (such as an operation of a user on or near the touch screen by using any suitable object or accessory such as a finger or a stylus) , and drive a corresponding connection module according to a preset program.
  • the touch screen may be a resistive, capacitive, infrared, or surface sound wave type touch screen.
  • the key module 120 also provides an interface for the user to input information to the user terminal 100, and the user may press different keys to enable the user terminal 100 to perform different functions.
  • the method for sending a file provided in the embodiments of the present invention may be applied to file transmission between clients of various applications, for example, file transmission between QQ users, or may also be applied to file transmission between terminals, for example, file transmission between mobile phones (by using Bluetooth) .
  • a target terminal may be the server 200, and may also be another user terminal 100.
  • a client may be installed in the user terminal 100.
  • the client may be bound to a user account.
  • the user account may be user account information of various applications installed in the user terminal 100, for example, a user login account of an instant messaging application (for example, QQ or Weixin) , a user login account of a browser, or a user login account of a game application in the user terminal 100.
  • the user may log in to a corresponding application by inputting the user account and a password in the user terminal 100 and use various services provided by the server 200.
  • FIG. 3 shows a schematic flowchart of a method for sending a file provided in an embodiment of the present invention.
  • the method for sending a file includes:
  • Step S11 A user terminal presents a plurality of first interface objects in an interactive interface of a touch screen, where each first interface object in the plurality of first interface objects corresponds to a different file.
  • the interactive interface may be an interactive interface in various application clients, for example, may be a user interactive interface for sending a file to a friend in an instant messaging client; or may be a user interactive interface for sending a file between two clients bound to one same user account, for example, a user sends a file to a QQ client in a PC end by using a QQ client in a mobile phone.
  • the interactive interface may also be an interactive interface for transmitting a file between two user terminals.
  • the user terminal 100 presents the plurality of first interface objects in the interactive interface.
  • Each first interface object in the plurality of first interface objects corresponds to a different file.
  • the file may be a file stored in the user terminal 100 in advance, or may also be a currently acquired file, for example, a currently photographed picture or video.
  • the file may be files of a plurality of types such as picture, document, video, audio, and application program.
  • a first interface object may identify or indicate a file corresponding to the first interface object.
  • a first interface object may include information such as a name and an icon of a file corresponding to the first interface object, and may also include a thumbnail of the file corresponding to the first interface object (for example, a thumbnail of a picture file or a thumbnail of a frame of image in a video file) .
  • a thumbnail of the file corresponding to the first interface object for example, a thumbnail of a picture file or a thumbnail of a frame of image in a video file.
  • different file types may use different forms of first interface objects, as long as they can identify or indicate files corresponding thereto.
  • the specific implementation manners of the present disclosure are not limited thereto.
  • first prompt information may also be displayed in the interactive interface, to prompt a user how to perform a first gesture operation.
  • Step S12 Detect a first gesture operation directed at any first interface object in the plurality of first interface objects.
  • a position of each first interface object in the interactive interface is recorded, and the user terminal may determine, by detecting coordinates of a gesture operation and the position of each first interface object in the interactive interface, which first interface object the gesture operation is directed at.
  • the first gesture operation may include: long-pressing or tapping the first interface object on the touch screen.
  • the long-pressing the first interface object refers to that a user continuously touches the first interface object in the touch screen by using any suitable object or accessory such as a finger or a stylus, duration of the continuous touch exceeds predetermined duration, and a track formed after the continuous touch is a point.
  • the tapping the first interface object may include single tap on the first interface object or double tap on the first interface object.
  • the single tap refers to that a user temporarily touches the first interface object in the touch screen once within a predetermined time by using any suitable object or accessory such as a finger or a stylus. Two successive times of single tap is the double tap.
  • Which type of gesture operation the first gesture operation is may be set in advance.
  • a gesture operation that is the same as the gesture operation set in advance it can be considered that the first gesture operation is detected.
  • the first gesture operation is long-pressing a first interface object.
  • a long-pressing gesture is detected at a position of a first interface object O1
  • a first gesture operation directed at the first interface object O1 is detected.
  • a file corresponding to the first interface object O1 may be defined as a to-be-sent file.
  • Step S13 Generate a second interface object in response to the first gesture operation, where the second interface object corresponds to the first interface object at which the first gesture operation is directed and displays information about a to-be-sent file, where the to-be-sent file is a file corresponding to the first interface object at which the first gesture operation is directed.
  • the user terminal When a first gesture operation directed at a first interface object is detected, the user terminal generates a second interface object corresponding to the first interface object, that is, the second interface object also corresponds to the to-be-sent file.
  • the second interface object further displays information about the to-be-sent file.
  • the information about the to-be-sent file may include a file name, digest, recorded time, and thumbnail, and a file size.
  • the specific form of the second interface object may be the same as or different from the form of the first interface object.
  • the second interface object may be the thumbnail of the picture, or may also be a profile of the picture.
  • the first interface object is a name plus an icon of a document
  • the second interface object may include information about a digest of the document.
  • the second interface object includes more information about the file as compared with the first interface object, that is, the second interface object can provide more detailed information about the file to a user and can more intuitively help the user to determine whether to send the file.
  • the second interface object specifically may be a floating layer that displays the information about the to-be-sent file.
  • the floating layer also referred to as a popup layer
  • the second interface object may be set to being closed according to an instruction of a user, or may also be set to being hidden automatically upon exceeding of a predetermined time.
  • the specific implementation manners of the present disclosure are not limited thereto.
  • the area of the second interface object is greater than that of the first interface object.
  • the second interface object is located in the center of the interactive interface.
  • second prompt information may also be displayed in the interactive interface, to prompt a user how to perform a second gesture operation.
  • Step S14 Detect a second gesture operation directed at the second interface object.
  • a position of the second interface object on the touch screen is recorded, and the user terminal may determine, by detecting coordinates of a gesture operation, whether the gesture operation is directed at the second interface object.
  • the second gesture operation may include: touching the second interface object on the touch screen and sliding in a predetermined direction during the touch. That is, a user presses the second interface object and slides it in the predetermined direction by using any suitable object or accessory such as a finger or a stylus, and then releases it. It may also be understood as that a user continuously touches the touch screen by using any suitable object or accessory such as a finger or a stylus and a sliding track formed after the continuous touch satisfies a predetermined sliding track, where the predetermined sliding track starts from the second interface object and ends in a predetermined area of the interactive interface.
  • the predetermined area may be set different according to different interfaces. The specific implementation manners of the present disclosure are not limited thereto.
  • Step S15 Send the to-be-sent file to a target terminal in response to the second gesture operation.
  • the user terminal 100 sends the to-be-sent file to the target terminal.
  • the target terminal may be the server 200, or may also be another user terminal or client.
  • the user terminal 100 may send a file sending request to the server 200, where the file sending request may include information (including a name and a size) about a file corresponding to the second interface object.
  • the server 200 responds to the request, the user terminal 100 sends the file corresponding to the second interface object to the server, or sends the file to the server 200 after processing it.
  • the user terminal 100 may send a file sending request to the target user terminal.
  • the target user terminal responds to the request, the user terminal 100 sends a file to the another user terminal directly, or may also use the server to forward a file to the target user terminal.
  • the user terminal 100 may send a file sending request to the server 200, where the file sending request may include information such as an account of the target client.
  • the server 200 may send the file sending request to the target client.
  • the user terminal 100 may send a file to the target client directly, or may use the server to forward a file to the target client.
  • a plurality of files can be sent by repeatedly performing steps S12 to S15 in this way until the user exits the interactive interface.
  • step S11 may be performed again to load a new first interface object in the interactive interface and then steps S12 to S15 are performed repeatedly.
  • a second interface object is generated, where the second interface object displays information about a to-be-sent file, so that a user may decide, according to the information in the second interface object, whether to send the file; and when a second gesture operation directed at the second interface object is detected, a user terminal sends the to-be-sent file to a target terminal.
  • the user can determine, while browsing the information about the file, whether to send the file.
  • a file selected by the user is sent first, each file is sent independently, and it is unnecessary to wait the user to finish ticking of all to-be-sent files and perform sending at a time. Therefore, the problems of network congestion and slow speed caused by sending of a plurality of files at a time can be prevented.
  • FIG. 4 shows a schematic flowchart of a method for sending a file provided in another embodiment of the present invention.
  • the method for sending a file includes:
  • Step S201 Receive a file presentation instruction triggered by a user, where the file presentation instruction includes a file storage path.
  • Step S202 Acquire information about a file in the storage path.
  • Step S203 Determine whether a quantity of files in the storage path is greater than a predetermined quantity.
  • step S204 Load a predetermined quantity of first interface objects to an interactive interface of a touch screen for presentation, where each of the first interface objects corresponds to one file in the storage path.
  • step S205 Load first interface objects corresponding to all files in the file storage path to an interactive interface of a touch screen for presentation.
  • Step S206 Detect a first gesture operation directed at any first interface object in the plurality of first interface objects.
  • Step S207 Generate a second interface object in response to the first gesture operation, where the second interface object corresponds to the first interface object at which the first gesture operation is directed and displays information about a to-be-sent file, where the to-be-sent file is a file corresponding to the first interface object at which the first gesture operation is directed.
  • Step S208 Detect a second gesture operation directed at the second interface object.
  • Step S209 Send the to-be-sent file to a target terminal in response to the second gesture operation.
  • a plurality of corresponding files in the interactive interface can be sent by repeatedly performing steps S206 to S209 in this way until the user exits the interactive interface.
  • a new first interface object may be loaded in the interactive interface and then steps S206 to S209 are performed repeatedly.
  • an application scenario of this application example is that a user A of an instant messaging client #1 sends a picture to a friend B thereof.
  • the first interface object may be a thumbnail of a picture
  • the second interface object may be a floating layer that displays a thumbnail
  • the first gesture operation is long-pressing the first interface object (thumbnail)
  • the second gesture operation is pressing the second interface object (floating layer) , sliding it upwards in the interactive interface, and then releasing it.
  • the user A may open a friend list of the instant messaging client #1, select the target friend B from the friend list, and enter a window C for performing a session with the friend B.
  • the session window C may be like that shown in FIG. 5, which shows file types for selection of the user.
  • the instant messaging client #1 in the user terminal receives a file presentation instruction, where the file presentation instruction includes a picture storage path.
  • the user terminal acquires information about a picture in the storage path, where the information about the picture may include a quantity of pictures in the storage path, and a name, and a recorded time, picture content, and a picture size of each picture.
  • the user terminal compares the quantity of pictures in the storage path with a predetermined quantity. If the quantity of pictures in the storage path is greater than the predetermined quantity, a predetermined quantity of thumbnails are loaded to the interactive interface of the touch screen for presentation. Each thumbnail corresponds to one picture in the storage path. If the quantity of pictures in the storage path is less than or equal to the predetermined quantity, thumbnails corresponding to all pictures in the storage path are loaded to the interactive interface of the touch screen for presentation.
  • the predetermined quantity refers to a quantity of pictures that can be presented by the interactive interface.
  • an interactive interface 60 of a touch screen can present 9 pictures.
  • thumbnails of the first 9 pictures may be loaded to the interactive interface for presentation. If the quantity of pictures in the storage path is 7, thumbnails of the 7 pictures are loaded to the interactive interface 60 for presentation.
  • the user terminal detects whether any one of the 9 thumbnails shown in FIG. 6 is long-pressed. If it is detected that the user continuously touches one of the thumbnails by using any suitable object or accessory such as a finger or a stylus, duration of the continuous touch exceeds predetermined duration, and a track formed after the continuous touch is a point, a floating layer corresponding to the thumbnail is generated. As shown in FIG. 7, if the user A long presses a thumbnail P1 in FIG. 6, a floating layer P2 corresponding to the thumbnail P1 is generated in the interactive interface 60. The floating layer P2 has an area greater than that of the thumbnail P1 and is located in the center of the interactive interface. In this way, the user A can view content in the picture more clearly.
  • the user A may directly operate the another thumbnail. If the user A wants to send the picture to the friend B, the user terminal sends the picture displayed by the floating layer P2 to a client corresponding to the friend B as long as the user touches the floating layer P2 by using any suitable object or accessory such as a finger or a stylus and forms an upward sliding track during the touch.
  • a corresponding animation effect may be further added in the sending process, so as to present the file sending process more vividly.
  • the user A still can stay in the interactive interface 60 to continue to browse other pictures for sending.
  • FIG. 5 to FIG. 8 are only exemplary.
  • the specific implementation manners of the present disclosure are not limited by the specific design of the interactive interface.
  • a second interface object is generated, where the second interface object displays information about a to-be-sent file, so that a user may decide, according to the information in the second interface object, whether to send the file; and when a second gesture operation directed at the second interface object is detected, a user terminal sends the to-be-sent file to a target terminal.
  • the user can determine, while browsing the information about the file, whether to send the file.
  • a file selected by the user is sent first, each file is sent independently, and it is unnecessary to wait the user to finish ticking of all to-be-sent files and perform sending at a time. Therefore, the problems of network congestion and slow speed caused by sending of a plurality of files at a time can be prevented.
  • FIG. 9 shows a structural block diagram of an apparatus for sending a file provided in an embodiment of the present invention and configured to implement the method provided in the foregoing embodiments.
  • the apparatus 30 includes:
  • an interface presentation module 31 configured to present a plurality of first interface objects in an interactive interface of a touch screen, where each first interface object in the plurality of first interface objects corresponds to a different file;
  • a first detection module 32 configured to detect a first gesture operation directed at any first interface object in the plurality of first interface objects
  • a first responding module 33 configured to generate a second interface object in response to the first gesture operation, where the second interface object corresponds to the first interface object at which the first gesture operation is directed and displays information about a to-be-sent file;
  • a second detection module 34 configured to detect a second gesture operation directed at the second interface object
  • a second responding module 35 configured to send the to-be-sent file to a target terminal in response to the second gesture operation. Further, the second responding module 35 may also be configured to process the file and send the processed file to the target terminal.
  • the first gesture operation may include: long-pressing or tapping the first interface object on the touch screen.
  • the second gesture operation may include: touching the second interface object on the touch screen and sliding in a predetermined direction during the touch.
  • the file may be, for example, a picture.
  • the first interface object is a thumbnail of the picture.
  • the second interface object may be, for example, a floating layer.
  • the floating layer displays the picture and the area of the floating layer is greater than that of the thumbnail.
  • the second interface object is located in the center of the interactive interface.
  • the above modules may be implemented by using software code.
  • the above modules may be stored in the memory 102.
  • the above modules may also be implemented by using hardware, for example, an integrated circuit chip.
  • a second interface object is generated, where the second interface object displays information about a to-be-sent file, so that a user may decide, according to the information in the second interface object, whether to send the file; and when a second gesture operation directed at the second interface object is detected, a user terminal sends the to-be-sent file to a target terminal.
  • the user can determine, while browsing the information about the file, whether to send the file.
  • a file selected by the user is sent first, each file is sent independently, and it is unnecessary to wait the user to finish ticking of all to-be-sent files and perform sending at a time. Therefore, the problems of network congestion and slow speed caused by sending of a plurality of files at a time can be prevented.
  • the apparatus 40 includes: an interface presentation module 41, a first detection module 42, a first responding module 43, a second detection module 44, and a second responding module 45.
  • the interface presentation module 41 includes:
  • an instruction receiving unit 411 configured to receive a file presentation instruction triggered by a user, where the file presentation instruction includes a file storage path;
  • an information acquisition unit 412 configured to acquire information about a file in the storage path
  • a loading unit 413 configured to load, according to the information about the file, a first interface object corresponding to the file in the storage path to an interactive interface of a touch screen for presentation.
  • the information about the file includes a quantity of files
  • the loading unit 413 includes a determining subunit 4131, a first loading subunit 4132, and a second loading subunit 4133, where
  • the determining subunit 4131 is configured to determine whether the quantity of files in the storage path is greater than a predetermined quantity
  • the first loading subunit 4132 is configured to load, when the quantity of files is greater than the predetermined quantity, first interface objects corresponding to all files of a predetermined quantity of files to the interactive interface of the touch screen for presentation, where a quantity of the first interface objects is equal to the predetermined quantity;
  • the second loading subunit 4133 is configured to load, when the quantity of files is less than or equal to the predetermined quantity, first interface objects corresponding to all files in the file storage paths to the interactive interface of the touch screen for presentation.
  • the above modules may be implemented by using software code.
  • the above modules may be stored in the memory 102.
  • the above modules may also be implemented by using hardware, for example, an integrated circuit chip.
  • a second interface object is generated, where the second interface object displays information about a to-be-sent file, so that a user may decide, according to the information in the second interface object, whether to send the file; and when a second gesture operation directed at the second interface object is detected, a user terminal sends the to-be-sent file to a target terminal.
  • the user can determine, while browsing the information about the file, whether to send the file.
  • a file selected by the user is sent first, each file is sent independently, and it is unnecessary to wait the user to finish ticking of all to-be-sent files and perform sending at a time. Therefore, the problems of network congestion and slow speed caused by sending of a plurality of files at a time can be prevented.
  • FIG. 11 shows a structural block diagram of a user terminal provided in an embodiment of the present invention and configured to execute the method for sending a file.
  • the user terminal 50 includes a touch screen 51 and an apparatus 52 for sending a file.
  • the apparatus 52 for sending a file may be configured to: present a plurality of first interface objects in an interactive interface of the touch screen, where each first interface object in the plurality of first interface objects corresponds to a different file; detect a first gesture operation directed at any first interface object in the plurality of first interface objects; generate a second interface object in response to the first gesture operation, where the second interface object displays information about a to-be-sent file, where the to-be-sent file is a file corresponding to the first interface object at which the first gesture operation is directed; detect a second gesture operation directed at the second interface object; and send the to-be-sent file to a target terminal in response to the second gesture operation.
  • For the specific process of implementing functions by the apparatus 52 for sending a file refer to specific content described in the embodiments shown
  • the program may be stored in a computer readable storage medium.
  • the storage medium may be a read-only memory, a magnetic disk, an optical disc, or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Data Mining & Analysis (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Embodiments of the present invention disclose a method and an apparatus for sending a file and a user terminal. The method includes: presenting, by a user terminal, a plurality of first interface objects in an interactive interface of the touch screen, where each first interface object in the plurality of first interface objects corresponds to a different file; detecting a first gesture operation directed at any first interface object in the plurality of first interface objects; generating a second interface object in response to the first gesture operation, where the second interface object corresponds to the first interface object at which the first gesture operation is directed, and displays information about a to-be- sent file; detecting a second gesture operation directed at the second interface object; and sending the to-be-sent file to a target terminal in response to the second gesture operation.

Description

METHOD AND APPARATUS FOR SENDING FILE AND USER TERMINAL
FIELD OF THE TECHNOLOGY
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for sending a file and a user terminal.
BACKGROUND OF THE DISCLOSURE
An existing instant messaging (IM) includes an instant messaging client disposed on a user terminal and configured to transmit an instant message and a server disposed on a network side, which has been widely accepted by people, and become an important way of communications for people. People are always looking forward to conveniently and flexibly using an instant messaging client.
In an existing instant messaging system, a user of an instant messaging client often needs to send a file to another user by using the instant messaging client, for example, send a picture to a friend by using QQ and Weixin. A sending-party client sends a file sending request to a server. The server forwards the file sending request to a receiving-party client. When the receiving-party client permits the request, the sending-party client may directly send a to-be-sent file to the receiving-party client, or may also send a to-be-sent file to the receiving-party client by using the server. A process of sending a plurality of files is similar thereto. When sending a plurality of files, an existing instant messaging client generally performs sending in batches at a time. For example, a user ticks to-be-sent files among a plurality of files displayed on an interface, and the client simultaneously sends the files ticked by the user to a server or a receiving-party client. In this case, it is easy to cause network congestion and the files cannot be smoothly sent to the server or the receiving-party client.
SUMMARY
Embodiments of the present invention provide a method and an apparatus for sending a file and a user terminal, so that a user terminal can send a file more effectively.
An embodiment of the present invention provides a method for sending a file, the method including: presenting, by a user terminal, a plurality of first interface objects in an interactive interface of a touch screen, each first interface object in the plurality of first interface objects corresponding to a different file; detecting a first gesture operation directed at any first interface object in the plurality of first interface objects; generating a second interface object in  response to the first gesture operation, the second interface object displaying information about a to-be-sent file, the to-be-sent file being a file corresponding to the first interface object at which the first gesture operation is directed; detecting a second gesture operation directed at the second interface object; and sending the to-be-sent file to a target terminal in response to the second gesture operation.
An embodiment of the present invention further provides an apparatus for sending a file, running in a user terminal, the user terminal including a touch screen, and the apparatus including: an interface presentation module, configured to present a plurality of first interface objects in an interactive interface of a touch screen, each first interface object in the plurality of first interface objects corresponding to a different file; a first detection module, configured to detect a first gesture operation directed at any first interface object in the plurality of first interface objects; a first responding module, configured to generate a second interface object in response to the first gesture operation, the second interface object displaying information about a to-be-sent file, the to-be-sent file being a file corresponding to the first interface object at which the first gesture operation is directed; a second detection module, configured to detect a second gesture operation directed at the second interface object; and a second responding module, configured to send the to-be-sent file to a target terminal in response to the second gesture operation.
An embodiment of the present invention further provides a user terminal, the user terminal including a touch screen and an apparatus for sending a file, and the apparatus for sending a file being configured to: present a plurality of first interface objects in an interactive interface of the touch screen, each first interface object in the plurality of first interface objects corresponding to a different file; detect a first gesture operation directed at any first interface object in the plurality of first interface objects; generate a second interface object in response to the first gesture operation, the second interface object displaying information about a to-be-sent file, the to-be-sent file being a file corresponding to the first interface object at which the first gesture operation is directed; detect a second gesture operation directed at the second interface object; and send the to-be-sent file to a target terminal in response to the second gesture operation.
As compared with the existing technology, according to the method, apparatus, and terminal for sending a file provided in the embodiments of the present invention, when a first gesture operation directed at one of first interface objects is detected, a second interface object is generated, where the second interface object displays information about a to-be-sent file, so that a user may decide, according to the information in the second interface object, whether to send the file; and when a second gesture operation directed at the second interface object is detected, a user  terminal sends the to-be-sent file to a target terminal. In one aspect, the user can determine, while browsing the information about the file, whether to send the file. In another aspect, a file selected by the user is sent first, each file is sent independently, and it is unnecessary to wait the user to finish ticking of all to-be-sent files and perform sending at a time. Therefore, the problems of network congestion and slow speed caused by sending of a plurality of files at a time can be prevented.
BRIEF DESCRIPTION OF THE DRAWINGS
To describe the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings required for describing the embodiments. Apparently, the accompanying drawings in the following description show only some embodiments of the present invention, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
FIG. 1 is a diagram of an application environment of a method and an apparatus for sending a file provided in the present disclosure;
FIG. 2 illustrates a structural block diagram of a user terminal applicable to embodiments of the present invention;
FIG. 3 is a flowchart of a method for sending a file provided in an embodiment of the present invention;
FIG. 4 is a flowchart of a method for sending a file provided in another embodiment of the present invention;
FIG. 5 to FIG. 8 are interface effect diagrams of an application example in another embodiment of the present invention;
FIG. 9 is a structural block diagram of an apparatus for sending a file provided in an embodiment of the present invention;
FIG. 10 is a structural block diagram of an apparatus for sending a file provided in another embodiment of the present invention; and
FIG. 11 is a structural block diagram of a user terminal provided in an embodiment of the present invention.
DESCRIPTION OF EMBODIMENTS
A method for sending a file provided in embodiments of the present invention may be applied to an application environment shown in FIG. 1, to process a service request. As shown in  FIG. 1, a user terminal 100 and a server 200 are located in a wireless network or wired network 300. The user terminal 100 performs data exchange with the server 200 by using the wireless network or wired network 300.
The user terminal 100 may include: a smart phone, a tablet computer, an e-book reader, a moving picture experts group audio layer III (MP3) player, a moving picture experts group audio layer IV (MP4) player, a portable laptop computer, a desktop computer, an in-vehicle computer, a wearable mobile terminal, and the like.
FIG. 2 illustrates a structural block diagram of a user terminal applicable to embodiments of the present invention. As shown in FIG. 2, the user terminal 100 includes a memory 102, a storage controller 104, one or more processors 106 (only one is shown in the figure) , a peripheral interface 108, a radio frequency module 110, a positioning module 112, an image acquisition module 114, an audio module 116, a touch screen 118, and a key module 120. These components communicate with each other by using one or more communication buses/signal lines 122.
It may be understood that FIG. 2 merely shows an exemplary structure, and the user terminal 100 may also include more or fewer components than those shown in FIG. 2, or have a configuration different from that shown in FIG. 2. The components shown in FIG. 2 may be implemented by using hardware, software, or a combination thereof.
The memory 102 may be configured to store a software program and module, such as a program instruction/module corresponding to a method and an apparatus for sending a file in embodiments of the present invention. The processor 106 executes various functional applications and data processing by running the software program and module stored in the memory 102, for example, the method for sending a file provided in the embodiments of the present invention.
The memory 102 may include a high-speed random access memory, and may also include a nonvolatile memory, for example, one or more magnetic storage devices, flash memories or other nonvolatile solid-state memories. In some embodiments, the memory 102 may further include memories remotely disposed relative to the processor 106, and these remote memories may be connected to the user terminal 100 through a network. Examples of the network include but are not limited to, the Internet, an intranet, a local area network, a mobile communications network, or a combination thereof. The processor 106 and other possible components may access the memory 102 under the control of the memory controller 104.
The peripheral interface 108 couples various input/output devices to a CPU and the memory 102. The processor 106 runs different software and instructions inside the memory 102, so as to perform different functions of the user terminal 100 and perform data processing.
In some embodiments, the peripheral interface 108, the processor 106, and the memory controller 104 may be implemented in a single chip. In some other embodiments, they may be separately implemented by an independent chip.
The radio frequency module 110 is configured to receive and send an electromagnetic wave, and implement mutual conversion between the electromagnetic wave and an electric signal, so as to communicate with a communications network or another device. The radio frequency module 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, a cipher/decipher chip, a subscriber identity module (SIM) card, and a memory. The radio frequency module 110 may communicate with various networks such as the Internet, an intranet and a wireless network, or communicate with other devices through a wireless network. The wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network. The wireless network may use various communications standards, protocols and technologies, which include, but are not limited to, Global System for Mobile Communications (GSM) , Enhanced Data GSM Environment (EDGE) , Wideband Code Division Multiple Access (W-CDMA) , Code Division Multiple Access (CDMA) , Time Division Multiple Access (TDMA) , Bluetooth, Wireless Fidelity (WiFi) (for example, US Institute of Electrical and Electronic Engineers IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n) , Voice over Internet Protocol (VoIP) , Worldwide Interoperability for Microwave Access (WiMax) , other protocols for email, instant messaging and short message service, and any other suitable communications protocols, and even may include some protocols that have not been developed.
The image acquisition module 114 is configured to photograph a photo or a video. The photographed photo or video may be stored in the memory 102 and sent by using the radio frequency module 110.
The touch screen 118 provides an output and input interface between the user terminal 100 and the user. Specifically, the touch screen 118 displays a video output to the user, and content of the video output may include texts, images, videos, or any combination thereof. Some output results correspond to some user interface objects. The touch screen 118 further receives an input of the user, such as tapping, sliding, or other gesture operations of the user, so that the user interface object responds to the input of the user. The technology for detecting the input of the user  may be a resistive touch detection technology, a capacitive touch detection technology, or any other possible touch detection technologies. By using the technology for detecting the input of the user, the time of the input of the user, the position of the input of the user, and the track and the intensity of the gesture of the user can be acquired.
The touch screen in the embodiments of the present invention may collect an operation gesture of a user on or near the touch screen (such as an operation of a user on or near the touch screen by using any suitable object or accessory such as a finger or a stylus) , and drive a corresponding connection module according to a preset program. In addition, the touch screen may be a resistive, capacitive, infrared, or surface sound wave type touch screen.
The key module 120 also provides an interface for the user to input information to the user terminal 100, and the user may press different keys to enable the user terminal 100 to perform different functions.
The method for sending a file provided in the embodiments of the present invention may be applied to file transmission between clients of various applications, for example, file transmission between QQ users, or may also be applied to file transmission between terminals, for example, file transmission between mobile phones (by using Bluetooth) . In the embodiments of the present invention, a target terminal may be the server 200, and may also be another user terminal 100.
In the embodiments of the present invention, a client may be installed in the user terminal 100. The client may be bound to a user account. The user account may be user account information of various applications installed in the user terminal 100, for example, a user login account of an instant messaging application (for example, QQ or Weixin) , a user login account of a browser, or a user login account of a game application in the user terminal 100. The user may log in to a corresponding application by inputting the user account and a password in the user terminal 100 and use various services provided by the server 200.
To further explain the technical means used in the present disclosure for achieving the intended objectives and the effects thereof, specific implementation manners, structures, features, and effects of the present disclosure are described in detail below with reference to the accompanying drawings and preferred embodiments.
Refer to FIG. 3, which shows a schematic flowchart of a method for sending a file provided in an embodiment of the present invention. In this embodiment, the method for sending a file includes:
Step S11: A user terminal presents a plurality of first interface objects in an interactive interface of a touch screen, where each first interface object in the plurality of first interface objects corresponds to a different file.
In this embodiment of the present invention, the interactive interface may be an interactive interface in various application clients, for example, may be a user interactive interface for sending a file to a friend in an instant messaging client; or may be a user interactive interface for sending a file between two clients bound to one same user account, for example, a user sends a file to a QQ client in a PC end by using a QQ client in a mobile phone. The interactive interface may also be an interactive interface for transmitting a file between two user terminals.
In this step, the user terminal 100 presents the plurality of first interface objects in the interactive interface. Each first interface object in the plurality of first interface objects corresponds to a different file. The file may be a file stored in the user terminal 100 in advance, or may also be a currently acquired file, for example, a currently photographed picture or video. The file may be files of a plurality of types such as picture, document, video, audio, and application program.
A first interface object may identify or indicate a file corresponding to the first interface object. A first interface object may include information such as a name and an icon of a file corresponding to the first interface object, and may also include a thumbnail of the file corresponding to the first interface object (for example, a thumbnail of a picture file or a thumbnail of a frame of image in a video file) . It should be noted that different file types may use different forms of first interface objects, as long as they can identify or indicate files corresponding thereto. The specific implementation manners of the present disclosure are not limited thereto.
Preferably, while the first interface objects are presented, first prompt information may also be displayed in the interactive interface, to prompt a user how to perform a first gesture operation.
Step S12: Detect a first gesture operation directed at any first interface object in the plurality of first interface objects.
When the user terminal presents the plurality of first interface objects in the interactive interface of the touch screen, a position of each first interface object in the interactive interface is recorded, and the user terminal may determine, by detecting coordinates of a gesture operation and the position of each first interface object in the interactive interface, which first interface object the gesture operation is directed at.
The first gesture operation may include: long-pressing or tapping the first interface object on the touch screen. The long-pressing the first interface object refers to that a user continuously touches the first interface object in the touch screen by using any suitable object or accessory such as a finger or a stylus, duration of the continuous touch exceeds predetermined duration, and a track formed after the continuous touch is a point. The tapping the first interface object may include single tap on the first interface object or double tap on the first interface object. The single tap refers to that a user temporarily touches the first interface object in the touch screen once within a predetermined time by using any suitable object or accessory such as a finger or a stylus. Two successive times of single tap is the double tap.
Which type of gesture operation the first gesture operation is may be set in advance. When a gesture operation that is the same as the gesture operation set in advance is detected, it can be considered that the first gesture operation is detected. For example, it is set in advance that the first gesture operation is long-pressing a first interface object. When a long-pressing gesture is detected at a position of a first interface object O1, it can be considered that a first gesture operation directed at the first interface object O1 is detected. A file corresponding to the first interface object O1 may be defined as a to-be-sent file.
Step S13: Generate a second interface object in response to the first gesture operation, where the second interface object corresponds to the first interface object at which the first gesture operation is directed and displays information about a to-be-sent file, where the to-be-sent file is a file corresponding to the first interface object at which the first gesture operation is directed.
When a first gesture operation directed at a first interface object is detected, the user terminal generates a second interface object corresponding to the first interface object, that is, the second interface object also corresponds to the to-be-sent file. The second interface object further displays information about the to-be-sent file. The information about the to-be-sent file may include a file name, digest, recorded time, and thumbnail, and a file size.
The specific form of the second interface object may be the same as or different from the form of the first interface object. For example, when the first interface object is a thumbnail of a picture, the second interface object may be the thumbnail of the picture, or may also be a profile of the picture. When the first interface object is a name plus an icon of a document, the second interface object may include information about a digest of the document.
Preferably, for a first interface object and a second interface object that correspond to one same to-be-sent file, the second interface object includes more information about the file as  compared with the first interface object, that is, the second interface object can provide more detailed information about the file to a user and can more intuitively help the user to determine whether to send the file.
Preferably, the second interface object specifically may be a floating layer that displays the information about the to-be-sent file. The floating layer (also referred to as a popup layer) may float on the interactive interface, may be a webpage, or may be a closeable window.
Preferably, the second interface object may be set to being closed according to an instruction of a user, or may also be set to being hidden automatically upon exceeding of a predetermined time. The specific implementation manners of the present disclosure are not limited thereto.
Preferably, if the first interface object and the second interface object are both thumbnails of a file, the area of the second interface object is greater than that of the first interface object.
Preferably, the second interface object is located in the center of the interactive interface.
Preferably, while the second interface object is generated, second prompt information may also be displayed in the interactive interface, to prompt a user how to perform a second gesture operation.
Step S14: Detect a second gesture operation directed at the second interface object.
When the user terminal generates the second interface object, a position of the second interface object on the touch screen is recorded, and the user terminal may determine, by detecting coordinates of a gesture operation, whether the gesture operation is directed at the second interface object.
The second gesture operation may include: touching the second interface object on the touch screen and sliding in a predetermined direction during the touch. That is, a user presses the second interface object and slides it in the predetermined direction by using any suitable object or accessory such as a finger or a stylus, and then releases it. It may also be understood as that a user continuously touches the touch screen by using any suitable object or accessory such as a finger or a stylus and a sliding track formed after the continuous touch satisfies a predetermined sliding track, where the predetermined sliding track starts from the second interface object and ends in a predetermined area of the interactive interface. The predetermined area may be set different  according to different interfaces. The specific implementation manners of the present disclosure are not limited thereto.
Step S15: Send the to-be-sent file to a target terminal in response to the second gesture operation.
When the second gesture operation directed at the second interface object is detected, the user terminal 100 sends the to-be-sent file to the target terminal. The target terminal may be the server 200, or may also be another user terminal or client.
Assuming that the target terminal is the server, the user terminal 100 may send a file sending request to the server 200, where the file sending request may include information (including a name and a size) about a file corresponding to the second interface object. When the server 200 responds to the request, the user terminal 100 sends the file corresponding to the second interface object to the server, or sends the file to the server 200 after processing it.
Assuming that the target terminal is another user terminal, the user terminal 100 may send a file sending request to the target user terminal. When the target user terminal responds to the request, the user terminal 100 sends a file to the another user terminal directly, or may also use the server to forward a file to the target user terminal.
Assuming that the target terminal is a client, the user terminal 100 may send a file sending request to the server 200, where the file sending request may include information such as an account of the target client. The server 200 may send the file sending request to the target client. When the target client responds to the request, the user terminal 100 may send a file to the target client directly, or may use the server to forward a file to the target client.
A plurality of files can be sent by repeatedly performing steps S12 to S15 in this way until the user exits the interactive interface. Alternatively, step S11 may be performed again to load a new first interface object in the interactive interface and then steps S12 to S15 are performed repeatedly.
As compared with the existing technology, according to the method for sending a file provided in this embodiment, when a first gesture operation directed at one of first interface objects is detected, a second interface object is generated, where the second interface object displays information about a to-be-sent file, so that a user may decide, according to the information in the second interface object, whether to send the file; and when a second gesture operation directed at the second interface object is detected, a user terminal sends the to-be-sent file to a target terminal. In one aspect, the user can determine, while browsing the information about the file, whether to  send the file. In another aspect, a file selected by the user is sent first, each file is sent independently, and it is unnecessary to wait the user to finish ticking of all to-be-sent files and perform sending at a time. Therefore, the problems of network congestion and slow speed caused by sending of a plurality of files at a time can be prevented.
Refer to FIG. 4, which shows a schematic flowchart of a method for sending a file provided in another embodiment of the present invention.
In this embodiment, the method for sending a file includes:
Step S201: Receive a file presentation instruction triggered by a user, where the file presentation instruction includes a file storage path.
Step S202: Acquire information about a file in the storage path.
Step S203: Determine whether a quantity of files in the storage path is greater than a predetermined quantity.
If the quantity of files in the storage path is greater than the predetermined quantity, perform step S204: Load a predetermined quantity of first interface objects to an interactive interface of a touch screen for presentation, where each of the first interface objects corresponds to one file in the storage path.
If the quantity of files in the storage path is not greater than the predetermined quantity, perform step S205: Load first interface objects corresponding to all files in the file storage path to an interactive interface of a touch screen for presentation.
Step S206: Detect a first gesture operation directed at any first interface object in the plurality of first interface objects.
Step S207: Generate a second interface object in response to the first gesture operation, where the second interface object corresponds to the first interface object at which the first gesture operation is directed and displays information about a to-be-sent file, where the to-be-sent file is a file corresponding to the first interface object at which the first gesture operation is directed.
Step S208: Detect a second gesture operation directed at the second interface object.
Step S209: Send the to-be-sent file to a target terminal in response to the second gesture operation.
A plurality of corresponding files in the interactive interface can be sent by repeatedly performing steps S206 to S209 in this way until the user exits the interactive interface.  Alternatively, a new first interface object may be loaded in the interactive interface and then steps S206 to S209 are performed repeatedly.
To further describe the method for sending a file provided in the embodiments of the present invention, the description is made below with reference to FIG. 5 to FIG. 8 by using an application example. It is assumed that an application scenario of this application example is that a user A of an instant messaging client #1 sends a picture to a friend B thereof. In this application example, the first interface object may be a thumbnail of a picture, the second interface object may be a floating layer that displays a thumbnail, the first gesture operation is long-pressing the first interface object (thumbnail) , and the second gesture operation is pressing the second interface object (floating layer) , sliding it upwards in the interactive interface, and then releasing it.
In this application example, the user A may open a friend list of the instant messaging client #1, select the target friend B from the friend list, and enter a window C for performing a session with the friend B. When the user taps a relevant button of sending a file to the friend B, the session window C may be like that shown in FIG. 5, which shows file types for selection of the user. When the user A selects picture, the instant messaging client #1 in the user terminal receives a file presentation instruction, where the file presentation instruction includes a picture storage path. The user terminal acquires information about a picture in the storage path, where the information about the picture may include a quantity of pictures in the storage path, and a name, and a recorded time, picture content, and a picture size of each picture.
The user terminal compares the quantity of pictures in the storage path with a predetermined quantity. If the quantity of pictures in the storage path is greater than the predetermined quantity, a predetermined quantity of thumbnails are loaded to the interactive interface of the touch screen for presentation. Each thumbnail corresponds to one picture in the storage path. If the quantity of pictures in the storage path is less than or equal to the predetermined quantity, thumbnails corresponding to all pictures in the storage path are loaded to the interactive interface of the touch screen for presentation. The predetermined quantity refers to a quantity of pictures that can be presented by the interactive interface.
As shown in FIG. 6, it is assumed that an interactive interface 60 of a touch screen can present 9 pictures. When the quantity of pictures in the storage path exceeds 9, thumbnails of the first 9 pictures may be loaded to the interactive interface for presentation. If the quantity of pictures in the storage path is 7, thumbnails of the 7 pictures are loaded to the interactive interface 60 for presentation.
The user terminal detects whether any one of the 9 thumbnails shown in FIG. 6 is long-pressed. If it is detected that the user continuously touches one of the thumbnails by using any suitable object or accessory such as a finger or a stylus, duration of the continuous touch exceeds predetermined duration, and a track formed after the continuous touch is a point, a floating layer corresponding to the thumbnail is generated. As shown in FIG. 7, if the user A long presses a thumbnail P1 in FIG. 6, a floating layer P2 corresponding to the thumbnail P1 is generated in the interactive interface 60. The floating layer P2 has an area greater than that of the thumbnail P1 and is located in the center of the interactive interface. In this way, the user A can view content in the picture more clearly.
If the user A does not want to send the picture and wants to continue to browse another thumbnail, the user A may directly operate the another thumbnail. If the user A wants to send the picture to the friend B, the user terminal sends the picture displayed by the floating layer P2 to a client corresponding to the friend B as long as the user touches the floating layer P2 by using any suitable object or accessory such as a finger or a stylus and forms an upward sliding track during the touch.
As shown in FIG. 8, a corresponding animation effect may be further added in the sending process, so as to present the file sending process more vividly. The user A still can stay in the interactive interface 60 to continue to browse other pictures for sending.
It may be understood that FIG. 5 to FIG. 8 are only exemplary. The specific implementation manners of the present disclosure are not limited by the specific design of the interactive interface.
As compared with the existing technology, according to the method for sending a file provided in this embodiment, when a first gesture operation directed at one of first interface objects is detected, a second interface object is generated, where the second interface object displays information about a to-be-sent file, so that a user may decide, according to the information in the second interface object, whether to send the file; and when a second gesture operation directed at the second interface object is detected, a user terminal sends the to-be-sent file to a target terminal. In one aspect, the user can determine, while browsing the information about the file, whether to send the file. In another aspect, a file selected by the user is sent first, each file is sent independently, and it is unnecessary to wait the user to finish ticking of all to-be-sent files and perform sending at a time. Therefore, the problems of network congestion and slow speed caused by sending of a plurality of files at a time can be prevented.
The following describes apparatus embodiments of the present disclosure. For details that are not described in the apparatus embodiments, reference may be made to the corresponding method embodiments above.
Refer to FIG. 9, which shows a structural block diagram of an apparatus for sending a file provided in an embodiment of the present invention and configured to implement the method provided in the foregoing embodiments. Referring to FIG. 9, the apparatus 30 includes:
an interface presentation module 31, configured to present a plurality of first interface objects in an interactive interface of a touch screen, where each first interface object in the plurality of first interface objects corresponds to a different file;
first detection module 32, configured to detect a first gesture operation directed at any first interface object in the plurality of first interface objects;
a first responding module 33, configured to generate a second interface object in response to the first gesture operation, where the second interface object corresponds to the first interface object at which the first gesture operation is directed and displays information about a to-be-sent file;
second detection module 34, configured to detect a second gesture operation directed at the second interface object; and
a second responding module 35, configured to send the to-be-sent file to a target terminal in response to the second gesture operation. Further, the second responding module 35 may also be configured to process the file and send the processed file to the target terminal.
Further, the first gesture operation may include: long-pressing or tapping the first interface object on the touch screen.
Further, the second gesture operation may include: touching the second interface object on the touch screen and sliding in a predetermined direction during the touch.
Further, the file may be, for example, a picture. The first interface object is a thumbnail of the picture. The second interface object may be, for example, a floating layer. The floating layer displays the picture and the area of the floating layer is greater than that of the thumbnail. Preferably, the second interface object is located in the center of the interactive interface.
The above modules may be implemented by using software code. In this case, the above modules may be stored in the memory 102. The above modules may also be implemented by using hardware, for example, an integrated circuit chip.
For the specific process of implementing the respective functions of the functional modules of the apparatus 30 for sending a file in this embodiment, refer to specific content of the embodiments shown in FIG. 1 to FIG. 8. Details are not described again herein.
As compared with the existing technology, according to the apparatus for sending a file provided in this embodiment, when a first gesture operation directed at one of first interface objects is detected, a second interface object is generated, where the second interface object displays information about a to-be-sent file, so that a user may decide, according to the information in the second interface object, whether to send the file; and when a second gesture operation directed at the second interface object is detected, a user terminal sends the to-be-sent file to a target terminal. In one aspect, the user can determine, while browsing the information about the file, whether to send the file. In another aspect, a file selected by the user is sent first, each file is sent independently, and it is unnecessary to wait the user to finish ticking of all to-be-sent files and perform sending at a time. Therefore, the problems of network congestion and slow speed caused by sending of a plurality of files at a time can be prevented.
Refer to FIG. 10, which shows a structural block diagram of an apparatus for sending a file provided in an embodiment of the present invention and configured to implement the method provided in the foregoing embodiments. Referring to FIG. 10, the apparatus 40 includes: an interface presentation module 41, a first detection module 42, a first responding module 43, a second detection module 44, and a second responding module 45.
Different from the apparatus 30, in this embodiment, the interface presentation module 41 includes:
an instruction receiving unit 411, configured to receive a file presentation instruction triggered by a user, where the file presentation instruction includes a file storage path;
an information acquisition unit 412, configured to acquire information about a file in the storage path; and
loading unit 413, configured to load, according to the information about the file, a first interface object corresponding to the file in the storage path to an interactive interface of a touch screen for presentation.
In this embodiment, the information about the file includes a quantity of files, and the loading unit 413 includes a determining subunit 4131, a first loading subunit 4132, and a second loading subunit 4133, where
the determining subunit 4131 is configured to determine whether the quantity of files in the storage path is greater than a predetermined quantity;
the first loading subunit 4132 is configured to load, when the quantity of files is greater than the predetermined quantity, first interface objects corresponding to all files of a predetermined quantity of files to the interactive interface of the touch screen for presentation, where a quantity of the first interface objects is equal to the predetermined quantity; and
the second loading subunit 4133 is configured to load, when the quantity of files is less than or equal to the predetermined quantity, first interface objects corresponding to all files in the file storage paths to the interactive interface of the touch screen for presentation.
The above modules may be implemented by using software code. In this case, the above modules may be stored in the memory 102. The above modules may also be implemented by using hardware, for example, an integrated circuit chip.
For the specific process of implementing the respective functions of the functional modules of the apparatus 40 for sending a file in this embodiment, refer to specific content of the embodiments shown in FIG. 1 to FIG. 8. Details are not described again herein.
As compared with the existing technology, according to the apparatus for sending a file provided in this embodiment, when a first gesture operation directed at one of first interface objects is detected, a second interface object is generated, where the second interface object displays information about a to-be-sent file, so that a user may decide, according to the information in the second interface object, whether to send the file; and when a second gesture operation directed at the second interface object is detected, a user terminal sends the to-be-sent file to a target terminal. In one aspect, the user can determine, while browsing the information about the file, whether to send the file. In another aspect, a file selected by the user is sent first, each file is sent independently, and it is unnecessary to wait the user to finish ticking of all to-be-sent files and perform sending at a time. Therefore, the problems of network congestion and slow speed caused by sending of a plurality of files at a time can be prevented.
Refer to FIG. 11, which shows a structural block diagram of a user terminal provided in an embodiment of the present invention and configured to execute the method for sending a file. The user terminal 50 includes a touch screen 51 and an apparatus 52 for sending a file. The apparatus 52 for sending a file may be configured to: present a plurality of first interface objects in an interactive interface of the touch screen, where each first interface object in the plurality of first interface objects corresponds to a different file; detect a first gesture operation directed at any first  interface object in the plurality of first interface objects; generate a second interface object in response to the first gesture operation, where the second interface object displays information about a to-be-sent file, where the to-be-sent file is a file corresponding to the first interface object at which the first gesture operation is directed; detect a second gesture operation directed at the second interface object; and send the to-be-sent file to a target terminal in response to the second gesture operation. For the specific process of implementing functions by the apparatus 52 for sending a file, refer to specific content described in the embodiments shown in FIG. 1 to FIG. 10. Details are not described again herein.
It should be noted that the embodiments in this specification are all described in a progressive manner. Description of each of the embodiments focuses on differences from other embodiments, and reference may be made to each other for the same or similar parts among respective embodiments. The apparatus embodiments are substantially similar to the method embodiments and therefore are only briefly described, and reference may be made to the method embodiments for the associated part.
It should be noted that the relational terms herein such as first and second are used only to differentiate an entity or operation from another entity or operation, and do not require or imply any actual relationship or sequence between these entities or operations. Moreover, the terms "include" , "comprise" , and any variants thereof are intended to cover a non-exclusive inclusion. Therefore, in the context of a process, method, object, or apparatus that includes a series of elements, the process, method, object, or apparatus not only includes such elements, but also includes other elements not specified expressly, or may include inherent elements of the process, method, object, or apparatus. Unless otherwise specified, an element limited by "include a/an... " does not exclude other same elements existing in the process, the method, the article, or the apparatus that includes the element.
A person of ordinary skill in the art may understand that all or some of the steps of the foregoing embodiments may be implemented by using hardware, or may be implemented by a program instructing relevant hardware. The program may be stored in a computer readable storage medium. The storage medium may be a read-only memory, a magnetic disk, an optical disc, or the like.
The above descriptions are merely preferred embodiments of the present invention, and are not intended to limit the present disclosure in any form. Although the present disclosure has been disclosed above through the preferred embodiments, the embodiments are not intended to limit the present disclosure. A person skilled in the art can make some equivalent variations, alterations  or modifications to the above-disclosed technical content without departing from the scope of the technical solutions of the present disclosure to obtain equivalent embodiments. Any simple alteration, equivalent change or modification made to the above embodiments according to the technical essence of the present disclosure without departing from the content of the technical solutions of the present disclosure shall fall within the scope of the technical solutions of the present disclosure.

Claims (19)

  1. A method for sending a file, applied to a user terminal, the user terminal comprising a touch screen, and the method comprising:
    presenting, by the user terminal, a plurality of first interface objects in an interactive interface of the touch screen, each first interface object in the plurality of first interface objects corresponding to a different file;
    detecting a first gesture operation directed at any first interface object in the plurality of first interface objects;
    generating a second interface object in response to the first gesture operation, the second interface object displaying information about a to-be-sent file, the to-be-sent file being a file corresponding to the first interface object at which the first gesture operation is directed;
    detecting a second gesture operation directed at the second interface object; and
    sending the to-be-sent file to a target terminal in response to the second gesture operation.
  2. The method for sending a file according to claim 1, wherein the first gesture operation comprises: long-pressing or tapping the first interface object on the touch screen.
  3. The method for sending a file according to claim 1, wherein the second gesture operation comprises: touching the second interface object on the touch screen and sliding in a predetermined direction during the touch.
  4. The method for sending a file according to claim 1, wherein the file is a picture and the first interface object is a thumbnail of the picture.
  5. The method for sending a file according to claim 4, wherein the second interface object is a floating layer displaying the picture and the area of the floating layer is greater than that of the thumbnail.
  6. The method for sending a file according to claim 1, wherein the second interface object is located in the center of the interactive interface.
  7. The method for sending a file according to claim 1, wherein the step of presenting, by the user terminal, a plurality of first interface objects in an interactive interface of the touch screen comprises:
    receiving a file presentation instruction triggered by a user, wherein the file presentation  instruction comprises a file storage path;
    acquiring information about a file in the storage path; and
    loading, according to the information about the file, a first interface object corresponding to the file in the storage path to the interactive interface of the touch screen for presentation.
  8. The method for sending a file according to claim 7, wherein the information about the file comprises a quantity of files, and the step of loading a first interface object corresponding to the file in the storage path to the interactive interface of the touch screen for presentation comprises:
    determine whether the quantity of files in the storage path is greater than a predetermined quantity;
    loading, if the quantity of files in the storage path is greater than the predetermined quantity, a predetermined quantity of first interface objects to the interactive interface of the touch screen for presentation, wherein each of the first interface objects corresponds to one file in the storage path; and
    loading, if the quantity of files in the storage path is not greater than the predetermined quantity, first interface objects corresponding to all files in the file storage path to the interactive interface of the touch screen for presentation.
  9. The method for sending a file according to claim 1, wherein the step of sending the to-be-sent file to a target terminal comprises:
    processing the file and sending the processed file to the target terminal.
  10. An apparatus for sending a file, running in a user terminal, the user terminal comprising a touch screen, and the apparatus comprising:
    an interface presentation module, configured to present a plurality of first interface objects in an interactive interface of the touch screen, each first interface object in the plurality of first interface objects corresponding to a different file;
    a first detection module, configured to detect a first gesture operation directed at any first interface object in the plurality of first interface objects;
    a first responding module, configured to generate a second interface object in response to the first gesture operation, the second interface object displaying information about a to-be-sent file, the to-be-sent file being a file corresponding to the first interface object at which the first gesture operation is directed;
    a second detection module, configured to detect a second gesture operation directed at the second interface object; and
    a second responding module, configured to send the to-be-sent file to a target terminal in response to the second gesture operation.
  11. The apparatus for sending a file according to claim 10, wherein the first gesture operation comprises: long-pressing or tapping the first interface object on the touch screen.
  12. The apparatus for sending a file according to claim 10, wherein the second gesture operation comprises: touching the second interface object on the touch screen and sliding in a predetermined direction during the touch.
  13. The apparatus for sending a file according to claim 10, wherein the file is a picture and the first interface object is a thumbnail of the picture.
  14. The apparatus for sending a file according to claim 13, wherein the second interface object is a floating layer displaying the picture and the area of the floating layer is greater than that of the thumbnail.
  15. The apparatus for sending a file according to claim 10, wherein the second interface object is located in the center of the interactive interface.
  16. The apparatus for sending a file according to claim 10, wherein the interface presentation module comprises:
    an instruction receiving unit, configured to receive a file presentation instruction triggered by a user, wherein the file presentation instruction comprises a file storage path;
    an information acquisition unit, configured to acquire information about a file in the storage path; and
    a loading unit, configured to load, according to the information about the file, a first interface object corresponding to the file in the storage path to the interactive interface of the touch screen for presentation.
  17. The apparatus for sending a file according to claim 16, wherein the information about the file comprises a quantity of files, and the loading unit comprises a determining subunit, a first loading subunit, and a second loading subunit, wherein
    the determining subunit is configured to determine whether the quantity of files in the storage path is greater than a predetermined quantity;
    the first loading subunit is configured to load, when the quantity of files is greater than the predetermined quantity, first interface objects corresponding to all files of a predetermined quantity of files to the interactive interface of the touch screen for presentation, wherein a quantity of the first interface objects is equal to the predetermined quantity; and
    the second loading subunit is configured to load, when the quantity of files is less than or equal to the predetermined quantity, first interface objects corresponding to all files in the file storage paths to the interactive interface of the touch screen for presentation.
  18. The apparatus for sending a file according to claim 10, wherein the second responding module is further configured to process the file and send the processed file to the target terminal.
  19. A user terminal, comprising a touch screen and an apparatus for sending a file, the apparatus for sending a file being configured to:
    present a plurality of first interface objects in an interactive interface of the touch screen, each first interface object in the plurality of first interface objects corresponding to a different file;
    detect a first gesture operation directed at any first interface object in the plurality of first interface objects;
    generate a second interface object in response to the first gesture operation, the second interface object displaying information about a to-be-sent file, the to-be-sent file being a file corresponding to the first interface object at which the first gesture operation is directed;
    detect a second gesture operation directed at the second interface object; and
    send the to-be-sent file to a target terminal in response to the second gesture operation.
PCT/CN2015/077743 2014-04-29 2015-04-29 Method and apparatus for sending file and user terminal WO2015165393A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410176929.XA CN105094649A (en) 2014-04-29 2014-04-29 File sending method, file sending device and user terminal
CN201410176929.X 2014-04-29

Publications (1)

Publication Number Publication Date
WO2015165393A1 true WO2015165393A1 (en) 2015-11-05

Family

ID=54358180

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/077743 WO2015165393A1 (en) 2014-04-29 2015-04-29 Method and apparatus for sending file and user terminal

Country Status (2)

Country Link
CN (1) CN105094649A (en)
WO (1) WO2015165393A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113467684A (en) * 2021-07-19 2021-10-01 交互未来(北京)科技有限公司 File transmission method and device, storage medium and electronic equipment
CN114416267A (en) * 2022-01-26 2022-04-29 维沃移动通信有限公司 Information processing method and device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402560A (en) * 2010-09-17 2012-04-04 腾讯数码(天津)有限公司 Method and system for commenting pictures in personal dynamic messages of SNS (social networking service) community
CN103440247A (en) * 2013-07-19 2013-12-11 张佳佩 Method and device for sending photos

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102566805A (en) * 2010-12-17 2012-07-11 英华达(南京)科技有限公司 File transmission method and communication system with file transmission function
CN103577089A (en) * 2012-08-10 2014-02-12 中兴通讯股份有限公司 File transmission method and touch screen terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402560A (en) * 2010-09-17 2012-04-04 腾讯数码(天津)有限公司 Method and system for commenting pictures in personal dynamic messages of SNS (social networking service) community
CN103440247A (en) * 2013-07-19 2013-12-11 张佳佩 Method and device for sending photos

Also Published As

Publication number Publication date
CN105094649A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
US9594496B2 (en) Method and apparatus for playing IM message
US10659678B2 (en) Mobile terminal and method for controlling the same
US10171645B2 (en) Information transmitting method, device and system, and storage medium
JP6214812B2 (en) Transfer processing method and apparatus
EP2868065B1 (en) Apparatus and method for selection of a device for content sharing operations
EP3380927B1 (en) Method, apparatus, and mobile terminal for screen mirroring
WO2015169188A1 (en) Method, apparatus, and system for loading webpage application program
US9912660B2 (en) Apparatus for authenticating pairing of electronic devices and associated methods
US20150256352A1 (en) Method and device for sharing content between different terminals
EP3413184A1 (en) Mobile terminal and method for controlling the same
US20140379824A1 (en) Apparatuses and methods for web page sharing
WO2016026270A1 (en) Method and apparatus for transmitting pictures
US20180239511A1 (en) Mobile terminal and control method therefor
WO2014206037A1 (en) Apparatuses and methods for web page sharing
US11122109B2 (en) Method for sharing information, electronic device and non-transitory storage medium
CN107239527A (en) web access method and device
KR20140099837A (en) A method for initiating communication in a computing device having a touch sensitive display and the computing device
WO2015039517A1 (en) Multimedia file search method, apparatus, and terminal device
US10601763B2 (en) Method and apparatus for generating and sending a two-dimensional code in a message
US20130282686A1 (en) Methods, systems and computer program product for dynamic content search on mobile internet devices
WO2015165393A1 (en) Method and apparatus for sending file and user terminal
US20150286361A1 (en) Single gesture video capture and share
KR20170019248A (en) Mobile terminal and method for controlling the same
WO2017107543A1 (en) Information input method and apparatus
KR102144587B1 (en) Apparatus and method for editing display information in an electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15785721

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 06.04.2017)

122 Ep: pct application non-entry in european phase

Ref document number: 15785721

Country of ref document: EP

Kind code of ref document: A1