Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi everyone, i want to move Media folder to a another place in IIS and change upload function to upload files to this Folder, and URL auto general by Umbraco is redirect to this Media folder.
I had research and i see Umbraco just support upload Media files to Azure or Amazon, but don't see for a server.
Thank everyone. Sorry about my bad english.
You could try editing ~/Config/FileSystemProviders.config
You want to change this section..
<Provider alias="media" type="Umbraco.Core.IO.PhysicalFileSystem, Umbraco.Core">
<add key="virtualRoot" value="/media/" />
Remove the virtual root parameter and then add the following two new parameters
<add key="rootPath" value="<UNC Path to new media folder>" />
<add key="rootUrl" value="<URL to new media folder>" />
The “rootPath” specifies a Windows filesystem path where Umbraco can save uploaded files. It’s a standard Windows file path (not a URL path).
The “rootUrl” is the URL that Umbraco will prepend to the media filename when rendering pages to browsers.
Hope this helps
I have made the modification to FileSystemProviders.config, but I don't understand what is going on with the key "rootUrl".
Here is my modification of rootPath :
<add key="rootPath" value="\\MACHINE_NAME\sharedfiles" />
<add key="rootUrl" value="???" />
what goes where I have "???" -- I have tried various paths, just the tilde character, etc. I would really appreciate an explanation of the "rootUrl" key works. Thanks !!!
You might have found the solution by now, but I encountered the same problem and wanted to share my solution.
Basically, relative urls are stored in the database in the umbracoPath property of the media item, so if you change the rootUrl property it will only apply to newly uploaded files. Old files will still remain under the old path, so if you move them to the new path, nothing will work anymore.
That why you still see the files you have under the standard /media/ url.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted