I have a scenario where I need to upload a document on a button click, I have used the below URL to upload the document:


When I check "Overwrite Existing Files" and try to upload the existing files or new files, it will upload without any issue, but when I uncheck the "Overwrite Existing Files" and I try to upload new document which is not already in the document library, the document got uploaded without any issue.

Incase if I upload the already existing document in the library, the page keeps on loading for so long without taking us to Edit metadata page.

Any help would be helpful, thanks in advance.

1 Answer 1


I'm wondering what you think should happen? You're trying to overwrite a file but don't click the button that allows an overwrite to occur.

What you're seeing does seem to be by design - in that the upload doesn't occur and you just get a page that essentially times out (without an error message, which is useless!)

It looks like you'll need to create your own custom Upload.aspx page if you want it to perform more than the current form.

Here's an answer to a somewhat similar question - Modification of '_layouts/upload.aspx'

Here's a couple more links that should also help you out;

How to create custom SP .aspx form

How to deploy custom forms

Hope that helps.

Your Answer

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

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