In my Rails controller I have the line
send_file("#{Rails.root}/test/image.png")
I'd like my web page to have a textbox, that the user can fill in a directory such as C:/OldPictures/All/
, and then when the user clicks a link which invokes the controller, it also reads the directory in the textbox, and downloads the file image.png
to the specified directory. Can I make it so?