Restrict File Type on Insert Record with File Upload
Is there a line of code that I can add to the code below to restrict the file types they can upload with the insert record?
<?php
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array(
	'UploadFolder' => "cards",
	'FileName' => $_GET["studentID"].'_'.$fname.'_'.$lname,
	'DefaultFileName' => "",
	'ResizeType' => "0",
	'ResizeWidth' => "600",
	'ResizeHeight' => "0",
	'ResizeFillColor' => "" );
// WA_UploadResult1_1 End
// WA_UploadResult1 Params End
?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["submit"]) || isset($_POST["submit_x"])){
	WA_DFP_UploadFiles("WA_UploadResult1", "vax_file", "2", "[NewFileName]_[Increment]", "false", $WA_UploadResult1_Params);
}
?>

 







 
     
     
    







