ChangeUploadEnvironment.aspx Font Size:
Source Code Viewer Files: ChangeUploadEnvironment.aspx   ChangeUploadEnvironment.aspx.vb   ExampleExceptionHandler.aspx   ExampleExceptionHandler.aspx.vb   
Config File: Web.Config   
CSS File: ExamplesStyle.css   
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="ChangeUploadEnvironment.aspx.vb" Inherits="EAUploadExamples.ChangeUploadEnvironment"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
    <HEAD>
        <title>Chanche upload environmet on the runtime</title>
        <link rel="stylesheet" href="ExamplesStyle.css">
        <script type="text/javascript" src="JSCore.js"></script>
        <script type="text/javascript">
            // Get an unique identifier that was used for creating an Upload class instance.
            var UploadId = '<% = UploadIdentifier %>';
            
            function doUpload(formObj)
            {
                // Add an unique identifier to query string. EAUpload retrieves this value and
                // uses it as an unique identifier of an Upload class instance. So, now we can get an access 
                // to required Upload object by this id from any page within the application.
                // Function "RefreshQueryString" is defined in JSCore.js file.
                formObj.action = RefreshQueryString(formObj.action, UploadId);
                
                return true;
            }            
        </script>
    </HEAD>
    <body>
        This example demonstrates how to preset a specific environment for the single 
        upload process.
        <br>
        <br>
        All uploaded files will be stored to the "UploadedFiles" folder that is located 
        in the root directory of an examples.<br>
        You should grant write access to "UploadedFiles" folder to the ASP.NET process 
        identity(typically {MACHINE}\ASPNET on IIS 5<BR>
        or Network Service on IIS 6).
        <br>
        <br>
        Presetted parameters for expected upload:
        <br>
        Maximum request size: 10240 KB (10MB);
        <br>
        Allowed file types: .jpg, .jpeg, .gif, .png;
        <br>
        <br>
        <form id="Form1" method="post" runat="server" enctype="multipart/form-data" onsubmit="return doUpload(this);">
            <table style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none">
                <tbody>
                    <tr>
                        <td>
                            <input type="file" name="UploadingFile1" size="40">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <input type="file" name="UploadingFile2" size="40">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <input type="file" name="UploadingFile3" size="40">
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <br>
                            <asp:Button id="Button1" runat="server" Width="80px" Text="Upload"></asp:Button>
                        </td>
                    </tr>
                </tbody>
            </table>
            <br>
            <asp:Label id="lblResponse" runat="server"></asp:Label>
        </form>
        <hr>
        <a href="default.aspx" title="All examples">Other examples</a>
        <p>
            Used files: Bin\EasyAlgo.EAUpload.dll, web.config, 
            ChangeUploadEnvironment.aspx, ChangeUploadEnvironment.aspx.vb, 
            ExamplesStyle.css [Optional]
        </p>
    </body>
</HTML>