Log in | Register | Lost password

Bottom
Zip upload without zip extension
  • Posted: 06.10.2005, 01:33
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I integrated the class pclzip.lib.php so that zip-Archives can be uploaded without activated zip extension.

    Simply replace the pnuserapi.php with this one (http://home.arcor.de/grumos/pnuserapi.php) and copy the pclzip.lib.php (available here: http://www.phpconcept.net/pclzip/index.en.php) into the root dir of photoshare.
    Then you have to add this line to the userapi.php of your language folder

    define('_PSZIPSUCCESS', 'Archive successfully imported');

    The changed function extracts the zip archive to the temp dir and adds the images to the chosen album.

    Known issues:

    - No Error Handling
    - No detailled success message which lists all uploaded images
    - There is no support of subalbums - all pictures of the archive are added to the same album




    edited by: bwirmer, Oct 06, 2005 - 02:34 AM

Template courtesy of Designs By Darren.