im using "admin_setting_configstoredfile" to pick image from user , how to store it in my plugin pix folder?
thanks
You don't store files uploaded by a user in your plugin pix folder, the File API will store them in Moodle's dataroot.
By the looks of it, admin_setting_configstoredfile will store the full path the to file in the config setting you specify in the constructor, so you should be able to use that value to display or link to the image.
thanks for your reply.
do you mean file area?
__construct($name, $visiblename, $description, $filearea, $itemid = 0, array $options = null)
but usually when i check some codes in moodle , its used a single name which is parts of themes .
you mean i can use path instead?
if you mean there is no way to change the directory from moodle data root
so do i need to fetch path like