Re: Number of uploaded files

  •  12-16-2010, 1:54 AM

    Re: Number of uploaded files

    Hi jerry2,
     
    question 1
     
    Please try the example below
     
     
    <%@  language="VBScript" %>
    <!-- #include file="aspuploader/include_aspuploader.asp" -->
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Form - Single File Upload </title>
        <link href="demo.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <div class="demo">
            <h2>
                Single File Upload</h2>
            <p>
                A basic sample demonstrating the use of the Upload control (Allowed file types:
                <span style="color: red">jpg, gif, png, zip</span>).</p>
            <%
                Dim uploader
                Set uploader=new AspUploader
                uploader.Name="myuploader"
                uploader.MaxFilesLimit=1
                uploader.MaxSizeKB=102
                uploader.InsertText="Upload File (Max 10M)"
                uploader.AllowedFileExtensions="*.jpg,*.png,*.gif,*.zip"
                uploader.SaveDirectory="savefiles"
                
                uploader.render()
            %>
            <br />
            <br />
            <input type="button" value="clear picture and enable upload again" onclick="enableUpload()" />

            <script type='text/javascript'>
         function CuteWebUI_AjaxUploader_OnPostback()
        {
            var hidden=this;
            hidden.internalobject.insertBtn.disabled='disabled';
         }
         function enableUpload()
         {
            var uploader = document.getElementById("myuploader");
            uploader.internalobject.insertBtn.disabled='';
            uploader.reset();
         }
            </script>

        </div>
    </body>
    </html>
     
     
    2. For now, asp uploader does not support multiple uploaders on the same page
     
    Regards,
     
    ken
     
     
     
View Complete Thread