Maximum Size Problem

Last post 10-28-2009, 11:23 AM by Hotwings23. 4 replies.
Sort Posts: Previous Next
  •  10-27-2009, 10:24 AM 56717

    Maximum Size Problem

    I just got thrown into this project at my new job and It is having a problem uploading attachments (with the AJAXUploader) . After much research it apparently is giving me the following error (had to download firebug to see the error since it is ajax) when uploading a file:

    File size ({1}) is too large. The maximum file size allowed is set to: {2}
     
    I tried readjusting the maximum size to something extremely big:

      <VALIDATEOPTION MaxSizeKB="99999999" allowedfileextensions="jpg,gif,tif,pdf" />
     
    When I upload a jpg I named to test.jpg (size: 20 bytes) it gives me a message box saying:
     
     the file size (20 b) is too large. The maximum file size allowed is set to: 4.88 GB
     
    So it sees the correct file size and the correct maximum size but still rejects it. Can anyone please tell me what I am doing wrong?
     
    Thanks.
     
    Tim
  •  10-27-2009, 10:56 AM 56718 in reply to 56717

    Re: Maximum Size Problem

    Tim,
     
    Which version of Ajax Uploader are you using?
     
    Can you try the following code?
     
    1. <%@ Page language="c#"%>  
    2. <%@ Register Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" TagPrefix="CuteWebUI" %>  
    3. <html>    
    4. <head>  
    5. </head>  
    6. <body>  
    7.     <form id="Form1" method="post" runat="server">  
    8.     <CuteWebUI:Uploader runat="server" MultipleFilesUpload="true" ID="Uploader1">  
    9.     </CuteWebUI:Uploader>    
    10.     </form>  
    11. </body>  
    12. </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

  •  10-28-2009, 9:47 AM 56751 in reply to 56717

    Re: Maximum Size Problem

    Hi,
     
    Please set it to ,
     
    MaxSizeKB="2097151"
     
    Regards,
    Terry
     
  •  10-28-2009, 11:23 AM 56752 in reply to 56718

    Re: Maximum Size Problem

    Code worked fine. I forgot to mentioned we are using the

    <CuteWebUI:UploadAttachments runat="server" ManualStartUpload="true" ID="Uploader1"
      InsertText="Select File(s) to Upload" ShowCheckBoxes="False"
                            FileTypeNotSupportMsg="Not a valid type.  Only jpg, gif, tif, and pdf are allowed"
                            UploadProcessingMsg="Processing files.." >
      <VALIDATEOPTION MaxSizeKB="2097151" allowedfileextensions="jpg,gif,tif,pdf" />

     </CuteWebUI:UploadAttachments>
     
    We also had it working until recently. I have tried to change the maxfile. We also have it in a UpdatePanel (yes I tried doing it without the update panel too).
     
    I can give you the whole code if that helps.
  •  10-28-2009, 11:23 AM 56753 in reply to 56751

    Re: Maximum Size Problem

    I tried changing the size that you reccommended to no avail.
View as RSS news feed in XML