Ser Gar asked 2017-01-13 17:23:24 UTC
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!
Ser Gar asked 2017-01-13 17:23:24 UTC
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!