Reputation: 1638
How can I add an the Joomla built-in uploader to my component's admin back-end such that the file itself is saved in a folder somewhere in the server and the filename or url is saved in the DB? The docs for JHMLBehavior/uploader under http://docs.joomla.org/API16:JHtmlBehavior/uploader are useless, and I've tried Googling for a comprehensive guide on how to do this but couldn't find any.
Please help.
Regards, Simon
Upvotes: 2
Views: 3862
Reputation: 2018
You can check out administrator/components/com_media to see how they use JHTMLBehaviour::uploader(...). The problem is that the fancy script that the uploader is based on is version 1.0 - and it doesn't work....
I would recommend checking this tutorial instead: http://docs.joomla.org/Creating_a_file_uploader_in_your_component
Upvotes: 4
Reputation: 2601
You're aware that you're looking at the 1.6 version of the code, not 1.5? 1.5 is the current release - 1.6 probably hasn't got the full set of documentation.
Upvotes: 1