By default, the attachment size of TFS work Items is limited to 4MB. We can adjust this limit up to 2GB by invoking the Web service provided by TFS.
The prerequisite for adjusting this setting is that you need permission from the TFS Application layer administrator. Here's a look at how to query the current settings and modify the default settings.
1. Log in to the TFS application-tier server with an administrator account, open this login address:http://localhost:8080/tfs/defaultcollection/WorkItemTracking/v1.0/ Configurationsettingsservice.asmx
2. Click on the first link (getmaxattachmentsize) to query the current settings
The following results will be shown, and the highlighted part is the current setting of 4MB:
<?xml version= "1.0" encoding= "UTF-8"?>
<long xmlns= "http://schemas.microsoft.com/TeamFoundation/2005/06/WorkItemTracking/ Configurationsettingsservice/03 ">4194304</long>
3. Click the second link to set/modify the attachment size limit, enter the new limit size in the popup window (bytes), click on the "Call" button
Reference:
Https://msdn.microsoft.com/en-us/library/ms400780.aspx
How to modify the work item attachment size limit in TFS 2013