Make upload attachments working with upload method in topic controller