I have my RoR deployed on Linux server. My application has “browse file”
section where it selects the file from users machine (e.g. -
D:/kw/loaddata/New/abc.txt) and passes it to convertTo method
But the path is not being resolved. It throws me an error:
Errno::ENOENT (No such file or directory - D:/kw/loaddata/New/abc.txt):
any input on how do I reolve this? I’m chaging the windows to fwd slash
in my method. I guess I can access file on windows from linux box.
inputfilename = params[:inputfilename].gsub("\","/")