Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Contact Image
#1
Hello,

I am having an issue when trying to assign an image to a contact. I've tried several times, refreshed the page, cleared the cache and the image is not appearing. Suspecting the image is simply not uploading.

Ideas?
Reply
#2
Hi

I just tried this with the latest version and it worked correctly.
The typical situation for this behavior is a lack of permissions. The images are stored in the storage directory so if your web user cannot write in that folder it won't be able to save the image. Check that first and get back to us.
Joe
TSolucio
Reply
#3
Permissions are correct:

Serv> ll
drwxrwxr-x 3 http http 4096 Jul 22 16:56 .
drwxrwxr-x 3 http http 4096 Jul 22 09:41 ..
-rw-rw-r-- 1 http http 151700 Jul 22 09:41 5298_00271F_CONTAC_NAME__.jpg
-rw-rw-r-- 1 http http 151700 Jul 22 09:41 5299_00271F_CONTAC_NAME_Dr__.jpg
-rw-rw-r-- 1 http http 151700 Jul 22 10:14 5300_00271F_CONTAC_NAME_Dr__.jpg
-rw-r--r-- 1 http http 151700 Jul 22 10:57 5303_00271F_CONTAC_NAME_Dr__.jpg
drwxrwxrwx 5 root users 4096 Jul 22 16:56 @eaDir

Files were uploaded as can be seen above but the image is not showing in the contact's profile.
Reply
#4
Can you please try in the online demo?
Also check the storage/.htaccess or any other .htaccess file to make sure it is permitting access to the image.
Also look at the contact detail view html code: Is the image URL there? Is it correct? Can you copy that URL, paste it directly into the browser and see the image?....
Joe
TSolucio
Reply
#5
Does not work either on the online demo. File does not appear in the HTML code.

After testing several things I found out what was going on. I replaced the spaces in the .jpg file with underscores then re-uploaded the file. The picture then finally showed up in the contact's profile. Must be something to do with how Corebos interprets spaces in the file names. I tried with other files and inserted a space and guess what, it didn't work again. So I guess there is a bug in the code. I have submitted a ticket.
Reply
#6
fix committed to master branch.

details on the ticket you created: http://corebos.org/development/view.php?id=317

thanks!!
Joe
TSolucio
Reply
#7
Thank you Joe.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)