[Rails] Re: [file_column] saves uploading file with wrong rights?
Jérôme L
eugenol at gmail.com
Tue Jan 10 10:47:15 GMT 2006
On 1/10/06, Sebastian Kanthak <skanthak at gmail.com> wrote:
> I guess your umask is set to something that prevents files to have
> more permissions than 0644. I will include a fix that uses File.chmod
> instead, which should not consider the umask. Until I commit this fix
> you can work around the problem by setting your process' umask to 0002
> before starting rails.
My FreeBSD current umask is set to 0022.
The problem is indeed solved with File.umask 0002 in environment.rb
Waiting for you fix; thank you very very much Sebastian!
More information about the Rails
mailing list