Unable to upload Images for Leads and Contacts modules for Version 8.6 - "Choose File" Button not visible #547
Labels
Priority:Important
Issues & PRs that are important; broken functions; errors; there are workarounds
Severity: Moderate
Minor Impact
Type: Bug
Something isn't working
Type:Missing Feature
Feature in a previous version, not in the current
Issue
After a fresh install of Version 8.6.2, I'm unable to upload images to the image/photo fields in either the Contacts and Leads modules.
Instead of presenting the Choose File button/widget that allow for selection and import of the file, you are presented with a blank text box.
This condition is true for the default PHOTO Field (LBL_PHOTO, which is of the image type), and, for any newly created custom image field, also designated as image type (see screen captures below).
It looks like this issue was reported back in April 2022. The work-around presented then => here , which still works, is to point both modules back to legacy modules/code (I assume v7?) , using the ../config/services/module/module_routing.yaml file. By setting the record field for contacts (shown here) and leads to "false:. For example,
contacts:
index: true
list: true
record: false
I confirmed this actually works, i.e. , when implemented, the "Choose File" buttons appear where they should (see below) and downstream image presentation and edit functionality works for the 'detail' and 'edit' views.
But, unfortunately, in using this approach, it looks like you lose ALL the useful GUI improvements that were release for v8, including subpanels, quick saves, and more!!
Given the Contacts and Lead modules are central/core interfaces, this is suboptimal for sure. :<
Assuming this bug validates and i don't have a config issue, It would be great if someone could figure this out for the next release, or figure out an interim patch. Note that I have no file permission errors install & config .
Although I'm not developer, so can't help much with the solution, when inspecting the Markup on the front end, the v8.6 GUI seems to have a lot of missing markup/empty comment fields where the widget would be. Also note that i am not getting any browser console errors (odd, seems like i would get some .js if id's are missing?)
Front end mark-up for the 2 conditions tested follow:
==Markup when inspecting PHOTO field on Create New Contact page (when yaml file for contact is set to record:true - this is the fresh install/default condition)
Context
No response
Version
8.6.2
What browser are you currently using?
Chrome
Browser Version
128.0.6613.137 (64 bit)
Environment Information
PHP Version 8.1.29, mysql Ver 15.1 Distrib 10.4.34-MariaDB
Operating System and Version
CentOS Linux release 7.9.2009 (Core)
The text was updated successfully, but these errors were encountered: