What is the sql extension type?
I want to upload to some folder in my server only .sql files.
I know that for txt is text/plain. what is for sql f
There is no way to check if it's an SQL file simply on the basis of MIME-types. SQL-files are text/plain, as others already pointed out. You would have to perform some checks on the incoming file (like running a regex which check's for SQL commands, or even running a parser/checker, if one is available in PHP), if you want to be sure only SQL files are uploaded.