fix pdf upload