Does anybody know how to get the image source path in the DeleteFile function of DBContentProvider.cs?
We have a table with all of the image names and paths in the database. When a user uploads a new image we rename it from "MyFirstPic.jpg" to 25.jpg, where 25 is the picture id in the database. We store the original name so that the user can see it when they look through the image manager.
I am adding code to the DeleteFile function but the variable that is getting passed is the image path with the old image name (MyFirstPic.jpg) not the new (25.jpg). How do I get the actual name (25.jpg)?
Thanks