Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails. Choose folder instead of file field tag

I have an application which imports some data from .xslx files. It works fine with single files and multiple files as well. I use file_field_tag functionality for these purposes. But since I have subfolders there I'd like to permit users to choose specific folder to process all files in it including subfolders. As I understand file_field_tag doesn't have any possibility to do it.

How can I deal with it?

like image 794
Mikhail Chuprynski Avatar asked Nov 01 '22 11:11

Mikhail Chuprynski


1 Answers

You are correct. HTML does not support uploading of Folders. Plugins, like Awesome Uploader may provide the functionality you are looking for. They typically zip your folder then upload the zip file.

like image 124
t_itchy Avatar answered Nov 08 '22 08:11

t_itchy