Why not to make use of jQuery.form
plugin.
This plugin allows to handle file upload efficiently Check here.
For clearing fields
$(':input','#myform').not(':button, :submit, :reset, :hidden')
.val('')
.removeAttr('checked')
.removeAttr('selected');