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.
我有一个接受用户上传图片的网站。我想给每个上传的图像一个唯一的名称。我将把图像物理存储在文件系统上,并将图像的文件名保存在我的数据库中。有什么好方法可以做到这一点?
您可以将其命名为由用户 ID 和时间组成的 md5 哈希的子字符串
我看不出有任何理由不在表中使用自动生成的 ID 字段并将其设为文件名。
I have a requirement to pass an IEnumerable<Object> to an MVC view and have the view cast this to a strongly typed object and display it according
IEnumerable<Object>