Copied to clipboard

Flag this post as spam?

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


  • Gatis 8 posts 128 karma points
    Feb 15, 2016 @ 14:27
    Gatis
    0

    Azure blob storage to file system

    How to move media without losing data? For now i have already copied media folder from blob storage and modified FileSystemProviders provider to

    <Provider alias="media" type="Umbraco.Core.IO.PhysicalFileSystem, Umbraco.Core">
        <Parameters>
          <add key="virtualRoot" value="~/media/" />
        </Parameters>
      </Provider> 
    

    what should i do next to see old images from local folder?

  • Gatis 8 posts 128 karma points
    Feb 17, 2016 @ 13:09
    Gatis
    100

    Found a solution - need to call sql queries

    update cmsContentXml 
    set xml = cast(replace(cast(xml as nvarchar(max)), '/media/', 'http://YOURWEB/media/') as ntext)
    go
    
    update cmsPropertyData 
    set dataNText = cast(replace(cast(dataNText as nvarchar(max)), '/media/', 'http://YOURWEB/media/') as ntext) 
    go
    

    to update xml data and disable cache in umbracoSettings.config file.

Please Sign in or register to post replies

Write your reply to:

Draft