Problem with getFilenameOnFilestore() after upgrading to 1.8.16

Hi,  i have a image  upload perfectly working and i was working with elgg  1.8.13. Now i upgaded into elgg1.816 and unfortunatly it's not working and found that the function  getFilenameOnFilestore() giving null.


this is the code :

$file = new ElggFile();

return $file->getFilenameOnFilestore()

Anybody experiecing this same issue ?  Somebody please help me.

Thank you very much!

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking