refactor AttachmentController.java upload n download