How to take file name of uploaded file?

I am using dropzonejs plugin
I uploaded a file /files/sample.pdf. While uploading how to take the uploaded file name as sample.pdf.