Codeigniter - upload a downloaded file to a directory

I am using the latest version of Codeigniter, and I am writing a program about basic file upload and download at http://ellislab.com/codeigniter%20/user-guide/helpers/download_helper.html .

I want to create a system that downloads several files to a directory and stores the file name in the database and the name of the bootloader and will have a function to download links for each file to be downloaded for that particular user. If possible , the system can email an encrypted link to users to download the file. And you can download only a certain time.

I do not know the logic in dynamic files to load. Can someone teach how to do this or what logic can solve this problem. Many thanks!:)

+3
source share
1 answer

For several files you have several alternatives, you can create each field as a user by clicking a button, or use a tag multiplein a tag <input>.

To manage these multiple downloads, you must create your own download library that reads each $_FILES['nameoffield']in a loop foreach, for example, although there are ready-to-use alternatives, such as: https://github.com/nicdev/CodeIgniter-Multiple-File-Upload

, . , .

, , , , , , . , , . , .

+1

All Articles