fix ajax upload
fix document controller