How can I take only the file name from the uploaded file and store it in the db?


#1

Hello,
How do I upload an image file from my front end and take only the file name and store it in the db.


#2

If you talking about getting only the filename from a url or path, maybe http://stackoverflow.com/questions/423376/how-to-get-the-file-name-from-a-full-path-using-javascript or
http://stackoverflow.com/questions/1302306/how-to-pull-the-file-name-from-a-url-using-javascript-jquery can be helpful.