Topic: How to validate sql file when uploaded

Hello,

   I'm trying to make a page for backup & restore database. Does rails support the validation of sql file type(I use mysqldump and make the result file to ".sql".)? If it does, what is the right syntax (e.g. the validation of pdf file is content_type =  'application/pdf')? And how can I find that how many file types that rails can validate? Thanks in advance for any help you can offer.