validationObject

Configures the validation options for uploaded files.

Example

 <input name="files" id="files" type="file" />
 <script>
	$(document).ready(function() {
    	$("#files").kendoUpload({
        	async: {
            	saveUrl: "http://my-app.localhost/save",
				removeUrl: "http://my-app.localhost/remove"
        	},
        	validation: {
            	allowedExtensions: [".jpg"],
            	maxFileSize: 900000,
            	minFileSize: 300000
        	}
    });
});
</script>

validation.allowedExtensionsArray

A list of the file extensions which are allowed for upload. Recognizes entries of both .type and type values.

Example

<input name="files" id="files" type="file" />
<script>
    $(document).ready(function() {
        $("#files").kendoUpload({
            async: {
                saveUrl: "http://my-app.localhost/save",
				removeUrl: "http://my-app.localhost/remove"
            },
            validation: {
                allowedExtensions: [".jpg"],
            }
        });
    });
</script>

validation.maxFileSizeNumber

Defines the maximum file size in bytes allowed for upload.

Example

<input name="files" id="files" type="file" />
<script>
    $(document).ready(function() {
        $("#files").kendoUpload({
            async: {
                saveUrl: "http://my-app.localhost/save",
				removeUrl: "http://my-app.localhost/remove"
            },
            validation: {
                maxFileSize: 900000
            }
        });
    });
</script>

validation.minFileSizeNumber

Defines the minimum file size in bytes allowed for upload.

Example

<input name="files" id="files" type="file" />
<script>
    $(document).ready(function() {
        $("#files").kendoUpload({
            async: {
                saveUrl: "http://my-app.localhost/save",
				removeUrl: "http://my-app.localhost/remove"
            },
            validation: {
                minFileSize: 300000
            }
        });
    });
</script>