I would like to programatically change the property "Name in URL" for files. I have a situation where you manually can name the files regardless of what the original filename is (via a form). The first name given to the file becomes the name in the url. If I update/change the filename I would also like to change the URL. Can't seem to find the propertyname for this though. Thankful for help!
I'm pretty sure you can just cast a variable as your page and create a writeableclone from that and then access page variables such as url, then save to ContentRepository
Edit: oops i thought you were editing pages
What kind of files?
"Name in URL" maps to the RouteSegment property normally.
Yes, that works :) Thanks...
file1.RouteSegment = somename + extension;