first, for the upload to work, the form encoding type needs to be changed:
change:
<form method="POST" name="WADAInsertForm" id="WADAInsertForm" class="mainForm">
to:
<form method="POST" enctype="multipart/form-data" name="WADAInsertForm" class="mainForm" id="WADAInsertForm">
as for using the client and case id in the uploaded filer name, this will be tricky.
first, the file upload code will need to come after the insert record code.
the case ID will come from the tblcases_CaseID session created by the insert behavior, it looks like you have a form element for the contact, so you will need to use that binding. This is not a supported feature and will take some custom coding.


