When you are attaching a file to thread don't use # for a file name it will give 404 not found page.

Example

Thanks for the bug report ... will have our sysadmin take a look at this :)

Bug fixed. :)