Hi
I think MaxFileSize of UploadControl is validated in client/browser before upload to server.
How to display a message to the client when “file size too large”,
I have this code:
uploadPhoto.CreateControl();
uploadPhoto.AllowedFileTypes = “.png”;
uploadPhoto.MaxFileSize = 25000;
btnSelPicture.Eval(
String.Format(@”
this.uploadButton = Wisej.Core.getComponent(“”id_{0}””);
this.addListener(“”execute””, function(e)
{{
this.uploadButton.upload();
}});”, this.uploadPhoto.Handle));
Thanks in advance!
Hi Ser,
enhancement WJ-7934 has been added to the latest build (1.3.22).
Now you can handle the Error event of an Upload Control and will receive information about the files and their sizes that exceed the MaxFileSize.
The ErrorType in that case is FileTooLarge.
Best regards
Frank
At the moment no. I have added an enhancement request to fire a server event with the list of files skipped.
Please login first to submit.