working pdf upload