I am developing a project in which I have to use upload file. I am using ASP.NET MVC3(C#) as frontend and SQL Server 2008 R2 as backend. Now for uploading a file I have to options:
1) Uploading a file to specific directory of project and storing its path into the database.(before uploading file to that directory I have to change file name as current timestamp so all files will have unique name.)
2) Uploading file direct into the database.
Which option will be better? My project upload files in KBs(pdf/word/images).