Switches to canonical root_dirname reference for file uploads.