Wednesday, March 30, 2016

MaxFileSize="1048576" MaxFileSizeErrorText="Fail!"

These settings inside a ValidationSetting tag inside a dx:ASPxUploadControl tag will restrict the size of an upload to 1MB (1024 bytes x 1024), but they do not handle a scenario in which the limit is so exceeded that the control cannot make sense of just how big the image is. It feels like DevExpress does an upload and then decides if the upload is too big, and that, of course, only works for the modestly big. Dan Aykroyd not John Candy.

No comments:

Post a Comment