Path errors fixed on file upload