CoreBOSBB
Contact Image - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17)
+--- Forum: User Support (https://discussions.corebos.org/forumdisplay.php?fid=6)
+--- Thread: Contact Image (/showthread.php?tid=167)



Contact Image - polanskiman - 07-22-2015

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?


RE: Contact Image - joebordes - 07-22-2015

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.


RE: Contact Image - polanskiman - 07-22-2015

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.


RE: Contact Image - joebordes - 07-22-2015

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?....


RE: Contact Image - polanskiman - 07-23-2015

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.


RE: Contact Image - joebordes - 07-23-2015

fix committed to master branch.

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

thanks!!


RE: Contact Image - polanskiman - 07-24-2015

Thank you Joe.