Copied to clipboard

Flag this post as spam?

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


  • Bhushan 7 posts 97 karma points
    Sep 27, 2024 @ 12:58
    Bhushan
    0

    Umbraco 13.4.1 and media folder location

    Hi,

    In our development environment, we are using default media folder location.

    But for Production/Live environment, we have two servers both are using same shared sql server database for umbraco. But for media, when we try to use one common shared location "//networkshare/media", it throws following an exception

     An error occurred while starting the application. DirectoryNotFoundException: \\networkshare\media\ Microsoft.Extensions.FileProviders.PhysicalFileProvider..ctor(string root, ExclusionFilters filters)
    

    We have set this media folder path in appsettings.json file as,

    "Umbraco": {
    "CMS": {
      "Global": {
       "UmbracoMediaPhysicalRootPath": "//networkshare/media"
      }}}
    

    What we are doing wrong ?

    Kindly suggest solution for this problem.

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Sep 30, 2024 @ 08:21
    Huw Reddick
    0

    cany you map the share to a drive or local folder maybe?

  • Bhushan 7 posts 97 karma points
    Sep 30, 2024 @ 09:46
    Bhushan
    0

    For local folder, it is working fine.

    But our requirement is that, we have two server in load balancers which are using common SQL server database for umbraco. and we want to have both server access common share folder for media files.

  • Ayo Adesina 445 posts 1059 karma points
    Sep 30, 2024 @ 13:44
    Ayo Adesina
    0

    Have you considered configuring your application to use Azure blob storage?

  • Bhushan 7 posts 97 karma points
    Oct 08, 2024 @ 04:06
    Bhushan
    100

    Hello All,

    Thanks for your suggestions.

    But shared drive location for media file storage which we are trying are working properly now, just we need to give proper network access permissions to the IIS Application Pool.

    Thank You

Please Sign in or register to post replies

Write your reply to:

Draft