$(document).ready(function() { 
    $('.file_upload_bt .file-upload, .file_upload_bt_cs .file-upload_cs, .file_upload_bt_cs .file_drop_cs, .file_upload_bt .file_drop').click(function(){
           $('.dz-clickable').trigger('click');
      });
    // Dropzone class:
   // var myDropzone = new Dropzone("div#block_upload", {url: "/bids/bid/upload-files", maxFiles: 1});
    Dropzone.options.blockUpload = {
        url: "/bids/bid/upload-files",
        maxFiles: 1,
        addRemoveLinks: true,
        dictRemoveFile: 'Удалить',
        /*accept: function(file, done) {
            $('#file_name').val(file.name);
            done();
        },*/
        success: function(first,response) {
            $('#file_name').val(response);
            $('.file_drop').hide();
            $('.file_drop_cs').hide();
        }
      };
}); 