the encoding type attribute:
enctype="multipart/form-data"
is needed in the form tag, without that there is no way for file upload to work at all.
If that is causing the insert to fail altogether, I Would suspect the size of the files you are uploading, it may be that your uploaded files size is exceeding the max_input_size setting on the server or another of the max form settings,