This is a javascript library that utilizes PHP and jQuery to create a draggble and droppable area that zips all of the containing files and downloads them from the browser.
v 1.1:
- added ability to remove files. To make this work on your server you need to change the filePath variable inside of the javascript file to the path where your downloads are stored.
v 1.0:
original version
You can set up ZipDrop in just a few easy steps.
-
Make sure your server has ZipArchive support. This comes with the compilation of PHP
-
Upload all files as they are to your host.
-
Edit the image links in index.php to your liking, alway specifying a thumbnail and surround it with an tag that links to the original file.
Example (as seen in the default index.php) :
You can edit this to your liking as such:
Note: Your files don't need to be jpg files as i did in my example. You can use any filetype like .exe .mpg .mp3 ... you name it.
It's easy:
-
your file thumbnails go in the "assets/files/thumbs/" folder
-
your downloads go in the "assets/files/downloads/" folder
-
The CSS is located in assets/styles