Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
782 views
in Technique[技术] by (71.8m points)

后端如何管理文件?

要做一个用户上传文件的库
需求是一个“文件对象”对应一个文件(file),文件名,上传时间,上传用户以及内部的文件路径和名字
数量可能会很大
该如何管理这些文件?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

按年月日命名文件夹,用一个表记录信息
如果文件很多,最好用阿里云OSS


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...