Fixed bug when adding attachments to design doc that uses a directory-based app structure.