document upload fix