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!
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Neo Moon@neomoon
Neo Moon - 0 likes
- Jerome Bakker@jeabakker
Jerome Bakker - 0 likes
You must log in to post replies.i found it was related to this https://github.com/Elgg/Elgg/issues/5207 and now got the resolution.
Your file needs a filename. As the function states getFilenameOnFilestore() it will return false if you don't have a filename.
If you were using this to get the correct directory to put stuff in, you were doning the same as Tidypics. This was patched in Tidypics