Split unsaved attachment into stream and file-based classes