I've managed to upload a file using the code below

<a onclick="openDialog(); return false;" href="#">Open Attach File</a>
    <script type="text/javascript">
        function openDialog() {
            var options= {
                url: "<blahblahblah>/_layouts/Upload.aspx?List={blahblahblah}&RootFolder=",
                title: "Attach File",

My question is how do I change the filename retroactively?

1 Answer 1


In library, take one extra column say as "test" and then check upload file. It will redirect to other page in which you got all properties in edit mode. You can change title from there.

  • Thank you Sam for replying. Am hoping you can expand a little more. I am 2weeks old into Sharepoint, and struggling. How do you redirect to another page? How do you get Upload.aspx to return you a result parameter? Appreciate
    – ngzhongcai
    Feb 9, 2017 at 3:45
  • Do you know how to create column? If yes then just create new column and name as "test". If not then check this link. support.office.com/en-us/article/… Feb 9, 2017 at 3:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.