Preparing the way for file attachment