Which version of Digital File Pro are you using?
I'm sorry, I didn't realize you were using this with PowerStore v2. You will have to go to the server behaviors panel and double click on the WA Upload Files server behavior. In step 1, under Upload Settings, you will have to uncheck the Web images only checkbox.
If you are using Digital File Pro v1, you will have to change the code manually. Find the code that looks like this:
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if($_SERVER["REQUEST_METHOD"] == "POST"){
WA_DFP_UploadFiles("WA_UploadResult1", "ProductImage", "2", "[NewFileName]_[Increment]", "true", $WA_UploadResult1_Params);
}
?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult2");
if($_SERVER["REQUEST_METHOD"] == "POST"){
WA_DFP_UploadFiles("WA_UploadResult2", "ProductThumb", "2", "[NewFileName]_[Increment]", "true", $WA_UploadResult2_Params);
}
?>
Change the "true" to "false", which is the parameter that specifies whether it should be web images only or not.
The validation on the field will continue to only allow images, so you would have to modify the validation code to include pdf files. The input field should look like this:
<input name="ProductThumb" type="file" id="ProductThumb" onchange="WAValidateFE(document.forms[0].ProductThumb,document.forms[0].ProductThumb.value,'- Invalid file extension','.gif, .jpg, .jpeg, .png',document.forms[0].ProductThumb,0,true);WAValidateHD(document.forms[0].ProductThumb,'ProductThumbValidation',false);if (document.getElementById('ProductThumbServerValidation')) document.getElementById('ProductThumbServerValidation').style.display='none'" />
You will have to find the list of allowed file extensions:
'.gif, .jpg, .jpeg, .png'
And change the list to what you want allowed. You will have to do this for both the input boxes.