Well, I finally gave in and decided to make this work... Here is what I came up with (modified a little to make a better example).
This code validates uploaded files to make sure that they are an acceptable file type.
The following was placed in my form's "Submit Pieces"->"End Submit"->"Custom" field:
// load the standard Facile Forms library
$this->execPieceByName('ff_InitLib');
function uploadOk($name, $extensions, $optional=false)
{
$filename = ff_getSubmit($name);
if ($filename)
{
$extension = strtolower(substr(strrchr($filename, "."), 1));
if (in_array($extension, explode(',', $extensions))) return true;
unlink($filename);
return false;
} // if
return $optional;
} // uploadOk
if (!uploadOk('filePhoto1','jpg,gif,png',false) || !uploadOk('filePhoto1','jpg,gif,png',false))
{
$this->status = 1002; // use any value > 1000 as private errorcode
$this->message = "Incorrect File Type";
return;
}
The fields that I am checking are called "filePhoto1" and "filePhoto2". you should change these to he name of the fields that you are using.
I have jpg, gif, and png as valid file types. Any other files types will be rejected (deleted actually). The big thing I changed in this version compared to previous versions was I call "strtolower()" while extracting the extension of the uploaded file. This means that if someone uploads a file called "myfile.JPG", it will not be rejected as it would without that call.
A BIG Thank You to everyone who has helped out in this thread (even those asking questions for clarification).
I hope this helps someone else in the future!

could anybody post a xml?
Because i could not manage it.