printAlbumZip acts strange

Hi all!

I have added printAlbumZip to template so that viewer can download all images in one zip file! Everything works great but for some albums I got a zip file that is broken and size is only few kB!
I have feeling that albums which are uploaded by ftp - system returns empty zip files. But albums uploaded using admin site - can be downloaded without any problems!!

Does any body else have noticed this?! Maybe any ideas how to solve the problem!?

Thanks!

Janis

Comments

  • acrylian Administrator, Developer
    Depending on the file size of all images within an album and therefore the overall album size your server might not be able to create the zip file. You need to have the server RAM to do so (not the disk space).
  • I had a similar problem so I created a plugin that is able to stream zip-files and doesn't need build them before sending.
    It might help you, too.

    I have to do some more testing though before I'll make it available to the public. But chances are good I'll release it later this weekend. There are some limitations but I'll explain them on release.

    But as you say there maybe only albums affected that are uploaded via ftp. It could be that php has no write access to these folders, which it needs if i remember correctly, as a temporary .zip file is created inside the related album folder.

    But maybe acrylian can confirm this as I'm not sure if those files were created anyways or only with caching enabled.
  • acrylian Administrator, Developer
    @Phase2: Yes, if the persistent archives option is checked the zip archive is save within the album's folder. Otherwise it is created everytime (less efficient obviously).
    Looking forward to your plugin.

    @mrproxy: Maybe there are also other invisible files uploaded via ftp that may cause problems. Maybe take a look.
Sign In or Register to comment.