for a form to upload files, the encoding type must be set to multipart/form-data.
change the form tag:
<form action="galleryinsert.php" method="post" name="WADAInsertForm" id="WADAInsertForm">
to:
<form action="galleryinsert.php" method="post" enctype="multipart/form-data" name="WADAInsertForm" id="WADAInsertForm">