FormBuilder support image URL upload#32780
Conversation
|
🤖 Thank you for contributing to CiviCRM! ❤️ We will need to test and review this PR. 👷 Introduction for new contributors...
Quick links for reviewers...
|
|
Jenkins re test this please |
|
Jenkins re test this please |
|
Got this error testing this PR: |
|
I've done an
The file entity gets updated correctly with the image uri, but the contact summary screen shows
linked to https://example.org/wp-admin/1 instead of the correct image URL. |
|
@MegaphoneJon I saw this mentioned - Can you add notes (or a sample form) from your testing? I am happy to re-test if you have this working. |
|
I've tested this (and am very keen to see this issue resolved - it'd be incredibly useful for a project I'm currently working on 😄) I did get the same behaviour as kcristiano (the image showing as a number on the contact summary screen). However, I get the correct behaviour if I change the if statement to I'm not sure if there are legit cases where |
|
@MegaphoneJon did you see this feedback ^ |
|
I have one more bit of feedback on this. The other From a security perspective I think this is ok, as I don't think form processors will run unless the user has the correct permissions against the form. |
|
The feedback on this PR never got addressed so I've reopened it as #36326 FYI @MegaphoneJon |

Overview
It's not currently possible to upload an "Image URL" field (aka contact record's headshot) via FormBuilder.
Before
Broken link, no image
After
Successful upload
Comments
This is a variation on #28840, adapted to handle merge conflicts and without style issues.