RT::User-related Upload One Image custom field problem

Hi, Dear Community!

I have a problem with User-related Upload One Image custom field (user photo/avatar). Even from “root” user I cannot set a value (upload an image) from this path: /Prefs/AboutMe.html (self servicing/customizinig) .
But from path /Admin/Users/Modify.html?id= it is OK. I can set value as for “root” as for any other user.
Any suggestions/hints/workarounds?

BRG, Peter.

Previous post was the incorrect file, this should be correct:

diff --git a/share/html/Prefs/Elements/EditAboutMe b/share/html/Prefs/Elements/EditAboutMe
--- a/share/html/Prefs/Elements/EditAboutMe
+++ b/share/html/Prefs/Elements/EditAboutMe
@@ -45,7 +45,7 @@
 %# those contributions and any derivatives thereof.
 %#
 %# END BPS TAGGED BLOCK }}}
-<form name="EditAboutMe" action="" method="post">
+<form name="EditAboutMe" action="" method="post" enctype="multipart/form-data">
 <input type="hidden" class="hidden" name="id" value="<%$UserObj->Id%>" />

 <table width="100%" border="0">
1 Like

Hi! Actually it was the correct file. I’m using RT v4.4.3 and there is no subfolders in /share/html/Prefs
only *.html files. After I made a correction in /share/html/Prefs/AboutMe.html, it worked. :smile:

Thanks alot!

1 Like

Please, could You “undelete” your post.
Sincerely, Peter.

It would appear that I cannot, but here is the 4.4.3 patch version:

diff --git a/share/html/Prefs/AboutMe.html b/share/html/Prefs/AboutMe.html
--- a/share/html/Prefs/AboutMe.html
+++ b/share/html/Prefs/AboutMe.html
@@ -50,7 +50,7 @@
 
 <& /Elements/ListActions, actions => \@results &>
 
-<form action="<%RT->Config->Get('WebPath')%>/Prefs/AboutMe.html" method="post">
+<form action="<%RT->Config->Get('WebPath')%>/Prefs/AboutMe.html" method="post" enctype="multipart/form-data">
 <input type="hidden" class="hidden" name="id" value="<%$UserObj->Id%>" />
 
 <table width="100%" border="0">
1 Like