I have almost the same question asked there How to change upload folder dynamicly. But I need to change the whole path, not only subpath of "~/Files". How can I do that?
I think you have to change te filesroot property in the .config file to "~/" or otherwhise to "" And then in your view give the path to objectContext