Hi how do i allow only word documents? And i mean both mime-type and extension? Right now i have these codes checking extensions for .txt files, how do i change it to accept only word docs.
if ($uploaded_type !=="text/plain")
and
if($ext !== 'txt')