Add the following code to 'YOUR_THEME.js' file and clear the cache
* 'file' module should be enabled.
* 'file' module should be enabled.
(function ($) { Drupal.behaviors.autoUpload = { attach: function (context, settings) { $('form', context).delegate('input.form-file', 'change', function() { $(this).next('input[type="submit"]').mousedown(); }); } }; })(jQuery);
Comments
Post a Comment