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.
我试图找到一种有效的方法来验证用户何时上传 GPX 文件是否有效并包含有效内容(如果可能)。
我将使用 C# ASP Net uploadFile 控件来验证文件扩展名,但是验证内容的适当方法是什么?
根据我的阅读,我可以尝试使用 XML/XSD,但这有点冒险,因为架构可能需要经常更新,或者它可能不适用于某些有效的 GPX 文件。
有没有更好更有效的方法来实现这一目标?