I am trying to show the user name on the user interface of the ownCloud user who is currently logged in. For this I am trying following line of code in upload.php file. The following line of code is actually calling a function from User class. Then after calling I am just echo to the recieved name.
Actually I want that when I upload any file then before uploading I want to show the name of the logged in user on top of page. But I m unable to see.
How to fix this?