Upload images to collections
Let's talk about images.
If you want to centralize various images, it's just like a collection in yacs. We talk some time ago about zip usefullness. Maybe we could send collection of images (or files) in a single zip to be extracted in the appropriate collection, image or file directory.
<?php
$zip = new ZipArchive;
if ($zip->open('test.zip') === TRUE) {
$zip->extractTo('/my/destination/dir/');
$zip->close();
echo 'ok';
} else {
echo 'failed';
}
?>
Actually, the development is on-going... Associates will be able to upload single files or entire archive in collections, with automatic extract of archive content.
The ZipArchive function is included in PHP 5.2, what about the older versions ? This will not work if the hosting service doesn't add this function ?
If this solution works, can i use this to make some restore functions for the data backups ?
Zip archives does'nt work for upload a skin ! I have an error message because the function of Zip extraction is not implemented (Php 5.1.4). I think that will be the same for a lot of people.