File getting uploaded and stored in public folder