Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 asp .net 文件上传控件,有没有办法在页面加载时用文件填充它?
添加新文件时,它必须是强制性的,但如果编辑文件详细信息,则应保留原始文件或允许您选择新文件
不,因为文件上传会上传本地文件。您无法从服务器修复路径,因为 a)您不知道该文件是否会存在于客户端上,并且 b)它不安全,因为它允许从客户端上传任意文件。
你只想做这样的事情:
if FilesAreUploaded { editFiles(uploadedFiles) }