Hi, I've spent that past several hours trying to dig up some information on how I can save media uploads to a different directory location on disk.
From what I was able to gather, I've used the BeforeSave event handlers to set the "umbracoFile" property value to my new location. However, this does not create a copy at the specified location.
I forgot to mention, the example has downloadable source code that you can look at as well. You need to use the after save event rather than the before save.
How to save media to directory other than /media
Hi, I've spent that past several hours trying to dig up some information on how I can save media uploads to a different directory location on disk.
From what I was able to gather, I've used the BeforeSave event handlers to set the "umbracoFile" property value to my new location. However, this does not create a copy at the specified location.
What am I missing here?
Please help!
If you cange the "umbracoFile" property's value, you'll have to copy the image there yourself...
There's an example of using events to rename the image folders that you should be able to adapt. You can see it here on Umbraco TV: http://umbraco.org/documentation/videos/for-developers/events/friendly-media-item-paths (you need a subscription to view it).
I forgot to mention, the example has downloadable source code that you can look at as well. You need to use the after save event rather than the before save.
Thank you for your help.
I was able to figure it with your help.
is working on a reply...