MaxSizeKB Confusing Error Message

Last post 10-26-2012, 7:43 AM by Kenneth. 2 replies.
Sort Posts: Previous Next
  •  10-25-2012, 11:56 AM 75055

    MaxSizeKB Confusing Error Message

    Hoping I'm just missing something here.  I'm basically using the mvc_cs Large_File_Upload action as my base. Building my MvcUploader like this

     

                 var uploader = new MvcUploader(System.Web.HttpContext.Current)
                                   {
                                       UploadUrl = Response.ApplyAppPathModifier("~/UploadHandler.ashx"),
                                       Name = "upload",
                                       AllowedFileExtensions = AllowedExtensions,
                                       InsertText = "Select a file to upload",
                                       MaxSizeKB = 20000000
                                   };

     

    Getting an error message when uploading larger files

     "30 EXHBIT FABRICATION_120727.zip cannot be uploaded!

    File size (435 MB) is too large. The maximum file size allowed is set to: 19.1 GB"

     

    First, that error makes no sense, 435 MB is far less than 19.1 GB! Unless my math is wrong.

     

    Second, this error displays *after* the entire upload has taken place. That seems counter-productive, the error should display before the upload occurs.

    What am I doing wrong?

  •  10-25-2012, 12:27 PM 75056 in reply to 75055

    Re: MaxSizeKB Confusing Error Message

    If I do not set MaxSizeKB, it displays this error "File size (435 MB) is too large. The maximum file size allowed is set to: 0 B"
  •  10-26-2012, 7:43 AM 75068 in reply to 75056

    Re: MaxSizeKB Confusing Error Message

    Hi FusionImaging,

     

    Please do not set the  MaxSizeKB large than 2 gb, it will get problem. Please try 2000000.

     

    Regards,

     

    Ken 

View as RSS news feed in XML