File Upload Support in a Web Farm and Web Garden
- 3 minutes to read
This topic describes how to implement file upload functionality in a clustered web environment (also known as a Web Farm or a Web Garden).
A Web Farm hosts a web application on multiple web servers, whereas a Web Garden runs an application on the same server - but in different worker processes. In a Web Garden, each worker process is executed on its own processor - specified by the Internet Information Services (IIS) settings of the server host where the application is deployed.
To implement file upload on a Web Farm or a Web Garden, customize the following settings.
Website Settings
The machineKey element in the web.config file should have the same settings for all websites in a Web Farm or Web Garden. Refer to the following Microsoft article for more information: How To: Configure MachineKey in ASP.NET 2.0.
Web Control Settings
If an instance of a website on a Web Farm/Web Garden uses an individual file system, utilize the following options to specify the file system parts that are shared for all website instances in the clustered web environment.
Use the following settings to configure a temporary folder to store uploaded files.
Use the following settings to configure the folder that is used to store files after upload.
Web Control
Settings
ASPxUploadControl
The UploadControlFileSystemSettings.UploadFolder property is not used by default. It is in effect, however, when the ASPxUploadControl.UploadStorage property is set to “FileSystem”.
ASPxHtmlEditor
Customize the following properties if the ASPxHtmlEditorUploadSettingsBase.UploadStorage property is set to “FileSystem” for a specific dialog.
- ASPxHtmlEditor.SettingsDialogs.InsertImageDialog.SettingsImageUpload.UploadFolder
- ASPxHtmlEditor.SettingsDialogs.InsertAudioDialog.SettingsAudioUpload.UploadFolder
- ASPxHtmlEditor.SettingsDialogs.InsertVideoDialog.SettingsVideoUpload.UploadFolder
- ASPxHtmlEditor.SettingsDialogs.InsertFlashDialog.SettingsFlashUpload.UploadFolder