Posts: 90
Threads: 19
Joined: May 2014
Reputation:
0
07-22-2015, 03:23 AM
(This post was last modified: 07-22-2015, 03:23 AM by polanskiman.)
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?
Posts: 3,564
Threads: 36
Joined: Apr 2014
Reputation:
49
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
Posts: 90
Threads: 19
Joined: May 2014
Reputation:
0
07-22-2015, 10:02 AM
(This post was last modified: 01-20-2017, 11:40 AM by polanskiman.)
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.
Posts: 3,564
Threads: 36
Joined: Apr 2014
Reputation:
49
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
Posts: 90
Threads: 19
Joined: May 2014
Reputation:
0
07-23-2015, 03:56 AM
(This post was last modified: 07-23-2015, 05:42 AM by polanskiman.)
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.