Re: Can I limit the upload size of all files ?

  •  12-29-2009, 5:08 PM

    Re: Can I limit the upload size of all files ?

    yakar:
    thenk you .
     
    but the part :
          count+=files.length;
           alert("you selected "+count+" files");
           alert("total size" + size);  
           if(size>200*1024*1024)
          {
                  alert("the maximum alowed size of all the file is 200M ");
          }
     
    dont show to me never .
     
    and i need to not alow to upload the file if the size of all the files move the 200 mega , how can i do it ?
     
    thenk you . :)
     
    Please try the following property:
     

    Uploader.MaxSizeKB Property

    Gets or sets the maximum allowed size of the file, in KB.


    Example Code

    1. <?php require_once "phpuploader/include_phpuploader.php" ?>   
    2. <html>   
    3. <body>   
    4.         <form id="form1" method="POST">   
    5.             <?php   
    6.                 $uploader=new PhpUploader();   
    7.                 $uploader->Name="myuploader";   
    8.                 $uploader->MaxSizeKB=1024;   
    9.                 uploader->Render();   
    10.             ?>   
    11.         </form>   
    12. </body>   
    13. </html>  

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View Complete Thread