Skip to content

MaxFileSize and client validation message before upload to server #535

Description

@itg-assistant

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions