The FileuploadServlet class receives file upload requests, and then it uses back end operations that process the request. The file upload servlet must be configured in the btt.xml file.
Example file upload servlet configuration
<servlet> <display-name>FileUploadServlet</display-name> <servlet-name>FileUploadServlet</servlet-name> <servlet-class>com.ibm.btt.cs.ajax.FileUploadServlet</servlet-class> <init-param> <!-- request timeout check duration, in milli-seconds, default value is 20*60*1000 --> <param-name>checkDuration</param-name> <param-value>2000</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>FileUploadServlet</servlet-name> <url-pattern>/FileUploadServlet</url-pattern> </servlet-mapping>
In this example, the checkDuration parameter is specified. The checkDuration parameter specifies the length of time that is required for the file upload servlet to check the file upload request. If, at run time, the length of time that it takes for the file upload servlet to check the request is longer than the value that is specified in the checkDuration parameter, the file upload request times out. The value of the checkDuration parameter can be changed according to the operation environment.