commonly, while uploading file ,php accept all the file data(write the file to dir 'upload_tmp_dir') no matter what the file is.
now , I want to check a string ('auth=abcdefg') that was post while uploading file
the code I want like :
<?php
if(!allow($_POST['auth'])){
exit('not allowed');
}else{
//begin write the file data to upload_tmp_dir
}
?>
How can I do the job? if original php can't but any extension can do it?