Hello buddy's
I have changed the file subtype to xxxx and when i upload the file it gets updated successfully , when downloading it throws
500 internal server error . I have changed the file subtype => xxxx other coding is same as elgg core .
for downloading i have passed the value to this page
/file/download/(guid of my file ).
I am getting error on this place when i check with code
$file->getMimeType();
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.
- Sathish Kumar@rubon
Sathish Kumar - 0 likes
- Brett@brett.profitt
Brett - 0 likes
- Sathish Kumar@rubon
Sathish Kumar - 0 likes
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- Sathish Kumar@rubon
Sathish Kumar - 0 likes
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- Sathish Kumar@rubon
Sathish Kumar - 0 likes
You must log in to post replies.can any one suggest some ideas if you know it
How did you change the subtype? If you didn't use `add_subtype()` or `update_subtype` the crash is because the entities are not loading as ElggFiles, so methods are unavailable.
i copied same file upload file and create new action for it and changed the
and uploaded the file and entity also stored , when downloading only i am getting error .
is that possible to change the file subtype and download the file ?
Thanks for you reply @Brett
Did you registered your subtype ? RTFM
No . @rvr where to register the subtype
Usually, in activate.php of your theme/plugin:
thanks @rvr i will try with that ..