We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38787
    • 74 Posts
    My default install of Gallery seems to be doubling up on the assets folder (see attached).

    The setting for gallery.files_path is:
    [[++assets_path]]gallery/


    I'm not sure how to get it to upload to assets/gallery and not assets/assets/gallery.

    Update: Gallery 1.6.2 on MODX 2.2.14
      • 38787
      • 74 Posts
      OK I think I know what's going on. I fiddled with the media source and system settings and figured out that Gallery is concatenating both the Media Source (assets/files/gallery) and the gallery.files_path setting (assets/files/gallery) and uploading my files into:

      /assets/files/gallery/assets/files/gallery/


      I'm wondering what would happen if I should empty one of those settings.

      Update (a working solution):

      • Empty both the gallery.files_path and gallery.files_url system settings.
      • Create a new File System (not Gallery Albums) Media Source that points to your desired folder.
      • Set the gallery.mediaSource setting to use the above Media Source.

      Now, files will upload to their correct location, and extraneous Album records will not be created in the DB.
      [ed. note: atmmarketing last edited this post 9 years, 11 months ago.]