File.chmod will presumably only work if your Ruby process is being executed
by a user with the required permissions to run chmod in the first place; I
suspect not in this case. Change the permissions on the directory with your
files in so that user can access it, using the shell.


On Mon, Jan 13, 2014 at 12:08 PM, <[email protected]> wrote:

> Hi
>
> I want to change the filename with File.rename but I get "Permission
> denied" eve if I change the file with File.chmod(-777, "path/filename")
>
> I want to do this, to change the name of the image uploaded by Paperclip.
>
> If you have any sugestion or solution, write me.
>
> Thanks.
>
> Darko
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/d0d5aa70-eb57-4a87-8730-61328c44d9fa%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAAb4X%3Dw3eb%2BOiMpW7WC9sH8PBE177fpAABXcnXo76Sg-jMwN-A%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to