preserve vital information when uploading a document