fix the document upload link to resource