工作网站(naukri,monsterjob等)如何管理申请人文件? [英] How do job websites(naukri, monsterjob etc) manage applicants documents ?

查看:65
本文介绍了工作网站(naukri,monsterjob等)如何管理申请人文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I am currently in a situation where I've to save Applicants documents in a folder. Suppose if an applicant saves "Resume.txt" then a new entry is made and saved in DB. What if same file is uploaded again(say update "resume" after sometime) ?(currently I'm adding a number after the file and then fetching the latest file, ex : If id_resume.txt already exists then id_resume1.txt will be made and so on. On viewing the document resume1.txt will be opened) How to update the DB accordingly ? So how do other websites manage their document saving viewing and uploading part ?





我尝试过:



有很多代码我显然无法发布。



What I have tried:

There are many codes which I apparently cannot post.

推荐答案

我不担心维护旧文件的存档,除非这是特定要求。如果是,则可以建立要维护的最大旧文件数,以使文件系统服务器上的磁盘使用率保持沉闷。文件很快就会占用繁忙站点上的可用磁盘空间。您可能还希望限制上传到特定文件类型(PDF,DOC,XLSX,ZIP等)和最大大小。
I wouldn't worry about maintaining an archive of older files unless that's a specific requirement. If it is, you can establish a max number of old files to maintain to keep disk usage on the file system server to a dull roar. Files can quickly overwhelm available disk space on a busy site. You may also want to restrict uploads to specific file types (PDF, DOC, XLSX, ZIP, etc) and a maximum size.


可能相同的许多版本控制系统都可以工作。

最基本的方法是:



不要将文件存储在其名称下 - 很可能会有成千上万的人提交文件称为resume.txt或resume.docx - 并且您希望将它们分开。

而是使用GUID作为文件名,并添加一个将UserID链接到teh文件的表他已提交:

Probably the same many versioning systems work.
The most basic way to do it is:

Don't store the file under it's name - it's very likely that thousands of people will submit a file called "resume.txt" or "resume.docx" - and you want to keep them separate.
Instead, use a GUID as the file name, and add a table which links the UserID to teh files he has submitted:
ID         GUID or IDENTITY
UserID     Foreign key to your Users table
FileRef    GUID (the actual file storage name)
FileName   The names as supplied by the user
Submitted  DATETIME or DATETIME2 when the file was submitted

每次提交文件时,都会生成一个新行。

您可以通过查看提交日期来获取每个用户的最新文件,并仍然可以访问早期版本。



有更复杂的系统(将较新的文件存储为与先前版本不同的地方)但如果您不小心它们会变得非常复杂。存储足够便宜,如果需要,您可以随时存档旧版本。

Each time he submits a file, you generate a new row.
You can fetch each users latest file by looking at the Submitted date, and still access earlier versions.

There are more complex systems (where the newer files are stored as differences from previous versions) but they can get very complicated if you aren't careful. Storage is cheap enough, and you can always archive older versions if necessary.


这篇关于工作网站(naukri,monsterjob等)如何管理申请人文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆