A client of mine came with the following demand:
- Add the option to upload a file to the server
- Save the file id as a guid in database
I followed this answer- so the file upload is working(to a specific location on the server)
http://stackoverflow.com/questions/5193842/file-upload-asp-net-mvc-3-0
What i don't familiar with is his second demand:
Save the file id as a guid in database
- What does it mean?
- Why does the file need a guid id in the database?
- What should I do in extra to the post I linked to?(security check, extension check?)