Abstract:
A method and a terminal device are provided for file processing based on a user interface. The method includes detecting whether an operation command for dragging a file is generated on a user interface. If the operation command for dragging a file is generated, it is detected whether an icon is triggered by dragging the file to the icon. If the icon is triggered, the dragged file is processed by using an external interface function corresponding to the icon.