I had a problem with this myself and was helped by Peter.
The problem is that you have to set your attachment directory to the absolute path. I had been using /attachments.
Instead I now use /var/www/tickets/attachments.
Try this and see if that helps (don't forget to set permissions correctly too if you are still having problems).