fix pdf file upload