Bug #12975: Immediately save attachment, so we can report error if attachment data cannot be saved locally to VFS backend

Use the temporary upload file as needed during the initial upload access
to eliminate the need to create another temporary file