Skip to main content Help Control Panel

Login   A+   A-

Community «   Le forum «   The development backlog : Vote for new features «  

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'
;
}
?>

Bernard on May 14 2007
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.
GnapZ on May 15 2007
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 ?
GnapZ on May 18 2007
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.

**** 2 rates
Posted by Vinc on May 12 2007, commented by GnapZ on May 18 2007, (popular)