Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Select directory with HTML input field.
<input type="file" name="files[]" multiple directory webkitdirectory mozdirectory>
Copy link

For Rails do:

file_field_tag 'file', :multiple => true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment