CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • How to upload image for users in civicrm using civicrm api only.
Pages: [1]

Author Topic: How to upload image for users in civicrm using civicrm api only.  (Read 693 times)

shashikant

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 0
  • CiviCRM version: civicrm 4.1.3
  • CMS version: Drupal 6.26
  • MySQL version: Mysql 5.1.56
  • PHP version: PHP Version 5.3.6
How to upload image for users in civicrm using civicrm api only.
June 19, 2012, 02:52:22 am
Hi
I am using drupal 6.26 and civicrm 4.1.3.
I want to upload image(profile pic) for users in civicrm database using civicrm api only.
Please anyone can suggest me something.
I am trying to implement it from last week but unable to do it.
- shashikant
« Last Edit: June 19, 2012, 03:45:46 am by shashikant »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: How to upload image for users in civicrm using civicrm api only.
June 19, 2012, 07:19:16 am

I dont think the api has support as yet to manage files / images etc. Would you be interested in adding this support to the api?

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: How to upload image for users in civicrm using civicrm api only.
June 19, 2012, 10:05:20 am
You can already set the contact image path using the api, but you have to upload the image at the right place (ie. the file transfer itself isn't part of the api yet)

As lobo mentioned, patch welcome ;)

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • How to upload image for users in civicrm using civicrm api only.

This forum was archived on 2017-11-26.