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.
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" />
and then
<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.
Solution is:
change config
move old media files to new path
rename the relative url of all old media to the new url (in DB or
using the MediaService
Upload Media files to Folder Extend
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..
Remove the virtual root parameter and then add the following two new parameters
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
Ben
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 :
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.Solution is:
MediaService
HTH Simone
is working on a reply...