I am working on my first theme and started by copying the Garland theme into the sites directory. This worked fine. Now I want to add image upload functionality in the Administer > Site building > Themes page for this new theme which I called Alfonso. Using the theme-settings.php page I was able to add the file upload field to the Alfonso configuration page like the one used for the logo and it seems to work. However, when I browse for the image file and click the "Save configuration" button, all seems to work well but when I look at the server nowhere do I find the uploaded image. I'm not sure that the image actually uploaded. Or is it that I'm not looking in the right directory?

Assuming that the image did not actually upload, do I need to do more than just add the $form['new_image'] = array('#type' => 'file') entry to the theme-settings.php file?

Comments

vm’s picture

have you checked the files folder ?

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

jelixza’s picture

Yes. I checked the sites/default/files and while I see the file I uploaded as the new logo, I do not see the I uploaded through the new upload field. I also do not see an entry in the "files" table in the database so I'm assuming the upload did not process at all.

goosemoose’s picture

Did you figure this out, I have the same issue.