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) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Image not displayed on contact summary
Pages: [1]

Author Topic: Image not displayed on contact summary  (Read 722 times)

ouyang1512

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: MySQL 5.1.52
  • PHP version: 5.3.6
Image not displayed on contact summary
July 27, 2012, 08:24:48 am
I am having a problem to display the contact's image on the summary page or elsewhere (drupal views). This is reproducible on the demo site as well. The image has actually been uploaded and can be viewed with the full url, but not show up at all. The message when I save my edits on the contact page is:
Quote
Image could not be uploaded due to invalid type extension
. My image format is JPG, and size is less than 33 kb.

Do anybody know what's wrong here?

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Image not displayed on contact summary
July 27, 2012, 09:05:07 am
Is it a photo you can post here?  What's the exact filename?  It sound like it doesn't like the extension - maybe it's .jpeg instead of .jpg?
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

ouyang1512

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: MySQL 5.1.52
  • PHP version: 5.3.6
Re: Image not displayed on contact summary
July 27, 2012, 09:17:19 am
What I am trying to upload are staff pictures and the file names are something like this: Ben.jpg. couple files I uploaded a month ago worked actually. But when I tried to delete the working one ( the file was also not deleted ) and reupload it (uploaded actually) again to test, it did not show up. I can see the file names in the directory civicrm/custome are all ended with .jpg. And the image below was used on civicrm/drupal demo site. It did not work.

ouyang1512

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: MySQL 5.1.52
  • PHP version: 5.3.6
Re: Image not displayed on contact summary
July 27, 2012, 11:41:14 am
It worked when I  converted the images to png format. wierd. The JPEG support IS enabled on my server. Any idea? Thank you!

shayaknyc

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 0
Re: Image not displayed on contact summary
August 21, 2012, 08:17:54 am
I've experienced a similar situation when creating a custom profile that uses Contact>Image URL as the field (which maps to the record summary that will show the image thumbnail). Whenever attempting to upload a legitimate jpg file (.jpg .JPG .JPEG and .jpeg) we get the same error but ONLY in IE7+. Anybody know why IE doesn't play nice with Civi for uploading images. The same image that results in error on IE successfully uploads in Chrome and FF. We're on Civi 4.1.2

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Image not displayed on contact summary

This forum was archived on 2017-11-26.