Hi, I am using the Upload module to attach files. Currently I have a web form where users can upload some mandatory fields and can attach multiple files. Once submitted, the form can be seen in another section along with the uploaded files.
I am trying to find a way where once I submit the form with the file attachments, It will automatically zip the files.
For example suppose I filled in teh web form and attached 2 files namely attachment1.txt and attachment2.txt
Once I hit save and go to the other section I should be able to see amonst the list of uplaoded file for that form as:
attachment1.txt
attachment2.txt
formname.zip (which contains attachmetn1.txt and attachment2.txt )
I am running the drupal site from a linux server which has the zip function and since the any uploaded files are stored in the drive not database (in /sites/default/files or something I set earlier) I just need to make Upload file use the linux's ZIP function and somehow link that zip files to that form i submitted.
Anyone knows how I can edit the upload.module to make it do this? It's just running the bash script from teh source code and hooking it up with the form.
The bash script syntax is:
zip zipname file1 file2 ....(as many as u want to ziP)
Kind regards