Max-file-post-size: Stsadm property (Office SharePoint Server)
Updated: August 21, 2008
Applies To: Office SharePoint Server 2007
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.
stsadm -o setproperty
-propertyvalue <Number of megabytes (MB)>
The syntax for the getproperty operation is:
stsadm -o getproperty
You can substitute -pn for -propertyname and -pv for -propertyvalue.
The following table shows possible values.
Gets or sets the name of the property.
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.
Typically, a path to the URL of the Web application, in the form http://server_name.
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.
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 http://server_name