Edit this page

directory Boolean (default: false)

Enables the selection of folders instead of files. When the user selects a directory, its entire content hierarchy of files is included in the set of selected items. The directory setting is available only in browsers which support webkitdirectory.

When set, the property allows you to select only folders for upload. Files cannot be selected. In browsers which do not support the directory feature, the behavior falls back to the default file selection.

Example

<div>
    <input name="files" id="files" type="file" />
    <div class="dropZoneElement">Drag and drop file here</div>
</div>
<script>
    $(document).ready(function() {
        $("#files").kendoUpload({
            async: {
                saveUrl: "http://my-app.localhost/save",
                removeUrl: "http://my-app.localhost/remove"
            },
            directory: true
        });
    });
</script
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy