FileRequestSaveToFile Method |
Namespace: Aceoffix
![]() |
---|
The maximum size allowed for a request, which includes uploaded files, is 4 MB, by default. Maximum request size can be specified in the Machine.config or Web.config file in the maxRequestLength attribute of the httpRuntime Element (ASP.NET Settings Schema) element. The maximum request size for a specific page can be specified using the location Element (ASP.NET Settings Schema) element in a Web.config file. |
The following code example demonstrates how to save the document that are uploaded by AceoffixCtrl to the specified folder on the Web server's local disk.
![]() |
---|
In order to display all the possible exception messages when you debug your code, do not use try...catch statements in SaveFilePage. When an exception is thrown, AceoffixCtrl will show the exception dialog box. |
protected void Page_Load(object sender, EventArgs e) { Aceoffix.FileRequest freq = new Aceoffix.FileRequest(); string strFileName = freq.FileName; string strFileExtName = freq.FileExtName; int iFileSize = freq.FileSize; // The document will be saved to the disk. freq.SaveToFile(Server.MapPath("doc/") + strFileName); // Once you saved document, please call this method finally. freq.Close(); }