Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kåre Mai 45 posts 283 karma points
    Aug 24, 2024 @ 15:03
    Kåre Mai
    0

    Change location of TEMP folder

    Hi,

    On our web host, the TEMP folder is stored in a location that we do not have access to through our FTP.

    How do i change the location of the TEMP folder? I can't find any documentation at docs.umbraco.com that explains how this location can be changed to something else.

    The only thing that i could find was to set the following:

    "Hosting": { "LocalTempStorageLocation": "EnvironmentTemp" }, "Examine": { "LuceneDirectoryFactory": "TempFileSystemDirectoryFactory"

    But not anything about setting the location.

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Aug 25, 2024 @ 06:34
    Huw Reddick
    0

    Seems odd you don't have FTP access to it since it lives in your web space!

  • Kåre Mai 45 posts 283 karma points
    Aug 26, 2024 @ 07:58
    Kåre Mai
    0

    No, the temp folder does not live in ones web space.

    If you run your project locally in VS then the location is in your user folders appdata:

    /c: /users /<username> /appdata /local /temp /examineindexes /5b72dbbea6c7e44208bba19b1fde6d6f /externalindex
    

    And in our live environment it lives in this location, which is also outside our webroot:

    /c: /windows /temp /examineindexes /ab8632778e6988a4e41e4bc08a866183 /externalindex
    

    And i can't find any documentation explaining how to change this! It is very important to change this location to be inside our web root as the ExternalIndex keeps breaking down every third month or so and right now i have to contact our support of the web hosting company and get them to delete the folder everytime that happens as i can't do it myself.

  • Kåre Mai 45 posts 283 karma points
    Aug 26, 2024 @ 08:07
    Kåre Mai
    100

    I found this:

    https://docs.umbraco.com/umbraco-cms/v/13.latest-lts/reference/configuration/examinesettings

    And according to this the default behaviour is to use the TEMP folder in ones web space.

    I looked through my appsetting files and found that it was set to SyncedTempFileSystemDirectoryFactory. I changed this to Default and now it works.

Please Sign in or register to post replies

Write your reply to:

Draft