How to download multiple files at the same time by django

in my project needs to achieve similar to the network disk to select multiple files (or click select all) to download multiple files, for a single file I currently practice is to directly use the FileResponse return way, but multiple files to do a loop due to the first file return after the jump out of the views ended, so can only download the first file in the multiple files. Is there any way to solve this problem? Thank you. -sharp-sharp-sharp problem description

Mar.18,2022

feels that it is more reliable for the server to package the file into a file.
or the client performs a for loop and try to download it with Ajax.


mainly because they are all large files, the packing method is not ideal. The js approach is possible, but I still want to know if django itself has the ability to do so.

Menu