def drag_and_drop_file_field(method, content_or_options = nil, options = {}, &block)
      if block_given?
        options = content_or_options if content_or_options.is_a? Hash
        drag_and_drop_file_field_string(method, capture(&block), options)
      else
        drag_and_drop_file_field_string(method, content_or_options, options)
      end
    end
def drag_and_drop_file_field(method, content_or_options = nil, options = {}, &block)
      if block_given?
        options = content_or_options if content_or_options.is_a? Hash
        drag_and_drop_file_field_string(method, capture(&block), options)
      else
        drag_and_drop_file_field_string(method, content_or_options, options)
      end
    end
Returns a file upload input tag wrapped in markup that allows dragging and dropping of files
 onto the element.

 @author Ian Grant
 @see file:README.md#Usage Usage section of the README

 @param [Symbol] method The attribute on the target model to attach the files to.
 @param [String] content The content to render inside of the drag and drop file field.
 @param [Hash] options A hash of options to customise the file field.

 @option options [Boolean] :disabled If set to true, the user will not be able to use this
   input.
 @option options [Boolean] :mutiple If set to true, *in most updated browsers* the user will
   be allowed to select multiple files.
 @option options [String] :accept If set to one or multiple mime-types, the user will be
   suggested a filter when choosing a file. You still need to set up model validations.
 @option options [Integer] :size_limit The upper limit on filesize to accept in bytes.
   Client-side validation only. You still need to set up model validations.

 @return [String] The generated file field markup.

 @example
   # Accept only PNGs or JPEGs up to 5MB in size:
   form.drag_and_drop_file_field :images, nil, accept: 'image/png, image/jpeg',
                                               size_limit: 5_000_000
 @example
   # Pass custom content string:
    form.drag_and_drop_file_field :images, '<div>Drag and Drop!</div>', accept: 'image/png'
 @example
   # Pass a block of content instead of passing a string
   <%= form.drag_and_drop_file_field(:images, accept: 'image/png') do %>
     <strong>Drag and Drop</strong> PNG files here or <strong>click to browse</strong>
   <% end %>