ASP.NET 图片上传
我想在我的网络应用程序中上传客户的图像。我是否应该遵循任何命名约定来命名文件(例如,我可以存储 cust_id.jpg 或 cust_name.jpg)。哪个更好?
i want to upload images of customer in my web application. is there any naming convention should i follow to name the files(e.g; i can store cust_id.jpg or cust_name.jpg). which is better ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果允许每个客户不超过一张图像,那么直观地使用系统为该客户使用的任何唯一标识符(无论是名称、友好 ID 或 GUID)都是有意义的。这样,就可以更直接地识别它与客户数据的关系。
If each customer is to be permitted no more than one image then it would make sense intuitively to use whatever unique identifier the system otherwise uses for that customer, be it a name or a friendly ID or a GUID. That way it's more immediately recognizable for its relation to the customer data.