New to Kendo UI for jQuery? Download free 30-day trial

Use the Compact UI Mode of the Upload

Environment

Product Progress Kendo UI Upload for jQuery
Operating System Windows 10 64bit
Visual Studio version Visual Studio 2017
Preferred Language JavaScript

Description

How can I hide the selected files for upload from the user interface and render the button for the upload confirmation only in the Kendo UI Upload?

Solution

The following example demonstrates how to hide the selected files for upload from the user interface and render only the Select files button without additional UI elements in the Upload.

  <style>
     #wrapper {
       display: inline-block;
     }

     .k-upload {
       border-width: 0;
     }

     .k-upload .k-dropzone {
       padding: 0;
     }

     .k-upload-status-total {
       display: none;
     }
   </style>

   <div id="wrapper">
           <input name="files" id="files" type="file" />
         </div>

     <script>
       $(document).ready(function() {
         $("#files").kendoUpload({
           async: {
             saveUrl: "save",
             removeUrl: "remove"
           },
           showFileList: false
         });

         //Removing the "Drop files here message"
         $("#files").closest(".k-upload").find(".k-dropzone em").remove();
       });
     </script>

See Also

In this article