solved the problem with fileupload, was because of two jquery versions and the rewrite matching everything