For one of my plugins I would like to give the possibility to upload images that will serve as a logo. I do not want to use AdminImage to avoid using two plugins for a single feature. I would like the uploading of images to work in the same way as adding logo to Omeka themes (like Thanks Roy or Seasons). So I load a form with a file element like this :
array(‘id’ => ‘footer_img’,
‘description’ => __(‘Choose an image to add to the footer.’),
‘label’ => __(‘Footer image’),
Is this a good way to do it ?
So I do not know what to do in the controller to upload the image and save it in the database. Could you guide me on how to proceed ?
Thank you for your help.