The invention relates to a file downloading method, a device, a storage medium and electronic equipment. The method comprises the steps: in the downloading process of a target file, responding to an obtained downloading interface switching request, switching a first downloading interface for downloading the target file to a second downloading interface for continuously downloading the target file, the first downloading interface is one of a foreground downloading interface and a background downloading interface, and the second downloading interface is the other one of the foreground downloading interface and the background downloading interface; taking file data downloaded by the first downloading interface at this time as a file fragment, and determining index information of the file fragment; storing the index information in a database; after the downloading task of the target file is completed, according to the storage sequence of the index information in the database, the file fragments corresponding to the index information are sequentially read and spliced to obtain the target file, breakpoint resume of the target file is achieved, and downloading resources, downloading time and the like are saved.