I want to store the filename "test" of a file called "test.pdf" which is uploaded through a field generic_file.
Can anyone give me a hint, how I can get the filename with a function out of "C:\fakepath\test.pdf"? I think the problem are the backslashes.
"stripshlashes" gives some strange sings, and "explode" cannot search after "\"
Can anyone give me a hint, how I can get the filename with a function out of "C:\fakepath\test.pdf"? I think the problem are the backslashes.
"stripshlashes" gives some strange sings, and "explode" cannot search after "\"