TFS Top Tip #6 - Setting the Maximum Attachment Size for Work Items

| 1 Comment

By default, the maximum attachment size for attachments to work items in Team Foundation Server is 4Mb.  It is handy that this feature exists because people may accidentally attach massive files when they should really be attaching something a little smaller.  However – for some people 4Mb is just not enough and they want more (or even less).

To do this, you can use one of the WIT Web services that isn’t exposed via the object model.  The easiest way is to log on to the Team Foundation Server as an administrator and then fire up the following in Internet Explorer:-

http://localhost:8080/WorkItemTracking/v1.0/ConfigurationSettingsService.asmx?op=SetMaxAttachmentSize

In the “maxSize” box, enter the required size in bytes.  The maximum size for MaxSize is 2Gb, but you probably want to keep it smaller than that unless you really need people attaching VPC images to your work items :-)   Note that this setting is applied server wide (across all Team projects).  See MSDN Help for more information (and thanks to Mohammad Iqubal for posting a link to the help in the MSDN Forums).

1 Comment

I used this tip to set the attachment size to 10 MB using 10485760 as the value in the Invoke textbox. I then clicked on invoke & then a new browser page was displayed with nothing in it.

I did log into the TFS server machine as a member of the adminstrators group.

Am I supposed to restart any services or reboot the server? I tried rebooting once but the max attachment size was still being referenced as 4MB on the attachment tab screen when I went into the TFS webpage & attempted to attach a 8 MB file to a bug work item. On my attempt, I got an error that the attachment size was exceeded.

Any clues?

Leave a comment

Archives

Creative Commons License
This blog is licensed under a Creative Commons License.