New to Kendo UI for jQueryStart a free 30-day trial

Use the Compact UI Mode of the Upload

Environment

ProductProgress® Kendo UI® Upload for jQuery
Operating SystemWindows 10 64bit
Visual Studio VersionVisual Studio 2017
Preferred LanguageJavaScript

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