Attachments upload - fix strange issue from error report.