.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Melody Anderson
Sharad
Eminent IT

Home >> Articles >> SharePoint >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Sharepoint2013: Only Display User Login Name as Notification Dialog Box on UploadEx.aspx

Posted By:Sagar Pardeshi       Posted Date: September 18, 2015    Points: 200    Category: SharePoint    URL: http://www.dotnetspark.com  

In this article we will learn about Sharepoint2013 Only display User Login Name as Notification dialog box on UploadEx.aspx.
 

Scenarios

When we upload the existing document in the Document Library by unchecking the override existing file we get SharePoint OOTB exception saying "A file with the same name already exists and it was last modified by i:o#.w|domain\username."

In this case we have to trim the i:o#.w| which is SID or represents type of authentication used.

Refer below screenshot for clear understanding of requirement. 
Figure 1: Requirement
figure 2: After

Solution

Step 1: Open the sitecollection in browser. Go to SiteSetting -> MasterPage -> Check the selected Site Master Page and System Master Page.
Figure 3: Sitecollection 

Step 2: Open the site in SharePoint Designer. Go to All Files -> _catalog -> masterpage.
Figure 4: Designer

Step 3: Open any one of the selected master page in step 1 in advance mode.

Step 4: Add below script before </head> tag. Check screenshot for reference.
<SharePoint:ScriptLink ID="ScriptLink_CustomUploadpage" name="~sitecollection/Style Library/Scripts/CustomUploadScript.js" runat="server" LoadAfterUI="true" Localizable="false"/>

Figure 5: Screenshot for reference

Step 5: Repeat step 4 for the other master page selected in step 1.

Step 6: Come to browser and open style library by going to site content -> style Library.

Step 7: Upload the CustomUploadScript.js file to script folder in style library. 

Figure 6: Script

Step 8: Test and Verify.

 Subscribe to Articles

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend