OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.RestoreDirectory = true;
把openFileDialog的RestoreDirectory 属性设为true。上传多媒体在多媒体文件所在目录下就不会生成temp文件夹。