Working on upload attachments logic.