General developer forum

Serving multiple files to users

 
Picture of Osmar Briones
Serving multiple files to users
 

https://docs.moodle.org/dev/File_API#Serving_files_to_users

This page instructs about serving a single file to user. ¿How can I serve multiple files in a zip to user?

 
Average of ratings: -
Davo
Re: Serving multiple files to users
Core developersParticularly helpful MoodlersPlugin developers

Use some method on the server to zip the file (the zip_packer class in lib/filestorage would be your best bet here), then follow the instructions for serving this single zip file back to the users.


 
Average of ratings: Useful (1)