Title: Zip upload problem
Last modified: February 21, 2017

---

# Zip upload problem

 *  Resolved [DoubleSixx](https://wordpress.org/support/users/doublesixx/)
 * (@doublesixx)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/zip-upload-problem-2/)
 * Hello,
 * I just tried to upload a small zip file that contained three directories.
 * I dragged and dropped when the upload was complete and I clicked the link to 
   edit the album, I discovered only the first four pictures in the very first directory
   of the zip file were uploaded.
 * Nggallery ignored the following 18 pictures in two other directories.
 * Old nggallery pre photocrati would upload the entire zip file.

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/zip-upload-problem-2/#post-8836731)
 * [@doublesixx](https://wordpress.org/support/users/doublesixx/) – Our upload feature
   sets in general do not support a folder structure although thanks for the feedback
   on what NextGEN Legacy did offer previously.
 * Going forward, the best approach to using “zip” files to upload images is to 
   only include the images (not necessarily the folder) in the archive as they will
   only be added to a single gallery.
 * Thanks, again!
 * – Cais.
 *  Thread Starter [DoubleSixx](https://wordpress.org/support/users/doublesixx/)
 * (@doublesixx)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/zip-upload-problem-2/#post-8836781)
 * [@cais](https://wordpress.org/support/users/cais/),
 * All legacy version prior to the new framework. I believe any before 2.x.
 * Just more difficult. Before just upload a large zip. I need the directories, 
   I save the zip on the server. Often times my galleries have several hundred pictures,
   and can be several hundred megs in size, and I update galleries later too.
 * I use to upload the zip and use the url path to populate the gallery.
 * No real easy way to continue maintaining galleries quickly.
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/zip-upload-problem-2/#post-8836859)
 * [@doublesixx](https://wordpress.org/support/users/doublesixx/) – You can still
   upload the zip file and unzip on the server (provided you have the appropriate
   access) and then use the import feature set under Gallery > Add Gallery / Images…
   you can then retain the folder structure by using the leave images in their original
   location option although you will still need to import one folder at a time.
 * Thanks!
 * – Cais.
 *  Thread Starter [DoubleSixx](https://wordpress.org/support/users/doublesixx/)
 * (@doublesixx)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/zip-upload-problem-2/#post-8836869)
 * [@cais](https://wordpress.org/support/users/cais/),
 * I retest now. You had mentioned this to me before and it didn’t work. I don’t
   remember the problem. I’ll test soon, thanx.
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/zip-upload-problem-2/#post-8836871)
 * [@doublesixx](https://wordpress.org/support/users/doublesixx/) – Sure thing …
   let us know what you find.
 * – Cais.
 *  Thread Starter [DoubleSixx](https://wordpress.org/support/users/doublesixx/)
 * (@doublesixx)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/zip-upload-problem-2/#post-8840584)
 * [@cais](https://wordpress.org/support/users/cais/)
 * The import folder won’t work. Can’t access any directories on the server outside
   the WordPress installation.
 * You really should check the legacy versions. Many great features. Including those
   in the current build(s) will improve the plugin.
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/zip-upload-problem-2/#post-8841581)
 * [@doublesixx](https://wordpress.org/support/users/doublesixx/) – By default the
   import functionality does not extend outside of the WordPress /wp-content/ folder
   although there are ways to work around that.
 * Have you tried adding the following to your theme’s functions.php file:
 *     ```
       define( 'NEXTGEN_GALLERY_IMPORT_ROOT', ABSPATH );
       define( 'NEXTGEN_GALLERY_IMPORT_ROOT', dirname( __FILE__ ) . '/' );  
       define( 'NGG_IMPORT_ROOT', dirname( __FILE__ ) . '/' );
       ```
   
 * Thanks!
 * – Cais.
 *  Thread Starter [DoubleSixx](https://wordpress.org/support/users/doublesixx/)
 * (@doublesixx)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/zip-upload-problem-2/#post-8841974)
 * [@cais](https://wordpress.org/support/users/cais/),
 * Just tried, the code broke the site.
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/zip-upload-problem-2/#post-8845053)
 * [@doublesixx](https://wordpress.org/support/users/doublesixx/) – Sorry to read
   that happened, obviously that code will need to be removed from where you added
   it although I do not have any other suggestions to make as we have not had any
   reports of those pieces of code causing any issues in the past.
 * Thanks!
 * – Cais.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Zip upload problem’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [photocrati](https://wordpress.org/support/users/photocrati/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/zip-upload-problem-2/#post-8845053)
 * Status: resolved