I am making a website where people can register/login and upload files (text only) and other people can view them. I have the file upload feature which upload the file to a folder and it automatically saves file information(title, size, uploader etc.) to the database.
Is this the right way to save files using a database? And how would I add keywords to the file type, so I can use it to search by keyword.