Image attribute on User object displays as Text Field in DHIS2 2.40.7

Hi everyone,

I’m using DHIS2 version 2.40.7 and created a custom attribute with the “Image” value type. I associated this attribute with the User object.

However, when I try to add a new user or edit an existing one, the attribute appears as a plain text input field instead of an image upload option. I’m wondering if this is a known limitation or if I’m missing a configuration step.

Has anyone successfully used the image value type attribute with user object? If not supported in the UI, are there any recommended workarounds or plans to support this in future releases?

Thanks in advance for your help!
Pomi

Hi @Pomi_Daniel

Welcome back to the community!

Sorry, would you kindly share screenshots of the issue so one could see what’s actually happening?

I’m not sure how you created this association.. Do you mean by the ‘user’ a Tracked Entity Instance? Or do you mean DHIS2 user? I think you’re referring to TEIs but I’d like to be sure. Also, when creating the TEA, what is the value type you selected? Is it File?

If you could share screenshots and steps to reproduce this on any of the play.dhis2.org instances, it would be very helpful to understand better.

Thanks!

Dear AL-Gassim,

Thank you very much for getting back to me.

To clarify, I created a custom attribute and selected User as the object to which the attribute should apply, as shown in the screenshot below:

Afterward, I opened the User app in DHIS2 and clicked the “New” button to register a new system user. At the bottom of the user creation form, I found the attribute I had created. However, instead of seeing an image upload control, the field appears as a standard text input box, as you can see here:

I tested this behavior on DHIS 2 Demo - Sierra Leone. Is this the expected behavior, or might I be missing something?

Thanks again for your support!
Pomi

Hi
I can reproduce this issue on play as well. I’ll triage this to figure out if someone has a solution. Thanks!