ASP.NET 图片上传

发布于 2024-10-07 00:14:48 字数 89 浏览 0 评论 0原文

我想在我的网络应用程序中上传客户的图像。我是否应该遵循任何命名约定来命名文件(例如,我可以存储 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

拿命拼未来 2024-10-14 00:14:48

如果允许每个客户不超过一张图像,那么直观地使用系统为该客户使用的任何唯一标识符(无论是名称、友好 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文