Writing an email file attachment to the filesystem

I’m having some difficulty writing an email file attachment to the

I have the following line in my /etc/aliases

webname: “| /usr/bin/ruby /home/webname/webapp/script/runner
‘AssetSubmitHandler.receive STDIN.read’”

Everything works up to this point, it picks up the email and tries to
process it.

When I go to write the file using (in my AssetSubmitHandler class):


I get the following error:

`initialize’: Permission denied -
/home/webname/public_html/assets/1153841511581165.gif (Errno::EACCES)

pwd: /home/webname/www
ls -la: drw-rw-rw- 2 webname webname 4096 Jul 18 15:17 assets/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs