Share via


Max-file-post-size: Stsadm property (Office SharePoint Server)

Applies To: Office SharePoint Server 2007

This Office product will reach end of support on October 10, 2017. To stay supported, you will need to upgrade. For more information, see , Resources to help you upgrade your Office 2007 servers and clients.

 

Topic Last Modified: 2015-03-09

Description

Specifies the maximum allowable size for a single upload of content to any site.

This property is equivalent to the Maximum Upload Size user interface setting that is located on the Web Application General Settings page of the SharePoint Central Administration Web site.

Syntax

stsadm -o setproperty

-propertyname max-file-post-size

-propertyvalue <Number of megabytes (MB)>

[-url https://server_name**]**

The syntax for the getproperty operation is:

stsadm -o getproperty

propertyname max-file-post-size

[-url <https://server_name>]

Note

You can substitute -pn for -propertyname and -pv for -propertyvalue.

Property values

The following table shows possible values.

Name

Value

propertyname

Gets or sets the name of the property.

propertyvalue

The upload size, in megabytes. Content, which can consist of a single file or groups of files, cannot greater than this setting. The default value is 50 megabytes (MB), but this can be changed to any value up to 2 gigabytes (GB) (2047 MB).

For example, if you plan on uploading large movie files with a file size over 50 MB, you would want to increase the value to an appropriate size greater than 50 MB.

url

Typically, a path to the URL of the Web application, in the form http://server_name.

Remarks

If a user tries to upload a file or group of files larger than the value specified by the max-file-post-size property, an error message appears and the user's files are not uploaded.

By default, the max-file-post-size property is set to 50 MB. If you notice performance or scale problems on the client or server, then you may need to adjust this setting to reach your target performance.

Examples

To set the upload size to 200 megabytes, use the following syntax:

stsadm -o setproperty -pn max-file-post-size -pv 200

To view the current setting of the maximum file post size property, use the following syntax:

stsadm -o getproperty -pn max-file-post-size –url https://server_name