<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to update Profile's photo through API? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-update-profile-s-photo-through-api/m-p/240249#M193379</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How do you upload a picture into User's Profile?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried setting the avatar parameter but it seems like it's read only &lt;/SPAN&gt;&lt;A href="https://secure.decypher.com/alfresco/service/api/people/{username" rel="nofollow noopener noreferrer"&gt;https://secure.decypher.com/alfresco/service/api/people/{username&lt;/A&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that you can update the profile's picture through Alfresco Share, so there should be a way to do it through the API. Does anyone know how to do this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Apr 2010 21:15:55 GMT</pubDate>
    <dc:creator>carbotex</dc:creator>
    <dc:date>2010-04-09T21:15:55Z</dc:date>
    <item>
      <title>How to update Profile's photo through API?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-update-profile-s-photo-through-api/m-p/240249#M193379</link>
      <description>How do you upload a picture into User's Profile?I tried setting the avatar parameter but it seems like it's read only https://secure.decypher.com/alfresco/service/api/people/{username}I know that you can update the profile's picture through Alfresco Share, so there should be a way to do it through t</description>
      <pubDate>Fri, 09 Apr 2010 21:15:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-update-profile-s-photo-through-api/m-p/240249#M193379</guid>
      <dc:creator>carbotex</dc:creator>
      <dc:date>2010-04-09T21:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to update Profile's photo through API?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-update-profile-s-photo-through-api/m-p/240250#M193380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As you are saying, you can do this in share.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Many operations in share is done using javascript calls, so instead of looking for the whole page defintion/build server side, we go directly to client side javascripts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In this case webapps/share/components/profile, and the file profile.js.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Side note: a good way to find out what is going on is to use httpfox plugin in firefox. It will list all http request and json data so you can easily track down what is going on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In profile.js you will find that it calls slingshot/profile/uploadavatar webscript for the upload. That is serverside webscript, and their location is&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Navigate to slingshot/profile/ subdirectory, in there you will find uploadavatar.js, and in there you can probably find you answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps, I know it was not to detailed in how to find what code runs what, but may be a starter.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Apr 2010 14:23:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-update-profile-s-photo-through-api/m-p/240250#M193380</guid>
      <dc:creator>loftux</dc:creator>
      <dc:date>2010-04-10T14:23:51Z</dc:date>
    </item>
  </channel>
</rss>

