• Resolved adamsnyder

    (@adamsnyder)


    Hello,

    I am currently running into an issue with importing photos from a folder.
    I have two main directories/folders on my server [photos and web]. I do not wish to have duplicate photos in the web folder. From others replies I have attempted to implant the code below and it has not seemed to work.

    /** Change Import Folder path */
    define( 'NEXTGEN_GALLERY_IMPORT_ROOT', dirname( __FILE__ ) . '/'  );
    define( 'NGG_IMPORT_ROOT', dirname( __FILE__ ) . '/' );

    Best,

    Adam

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @adamsnyder – The code snippet only opens up the scope of the folders you can import from, to reduce the number of duplicates based on these external folders you should be using the option to leave the images where there are when importing.

    See this: http://take.ms/gHl0p

    Thanks!

    – Cais.

    Thread Starter adamsnyder

    (@adamsnyder)

    @photocrati – TO be a bit more specific; when I added that code snippet to the wp-config.php file it did not open up the scope. It kept the scope at the original directory [web>wordpress>wp-content].
    I should add that I have restarted WordPress and server to reload the wp-config.php file.

    I do understand checking that box though once I can open up the scope.

    Best,

    Adam

    Plugin Contributor photocrati

    (@photocrati)

    @adamsnyder – Are the folders outside of the /wp-content/ folder available to be read (as in their permissions allow for them to be read as well as write given the premise you are putting forward)?

    – Cais.

    • This reply was modified 9 years, 3 months ago by photocrati.
    Thread Starter adamsnyder

    (@adamsnyder)

    @photocrati – I have been checking/double checking all the permissions in the web & photo directory and the permissions are all read/write.

    Still kinda stumped. With the above code would it be advised to change the code to:

    /** Change Import Folder path */
    define( 'NEXTGEN_GALLERY_IMPORT_ROOT', dirname( __FILE__ ) . '/photo'  );
    define( 'NGG_IMPORT_ROOT', dirname( __FILE__ ) . '/photo' );

    Best,

    Adam

    Plugin Contributor photocrati

    (@photocrati)

    @adamsnyder – You will likely be limiting the access although otherwise I do not see any significant issues with your suggested change.

    – Cais.

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

The topic ‘Import Photos from Server’ is closed to new replies.