Use fileid instead of url for post attachments

The url for post attachments was not working very well.
This commit fixes the issue by using the fileid and the
conventional file downloading mechanism.