Improved FileReader class and fixed issue in AttachmentPage