Problem with MaxSizeKB

Last post 04-17-2009, 10:42 AM by dgburton. 2 replies.
Sort Posts: Previous Next
  •  04-17-2009, 7:27 AM 51200

    Problem with MaxSizeKB

    Hi,
     
    I have the uploader defined as follows:
     
                        <CuteWebUI:Uploader
                            ID="upload1"
                            runat="server"
                            MultipleFilesUpload="true"
                            ProgressCtrlID="Panel1"
                            ProgressTextID="Label1"
                            ProgressPanelWidth="180"
                            InsertText="Choose Files"
                            NumFilesShowCancelAll="1"
                            ManualStartUpload="true"
                            InsertButtonID="btnChooseFiles"
                            MaxFilesLimit="100"
                            MaxFilesLimitMsg="You may upload up to 100 files at once.">
                            <ValidateOption MaxSizeKB="2097152" />
                        </CuteWebUI:Uploader>
     
    ... to have a 2GB file size limit. But event when users upload files that are much smaller I get the following alert:
     
     
     
    Could you let me know what I'm doing wrong?
     
    Many thanks,
     
    db
  •  04-17-2009, 8:31 AM 51203 in reply to 51200

    Re: Problem with MaxSizeKB

    Hi,
     
    Please use 2097151 ,
     
    because 2097152 * 1024 will overflow and get -2147483648
     
    Regards,
    Terry
     
  •  04-17-2009, 10:42 AM 51208 in reply to 51203

    Re: Problem with MaxSizeKB

    That fixed it! - thanks!
View as RSS news feed in XML