Fix adding attachments on Chrome