I would like to copy the file from my computer to another specified path. The file must be selected by the user using file_field , and the destination is already hardcoded. How can i do this? Thanks.
file_field
I would use FileUtils :: cp , but beware of enumerating paths through ../../<file> . You can use expand_path to do this, and then check to see if the resulting path matches your prison.
../../<file>
Source: https://habr.com/ru/post/892606/More articles:.net MVC functional testing - .netGetting the helpstring attribute applied to C # properties opened through COM interfaces - c #What are the benefits of vertically splitting VS into horizontal splitting? - databaseJavascript naming conventions - javascriptHow to get support "✖", etc. In the Emacs shell buffer? - shellUnit Testing a Custom Attribute Class - c #Original version of XPath Filter 2.0 - javaHow to find out if an FTP file exists using ruby? - ruby | fooobar.comWhat is (otherwise) wrong with using time as a seed to generate random numbers? - securityDataTables, Ajax Pipelining - javascriptAll Articles