title: How to use Simple Form and Direct Upload ActiveStorage
body: <p>I'm having a trouble when I try to use Simple Form gem for upload video. I'm using ActiveStorage and local storage for this.
  My form looks like this:</p>
  
  <pre><code>= simple_form_for @film do |f|
    = f.error_notification
    = f.input :title, as: :string
    = f.input :description, as: :string
    = f.input :cover_img, as: :file
  
    = f.input :film_link, as: :file, direct_upload: true
    = f.button :submit
    = link_to 'back', :back, class: 'btn btn-secondary'
  </code></pre>
  
  <p>I've followed instruction on here <a href="https://edgeguides.rubyonrails.org/active_storage_overview.html" rel="nofollow noreferrer">https://edgeguides.rubyonrails.org/active_storage_overview.html</a>
  So I've included js and css files in my app. But that won't work. It looks like there's some troubles with passing <code>direct_upload: true</code> via simple_form.
  I've also find article <a href="https://phase2online.com/blog/2018/10/03/easily-upload-files-with-active-storage-in-rails-5-2/" rel="nofollow noreferrer">https://phase2online.com/blog/2018/10/03/easily-upload-files-with-active-storage-in-rails-5-2/</a> and pull git repo from  <a href="https://github.com/bratta/file-upload-demo" rel="nofollow noreferrer">here</a></p>
  
  <p>An this works on when you'll use form_for on your _form. When I change form to use simple_form gem(instead of form_form use simple_form_for) it won't work.</p>
  
  <p>Anyone have an idea why this is not working please?
  I use ruby 2.6.3 and Rails 5.2.3 and simple_form (5.0.1)</p>