This class can add uploaded files to a ZIP archive.
It can generate HTML for a form to upload a file.
The class can handle the request when a file is uploaded and add it to a ZIP archive in a certain directory.
It can also generate a random file name so the uploaded file in the ZIP archive is unique, in order to avoid overwriting other files in the archive.
The class can also read the list of ZIP archives available in the upload directory, delete a ZIP archive, show a list of all files in each ZIP archive and allow to delete individual files in the archive.
When a site needs to take uploads of large files, it may be convenient to store the uploaded files in some compressed format to save disk space.
This class provides a solution to save space of uploaded files by compacting the files into ZIP archives.
Manuel Lemos