• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Upload, Unzip, Get data

Hello everybody, I'm trying to build a webapp.

I need Upload .zip files. Easy, using the File Uploading Class.

Now, Unzip the file. Using the Zip Encoding Class, or http://codeigniter.com/wiki/Unzip/, I didn't test it yet, but this is not the issue.

Now the problem, I want to get the data ($this->upload->data()Wink for each of the files on the .zip.

This can be done? Any idea?


I would create an empty temp directory and then unzip the files to this directory. Then using the File Helper, get a list of the file names. Then again using the File Helper, loop thru these file names and read in the data and do what ever else you want with them.
When done with the files, delete the files and the temp directory.

lmv4321, thanks for your fast response, I'm trying to do something like that now, thanks again.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.