getSelectedAttachments

Loads up the currently selected attachments. It uses the attachmentsPickerMode to know which attachments to use - files or images.

It maps all files to a list of Attachment objects, based on their type.