Make document upload work.