0

I have a input type file named datafile and I want to show file name into a span when file is loaded into input:file

I have tried to echo $_FILES['datafile']['tmp_name'] but it output this E:\xampp\tmp\phpFE1E.tmp not the real file name. suppose I have file data.txt so I want to show data.txt into span when loaded into input file.

how Can I do this?

2
Contributors
1
Reply
9
Views
3 Years
Discussion Span
Last Post by cereal
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.