From: Luis Lavena Date: 2011-01-06T01:55:29+09:00 Subject: Re: filepath in identify for paperclip cygwin On Jan 5, 12:27 pm, "Kasper F." wrote: > Dan Quach wrote in post #889421: > > > > > Here, it uses "C:/users/shinzu" which is totally incorrect for cygwin. > > I also noticed that this is where files were being uploaded to > > temporarily > > > Question: What is the environment variable responsible for uploading > > temporary files like this?  I need to make sure c:/users/shinzu is > > \cygdrive\c\users\shinzu > > > thanks! > > -dan > > I had the same problem, and it took me 3 weeks to solve. > You have to change the temp file path. > In enviroment.rb write: > ENV['TMPDIR'] = '/cygdrive/c/users/shinzu' > Question, are you using cygwin Ruby or native Ruby? because File.expand_path of cygwin will return the proper cygdrive while mixing native RUby with cygwin libraries will not work. -- Luis Lavena