Question

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

Was it helpful?

Solution

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.

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top