Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

(Rails) Uploading Directories

I need to upload multiple files on my website.

But I need not just a form for uploading multiple files, I need to upload whole directories.

How's this possible for the minimalist?

Yours, Joern.

like image 853
Joern Akkermann Avatar asked Jul 19 '11 12:07

Joern Akkermann


1 Answers

According to my somewhat limited knowledge this is not possible, only file transfer is possible, not directories.

Here are some workarounds, based on discussion on Velocity Reviews and another discussion:

  • upload a zip, which you unzip at the server side
  • upload directories over ftp (web page can be a front end to this)
  • upload files one by one

I would go either for zip or ftp. Note: someone might have produced a gem that enables uploading directories (I know nothing of such thing, but I will be happy to find out, if there is).

like image 139
Miki Avatar answered Oct 13 '22 11:10

Miki