fix header before redirect
fix fileupload